Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. study(title="4MA", overlay=true)
  2. short = sma(low, 8)
  3. long = sma(high, 10)
  4. plot(short, title="SMA8", color = yellow, linewidth = 2)
  5. plot(long, title="SMA10", color = orange, linewidth = 2)
  6. plot(cross(short, long) ? short : na, style = cross ,color = lime, linewidth = 4)
  7. sma3 = sma(close, 50)
  8. sma4 = sma(close, 200)
  9. plot(sma3, title="SMA50", color = blue, linewidth = 2)
  10. plot(sma4, title="SMA200", color = fuchsia, linewidth = 2)
  11. plot(cross(sma3, sma4) ? sma4 : na, style = cross, color = lime, linewidth = 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement