Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. //@version=1
  2. strategy("Price Channel Strategy", overlay=true)
  3. length = input(5)
  4. length1 = input(12)
  5. hh = highest(high, length)
  6. ll = lowest(low, length1)
  7. if (not na(close[length]))
  8. strategy.entry("PChLE", strategy.long, comment="PChLE", stop=hh)
  9. strategy.entry("PChSE", strategy.short, comment="PChSE", stop=ll)
  10.  
  11. //plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement