Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- strategy("Alex", overlay=true)
- plot_offs = input(0.005, title="Indicator offset % (below low)")
- r_hl = roc((high-low)/volume,1)
- r_v = roc(volume,1)
- green_f = (r_hl > 0) and (r_v > 0)
- fade_f = (r_hl < 0) and (r_v < 0)
- fake_f = (r_hl > 0) and (r_v < 0)
- squat_f = (r_hl < 0) and (r_v > 0)
- if squat_f
- strategy.entry("buy", strategy.long)
- strategy.entry("sell", strategy.short)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement