OPEN-SOURCE SCRIPT

Myx.Mir_ MACD.V2 ][ c/w Hist.Color & Label

Moving average convergence divergence ( MACD ) is commonly and widely used for Technical Analysis .

// Basis- based on default setting
macdLine, signalLine, histLine = default setting


with additional "cosmetic/ Makeup"
1) for 4R1G set up Trader. Histogram color as follows:-
a) if Hist => 0 = Hist > Hist ? color.green : na, Hist < Hist ? color.red : na
b) if Hist <= 0 = Hist < Hist ? color.green : na, Hist > Hist ? color.red : na

2) crossover MACD Line, SignalLine- with label "EN" / "EX"


Do not follow the signal blindly. Trader's should be able to identify the trend whether there is uptrend, sideways and downtrend.
Entry and/or Exit are based on Trader's risk appetite.
Moving Average Convergence / Divergence (MACD)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer