Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. //@version=4
  2. study(title="Two EMAs", overlay=true)
  3.  
  4. src = input(close, input.source, title="Source")
  5. len1 = input(9, title="First EMA length")
  6. len2 = input(44, title="Second EMA length")
  7.  
  8. ma1 = ema(src, len1)
  9. ma2 = ema(src, len2)
  10. plot(ma1, color = color.teal)
  11. plot(ma2, color = color.orange)
  12. // plot(cross(ma1, ma2) ? ma1 : na, style = plot.style_cross, linewidth = 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement