• Overview
  • Reviews
  • Comments (11)
  • What's new

Divergence DeMarker or any custom

The indicator displays divergence for any custom indicator. You only need to specify the indicator name; DeMarker is used by default.

Additionally, you can opt for smoothing of values of the selected indicator and set levels whose crossing will trigger an alert. The custom indicator must be compiled (a file with ex5 extension) and located under MQL5/Indicators of the client terminal or in one of the subdirectories. It uses the zero buffer of the specified indicator with default parameters.


Input Parameters

  • Indicator name - name of the indicator for which divergence will be calculated; by default, DeMarker;
  • Period DeMarker - DeMarker averaging period; by default, 7;
  • Applied price - price used; by default, Close price;
  • Smoothing method - smoothing method; by default, Simple;
  • Smooth - smoothing period; by default, 4;
  • Level1 - level of the indicator; by default, 0.3;
  • Level2 - level of the indicator; by default, 0.7;
  • Calculated bar - number of bars to display divergence; by default, 300;
  • Filter by volume - filter by volume; by default, false. When enabled, no divergence signal will be given if the volume over the last 100 bars is less than average. There are three available modes: False, True and Auto. In the Auto mode, the filter is automatically enabled on M30 time frame and lower, and disabled on time frames higher than M30;
  • Display divergence alert - enables divergence alert; by default, true;
  • Display cross level alert - enables alert for the crossover of the set indicator levels; by default, true;
  • Draw indicator trend lines - enables indicator trend lines in divergence; by default, true;
  • Draw price trend lines - enables trend lines on the price chart in divergence; by default, true;
  • Line bull divergence color - color of the trend line in bullish divergence; by default, Green;
  • Line bear divergence color - color of the trend line in bearish divergence; by default, Red.

I would also recommend the Angle DeMarker indicator that shows the angle of the DeMarker indicator line for a more accurate identification of the possible points of extremum.

No reviews
Version 1.10 - 2015.09.07
Improved the indicator operation algorithm.