vdubus

MACD_Tracer_VDUB_V1

603 1 52
Modified Macd 4c
Doubled up macD Tracer Offset -2
Remove from Favorite Scripts Add to Favorite Scripts
study(shorttitle = "MACD_Tracer_VDUB_V1", title = "MACD_Tracer_VDUB_V1")
fastMA = input(title="Fast moving average", type = integer, defval = 13, minval = 7)
slowMA = input(title="Slow moving average", type = integer, defval = 21, minval = 7)
[currMacd,_,_] = macd(close[0], fastMA, slowMA, 9)
[prevMacd,_,_] = macd(close[1], fastMA, slowMA, 9)
plotColor = currMacd > 0 
    ? currMacd > prevMacd ? #B5CCF3 :  #1E8CC3
    : currMacd < prevMacd ? #1E8CC3 : #B5CCF3
plot(currMacd, style = area, color = plotColor, linewidth = 3)
/////////////////////////////////////////////////////////////////////////////////////

fastMA2 = input(title="tracer", type = integer, defval = 13, minval = 7)
slowMA2 = input(title="tracer", type = integer, defval = 21, minval = 7)
[currMacd2,_,_] = macd(close[0], fastMA2, slowMA2, 9)
[prevMacd2,_,_] = macd(close[1], fastMA2, slowMA2, 9)
plot(currMacd2, style = line, color = black, linewidth = 3, offset=2, title="Tracer")
How do I use this strategy?
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out