Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- study(title="Two EMAs", overlay=true)
- src = input(close, input.source, title="Source")
- len1 = input(9, title="First EMA length")
- len2 = input(44, title="Second EMA length")
- ma1 = ema(src, len1)
- ma2 = ema(src, len2)
- plot(ma1, color = color.teal)
- plot(ma2, color = color.orange)
- // plot(cross(ma1, ma2) ? ma1 : na, style = plot.style_cross, linewidth = 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement