Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- study(title="4MA", overlay=true)
- short = sma(low, 8)
- long = sma(high, 10)
- plot(short, title="SMA8", color = yellow, linewidth = 2)
- plot(long, title="SMA10", color = orange, linewidth = 2)
- plot(cross(short, long) ? short : na, style = cross ,color = lime, linewidth = 4)
- sma3 = sma(close, 50)
- sma4 = sma(close, 200)
- plot(sma3, title="SMA50", color = blue, linewidth = 2)
- plot(sma4, title="SMA200", color = fuchsia, linewidth = 2)
- plot(cross(sma3, sma4) ? sma4 : na, style = cross, color = lime, linewidth = 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement