Announcement

Collapse
No announcement yet.

Strategy.setStop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strategy.setStop

    This may be simple, but how do you use setStop in combination with a doBuy or doSell where you open on Strategy.NEXTBAR? In other words, if I open a position with

    Strategy.doLong("Crossing Up", Strategy.MARKET, Strategy.NEXTBAR);

    and I want to immediately put in a stop, how can I do this while setStop requires an actual price? How do I get the fill price for the NEXTBAR?

    -Christian
Working...
X