MetaTrader 5 / Indicators
DeMarker_Histogram_Vol - indicator for MetaTrader 5
4425
DeMarker oscillator displayed as a color histogram, using volumes.
Calculation formula:
DeMarker Histogram Vol = (100 * DeMarker - 50) * Volume
For quite understandable reasons, the recalculation of overbought and oversold levels in such a modified oscillator should be performed using the same formula. In the final version, these levels are no longer permanent. Two levels with the appropriate breakout indication were used.
input int HighLevel2=+20; // overbought level 2 input int HighLevel1=+15; // overbought level 1 input int LowLevel1=-15; // oversold level 1 input int LowLevel2=-20; // oversold level 2
In the indicator input parameters, these levels are additionally multiplied by 100 and shifted by the levels of 50 of the source DeMarker, and then multiplied by volumes at each indicator tick.
Fig. 1. DeMarker_Histogram_Vol
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21909