The strategy based on a medium-term EMA identifies a trend depending on the medium-term EMA, and then creates a position in the direction of the trend based on a fast and slow EMA.
Strategy Logic Long Entry: When EMA fast > EMA slow, send LE
Long Exit: Either when SL or Target is hit. If SL/TGT is not hit, and EMA fast < EMA slow, send LX and SE
Short Entry: When EMA fast < EMA slow, send SE
Short Exit: Either when SL or Target is hit. If SL/TGT is not hit, When EMA fast > EMA slow, send SX and LE
EMA Slope Trend Follower Strategy Parameters for TradingView Charts 1.Source MA Type: Choose whether to use EMA or SMA
2.Source MA Length: Medium term time frame MA to identify slope
3.Fast Slope MA Length: Length of fast MA to calculate over the slope
4.Slow Slope MA Length: Length of slow MA to calculate over the slope
5.Trend Filter: When the price is above EMA200, the strategy opens only long positions. If price < EMA200, only shorts allowed. If the slope gives a long signal and price is below EMA200, for example, the eventual short position is closed, but the long entry is postponed to the moment when both conditions (slope uptrending and price > EMA200) are met.
6.Volatility Filter: When the standard deviation of the last 20 candles is below its 50 samples moving average, no positions are opened, as market is going sideways. The purpose of this filter is to prevent false positives (positions which open and close in a matter of candles due to false signals in sideways market).
7.Backtesting : Use this to backtest the strategy between Starting and Ending Date and time , it can also be used to set trades in future time
8.Alert_Message : Need to copy while creating alert into Message Box
10.Start Time Stop Time (Session 1) : Intraday / Positional start time and end time of trade for session 1
11.End Session 1 : Define time to exit any existing position taken in session 1 so that exchange charges will not apply
12.Use Second Session : Check this to use second intraday session
13.Start Time Stop Time (Session 2) : Intraday / Positional start time and end time of trade for session 2
14.End Session 1 : Define time to exit any existing position taken in session 2 so that exchange charges will not apply
15.Use Target : check if you want to set required target if not cheque will not applicable
16.Use StopLoss : Cheque if you want to set stop loss if not cheque will not applicable
17.Trailling Stoploss : Cheque if you want to set trailing stop loss if not cheque will not applicable
18.Point Or Percentage For TG SL : Use Points or Percentage as per your choice
19.Target : Set as per the selection of (Point Or Percentage For TG SL)
20.Stop Loss : Set as per the selection of (Point Or Percentage For TG SL)
21.TSL_Type : Select as per your logic in %/ATR/Points
22.TSL_Input : Set in case you select %/Points in TSL_Type
23.ATR Length : Set as per your logic if you select ATR in the field of TSL_Type
24.ATR_Mult : Set as per your logic if you select ATR in the field of TSL_Type
25.Segment : Select segment of your logic EQ/FUTIDX/FUTSTK/OPTIDX/OPTSTK/FUTCUR/FUTCUM (Used in case of option / Futures )
26.Select Expiry Date : Select the expiry date of your trade as per the segment you selected (Used in case of option / Futures )
27.Select Expiry Month : Select the expiry Month of your trade as per the segment you selected (Used in case of option / Futures )
28.Year : Select the expiry Year of your trade as per the segment you selected (Used in case of option / Futures )
29.Quantity : Enter the quantity in which you want to trade (Used in case of option / Futures )
30.Product Type : Select MIS/Normal/ CNC as per your logic (Used in case of option / Futures )
31.Order Type : Select Market/Limit as per your logic (Used in case of option / Futures )
32.Strategy Tag : Enter the value in case you are using webhook / advance template in APIBridgeTM
33.Lotsize : Enter the lotsize as per your lotic and quentity selection (Used in case of option / Futures )
34.STEP (OTM/ATM/ ITM ) : Select OTM(+1)/ATM(0)/ ITM (-1) as per your logic works in case of options only
35.DIFFERENCE_BETWEEN 2 STRIKE : Select difference of 2 strikes you have used in APIBridge symbol setting list, like for Nifty 50 BankNifty 100
36.APIB Port : Set as per provided to you by Algoji in case of webhook / advance templet
The Segment full form is given below EQ Equity FUTIDX Future Index FUTSTK Future Stock OPTIDX Index Option OPTSTK Stock Option FUTCUR Futcur Currency FUTCUM Future Commodity
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.