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 | XATRStopLevel

The real author:

Sovpel Alexander

The indicator gives Stop Loss value for open position on the basis of the XATR indicator.

Thanks to the information about the current market volatility we can develop the adaptive Stop Loss.

Average target and adaptive Stop Loss

We can use the average trading range (Average True Range) for a certain period of time and multiply that value by some constant (factor) to determine how far away stop order can be arranged from our entry . The advantage of using Stop Loss based on the Average True Range is that it is highly adaptive to current market conditions. The distance from the point of the entry to the exit point will increase in the periods of the high market volatility and decrease in the periods of the low market volatility. Thus, the adaptive Stop Loss is an excellent way to manage risks in terms of changing market volatility.

This indicator was first implemented in MQL4 and published in Code Base on 25.09.2009.

The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging price series for intermediate calculations without using additional buffers".

The indicator uses the class of library GetFontName.mqh (must be copied to the terminal_data_folder\MQL5\Include).

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1 The XATRStopLevel indicator

1262

Best MetaTrader Indicators + Profitable Expert Advisors