Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //@version=4
  2. strategy("Alex", overlay=true)
  3.  
  4. plot_offs = input(0.005, title="Indicator offset % (below low)")
  5.  
  6. r_hl = roc((high-low)/volume,1)
  7. r_v = roc(volume,1)
  8.  
  9. green_f = (r_hl > 0) and (r_v > 0)
  10. fade_f = (r_hl < 0) and (r_v < 0)
  11. fake_f = (r_hl > 0) and (r_v < 0)
  12. squat_f = (r_hl < 0) and (r_v > 0)
  13.  
  14. if squat_f
  15. strategy.entry("buy", strategy.long)
  16. strategy.entry("sell", strategy.short)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement