Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | ATRStops v1 HTF

A trend indicator implemented in the form of NRTR. The timeframe of the indicator is set in the input parameters of the indicator:

//+----------------------------------------------+
//| Input parameters of the indicator            |
//+----------------------------------------------+
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H6; // Chart period of the iSAR indicator
input uint   Length=10;                    // The indicator period
input uint   ATRPeriod=5;                  // The period of the ATR indicator
input double Kv=2.5;                       // Volatility by ATR
input int    Shift=0;                      // Horizontal shift of the indicator in bars

Average True Range is used for constructing a moving average.

Place the compiled file of the ATRStops_v1.ex5 indicator in terminal_data_folder\MQL5\Indicators. 

This indicator was first implemented in MQL4 and published in Code Base at mql4.com on 07.04.2008. 

MetaTrader Experts, Indicators, Scripts and Libraries

Figure 1. The ATRStops_v1_HTF indicator

1766

Best MetaTrader Indicators + Profitable Expert Advisors