Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=2
- study("WH Heiken Ashi Overlay Simple", "Heiken Ashi", overlay=true)
- showEMAs = input("Show EMAs", type=bool)
- c = (high + low + close) / 3
- o = na(o[1]) ? (open + close) / 2 : (o[1] + c[1]) / 2
- h = max(high, max(o, c))
- l = min(low, min(o, c))
- col = c > o ? green : red
- plotcandle(o, h, l, c, "Heiken Ashi", col, white)
- //plot(close[1], trackprice=true, offset=-99999, color=red)
- plot(ema(hlc3, 5),color=yellow,linewidth=2,offset=3)
- //plot(ema(hlc3, 21),color=red,linewidth=1,offset=5)
- //plot(ema(hlc3, 255),color=green,linewidth=1,offset=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement