Advertisement
Guest User

Untitled

a guest
May 19th, 2015
1,631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. study(title="Baseline_VX1+1", overlay=true)
  2. source = close
  3. short = sma(close, 3)
  4. long = sma(close, 13)
  5. plot(short, color=blue, linewidth=2)
  6. plot(long, color=red, linewidth=4)
  7. plot(cross(long, short) ? long : na, style = circles, color=blue, linewidth = 9)
  8. OutputSignal = long >= short ? 1 : 0
  9. bgcolor(OutputSignal>0?red:gray, transp=100)
  10. //==============================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement