TradingView
Wave-Trader
Nov 26, 2016 4:51 PM

2 colour MACD 

USD/JPYOANDA

描述

study(shorttitle = "MACD WAVE TRADER", title = "2 colour MACD")
fastMA = input(title="Fast moving average", type = integer, defval = 12, minval = 7)
slowMA = input(title="Slow moving average", type = integer, defval = 26, minval = 7)
lastColor = yellow
[currMacd,_,_] = macd(close[0], fastMA, slowMA, 9)
[prevMacd,_,_] = macd(close[1], fastMA, slowMA, 9)
plotColor = currMacd > 0
? currMacd > prevMacd ? white : maroon
: currMacd < prevMacd ? maroon : white
plot(currMacd, style = histogram, color = plotColor, linewidth = 3)
plot(0, title = "Zero line", linewidth = 1, color = gray)
评论
odaydiki
i try...tanks for share..
Endy123
Isn't it the same like MACD 4C?
Ian
@ondrej.holubek, Yes, just changed colors :D
Wave-Trader
@Ian, yup you are right you guys can do that mate you can set your variables as well and also colours....
forexyoga
better change colors from this dull one. great script . thx.
Wave-Trader
@forexyoga, Sure mate i will do that
albertos
I am short Uj Red zone
更多