![]() MT200 = LinRegSlope( TEMA(C, DT200), 2 ) //200 Day Moving Average MT100 = LinRegSlope( TEMA(C, DT100), 2 ) //100 Day Moving Average MT50 = LinRegSlope( TEMA(C, DT50 ), 2 ) //50 Day Moving Average MT20 = LinRegSlope( TEMA(C, DT20 ), 2 ) //20 Day Moving Average MT10 = LinRegSlope( TEMA(C, DT10 ), 2 ) //10 Day Moving Average MT5 = LinRegSlope( TEMA(C, DT5 ), 2 ) //5 Day Moving Average GfxTextOut( ( "Triple Exponential (Tema)"),855,y-60) MTT50 = IIf(LinRegSlope( DEMA(C, DT50 ), 2 )>0,True, False) MTT20 = IIf(LinRegSlope( DEMA(C, DT20 ), 2 )>0,True, False) MTT10 = IIf(LinRegSlope( DEMA(C, DT10 ), 2 )>0,True, False) MTT5 = IIf(LinRegSlope( DEMA(C, DT5 ), 2 )>0,True, False) //5 Day Moving Average MT200 = LinRegSlope( DEMA(C, DT200), 2 ) //200 Day Moving Average MT100 = LinRegSlope( DEMA(C, DT100), 2 ) //100 Day Moving Average MT50 = LinRegSlope( DEMA(C, DT50 ), 2 ) //50 Day Moving Average MT20 = LinRegSlope( DEMA(C, DT20 ), 2 ) //20 Day Moving Average MT10 = LinRegSlope( DEMA(C, DT10 ), 2 ) //10 Day Moving Average MT5 = LinRegSlope( DEMA(C, DT5 ), 2 ) //5 Day Moving Average GfxTextOut( ( "Double Exponential (DEMA) "),425,y-60) MTT50 = IIf(LinRegSlope( EMA(C, DT50 ), 2 )>0,True, False) MTT20 = IIf(LinRegSlope( EMA(C, DT20 ), 2 )>0,True, False) MTT10 = IIf(LinRegSlope( EMA(C, DT10 ), 2 )>0,True, False) MTT5 = IIf(LinRegSlope( EMA(C, DT5 ), 2 )>0,True, False) //5 Day Moving Average MT200 = LinRegSlope( EMA(C, DT200), 2 ) //200 Day Moving Average MT100 = LinRegSlope( EMA(C, DT100), 2 ) //100 Day Moving Average MT50 = LinRegSlope( EMA(C, DT50 ), 2 ) //50 Day Moving Average MT20 = LinRegSlope( EMA(C, DT20 ), 2 ) //20 Day Moving Average MT10 = LinRegSlope( EMA(C, DT10 ), 2 ) //10 Day Moving Average ![]() MT5 = LinRegSlope( EMA(C, DT5 ), 2 ) //5 Day Moving Average GfxTextOut( ( "Exponential Moving Average (EMA) "),1265,y-60) MTT50 = IIf(LinRegSlope( MA(C, DT50 ), 2 )>0,True, False) ![]() MTT20 = IIf(LinRegSlope( MA(C, DT20 ), 2 )>0,True, False) MTT10 = IIf(LinRegSlope( MA(C, DT10 ), 2 )>0,True, False) MTT5 = IIf(LinRegSlope( MA(C, DT5 ), 2 )>0,True, False) //5 Day Moving Average MT200 = LinRegSlope( MA(C, DT200), 2 ) //200 Day Moving Average MT100 = LinRegSlope( MA(C, DT100), 2 ) //100 Day Moving Average MT50 = LinRegSlope( MA(C, DT50 ), 2 ) //50 Day Moving Average MT20 = LinRegSlope( MA(C, DT20 ), 2 ) //20 Day Moving Average MT10 = LinRegSlope( MA(C, DT10 ), 2 ) //10 Day Moving Average ![]() MT5 = LinRegSlope( MA(C, DT5 ), 2 ) //5 Day Moving Average GfxSelectPen( colorWhite, 1) // broader color Paste the downloaded code. Save the file and chart.Copy & Paste Friendly //= MA = Go to the pine editor section and remove the default code. Then, select the desired timeframe of the chart. Quantity: This is used to specify the trade quantityĬustom Stop Loss in Points: Movement in chart price against the momentum which will trigger exitĬustom Target in Points: Movement in chart price against the momentum which will trigger exit TradingView Settingsįollow the steps given below to start Algo-Trading with 4 EMA Algo-Strategy on TradingView to trade:ġ: Download the Pine-Script Algorithm from here.Ģ: Open desired Chart in TradingView with Normal Candlestick. Intraday Trade Session: Entry Trade Will be Taken only in this session.ĮXIT Session: Trades will be squared off in this timeframe If SL/TGT is not hit and Closing Price Crossover 21 Days EMA Send SX, LE 4 EMA Strategy Parameters for TradingView ChartsĮMA Length : EMA lengths, such as 10-day, 50-day, and 200-day moving averages. Short Exit: Either when SL or Target is hit. Short Entry: When Closing Price Cross Under 21 Days EMA , Send SE If SL/TGT is not hit and Closing Price Cross Under 21 Days EMA Send LX, SE Long Exit: Either when SL or Target is hit. Long Entry: When Closing Price Crossover 21 Days EMA, Send LE
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |