Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=1
- strategy("Price Channel Strategy", overlay=true)
- length = input(5)
- length1 = input(12)
- hh = highest(high, length)
- ll = lowest(low, length1)
- if (not na(close[length]))
- strategy.entry("PChLE", strategy.long, comment="PChLE", stop=hh)
- strategy.entry("PChSE", strategy.short, comment="PChSE", stop=ll)
- //plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement