Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

DiffMA_Histogram - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

DiffMA_Histogram - indicator for MetaTrader 5

This indicator shows the difference between the two Difference MA lines, two moving averages calculated within the range of a one-way candlestick.

It is not necessary to provide the differential MA for calculation - the indicator calculates it itself.

It has two configurable parameters:

DMA = (up - down)

UP = Sum/Count

DN = SumDn / CountDn

SumUp = sum of SMAs of all bullish candlesticks during the period (applied price, 1)

SumDn = sum of SMAs of all bearish candlesticks during the period (applied price, 1)

CountUp - number of bullish candlesticks during the period

CountDn - number of bearish candlesticks during the period

DiffMA_Histogram - indicator for MetaTrader 5


Attachment download

📎 diffma_histogram.mq5 (9.21 KB)

Source: MQL5 #21317

Verification code Refresh