retesere20

---recycler---

Aug 14th, 2018
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // if we're using the trailing stop
  3. //useStop = input(defval = true, title = "Use Trailing Stop?")
  4. //slPoints = input(defval = 200, title = "Stop Loss Trail Points", minval = 1)
  5. //slOffset = input(defval = 400, title = "Stop Loss Trail Offset", minval = 1)
  6. //if (useStop)
  7. //strategy.exit("XL", from_entry = "long", trail_points = slPoints, trail_offset = slOffset)
  8. //strategy.exit("XS", from_entry = "short", trail_points = slPoints, trail_offset = slOffset)
  9. // not sure needed, but just incase..
  10. //strategy.exit("XL", from_entry = "long", when = shortCond)
  11. //strategy.exit("XS", from_entry = "short", when = longCond)
RAW Paste Data