Moving average convergence divergence ( MACD
) is a trend indicator that enables to show crossing between two (L and H in this script) moving averages of prices. The MACD
is calculated by subtracting the 26-day for H (12 for L) exponential moving average
) from the 12-day for H (5 for L) EMA
with used signal value is 1 as default in this script. MACD
L, H and crossing each other can be used as a trigger for buy and sell signals.