Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=2
- study("1 min scalping", shorttitle="Scalping", overlay=true)
- a = ema(close, 12)
- b = ema(close, 26)
- c = sma(close, 55)
- long = cross(a, c) and a > b
- short = cross(a, c) and a < b
- plot(a, title="12", color=red, linewidth=1)
- plot(b, title="26", color=blue, linewidth=1)
- plot(c, title="55", color=green, linewidth=1)
- alertcondition(long, title='Long entry', message='')
- alertcondition(short, title='Short entry', message='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement