Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //@version=2
  2. study("WH Heiken Ashi Overlay Simple", "Heiken Ashi", overlay=true)
  3.  
  4. showEMAs = input("Show EMAs", type=bool)
  5.  
  6. c = (high + low + close) / 3
  7. o = na(o[1]) ? (open + close) / 2 : (o[1] + c[1]) / 2
  8. h = max(high, max(o, c))
  9. l = min(low, min(o, c))
  10.  
  11. col = c > o ? green : red
  12.  
  13. plotcandle(o, h, l, c, "Heiken Ashi", col, white)
  14. //plot(close[1], trackprice=true, offset=-99999, color=red)
  15. plot(ema(hlc3, 5),color=yellow,linewidth=2,offset=3)
  16.  
  17. //plot(ema(hlc3, 21),color=red,linewidth=1,offset=5)
  18. //plot(ema(hlc3, 255),color=green,linewidth=1,offset=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement