Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // if we're using the trailing stop
- //useStop = input(defval = true, title = "Use Trailing Stop?")
- //slPoints = input(defval = 200, title = "Stop Loss Trail Points", minval = 1)
- //slOffset = input(defval = 400, title = "Stop Loss Trail Offset", minval = 1)
- //if (useStop)
- //strategy.exit("XL", from_entry = "long", trail_points = slPoints, trail_offset = slOffset)
- //strategy.exit("XS", from_entry = "short", trail_points = slPoints, trail_offset = slOffset)
- // not sure needed, but just incase..
- //strategy.exit("XL", from_entry = "long", when = shortCond)
- //strategy.exit("XS", from_entry = "short", when = longCond)
Advertisement
Add Comment
Please, Sign In to add comment