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 | Awesome Oscillator Divergence

This indicator will plot divergence lines on the Awesome_Oscillator indicator and will give buy and sell signal by displaying arrows.

It also has a built-in Show_alert, Play_Sound, Send_Email & Send_Notification function. In default:

  • Bullish Regular_Divergence is plotted in Blue lines & solid,
  • Bullish Hidden_Divergence is plotted in Aqua lines & dotted,
  • Bearish Regular_Divergence is plotted in Red lines & solid,
  • Bearish Hidden_Divergence is plotted in Orange lines & dotted,
  • & Indicator Divergence lines does not pass ( going across ) through the body of the Indicator/histogram.

This indicator based on description for divergence in: Signals of the Awesome Oscillator

for example in Bullish Regular_Divergence:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Bullish Divergence example

Divergence: —the first analyzed bottom of the indicator is shallower than the previous one, and the corresponding price valley is deeper than the previous one. In addition, the indicator must not rise above the zero level.

Parameters:

Inputs parameters are shown in below pic. 

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Input parameters of the Awesome Oscillator Divergence indicator

Two of them are important.

1. Deviation_percent: default value is 0.05 and this is the maximum percent ratio of AO value which allowed to be out of range.

As shown in Figure below:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 3. Awesome Oscillator percent ratio

Obviously, with choice 0.0 there are all AO value will be within the range.

2. Indicator_Trend_Line_Allowed_across_through_the_histogram_body: default value is no.

The following screenshots are enough to show the difference in performance for different modes yes/no.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 4. Indicator_Trend_Line_Allowed_across_through_the_histogram_body=no

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 5. Indicator_Trend_Line_Allowed_across_through_the_histogram_body=yes

1868

Best MetaTrader Indicators + Profitable Expert Advisors