Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- study(title="Baseline_VX1+1", overlay=true)
- source = close
- short = sma(close, 3)
- long = sma(close, 13)
- plot(short, color=blue, linewidth=2)
- plot(long, color=red, linewidth=4)
- plot(cross(long, short) ? long : na, style = circles, color=blue, linewidth = 9)
- OutputSignal = long >= short ? 1 : 0
- bgcolor(OutputSignal>0?red:gray, transp=100)
- //==============================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement