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.
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.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.