In looking through the overloads for my order entry, it appears that there is only one option to include the live until cancelled, but it comes with in barsInProgressIndex as the first overload, which I don't understand what to do with that. I have read the material in the help section and it appears that it is only dealing with multi-instrument strategies.
my current entry looks like this:
if (SignalCandleLong == true) { LongEntryA = EnterLongStop(DefaultQuantity, TrendPilotPricesLong(EntryPerc, StopPerc, TargetPerc).LongEntry[0], "LongEntryA"); LongEntryB = EnterLongStop(DefaultQuantity, TrendPilotPricesLong(EntryPerc, StopPerc, TargetPerc).LongEntry[0], "LongEntryB"); barResetUp = true;
- Should I be using barsInProgressIndex with this in some way?
- If I should, what should go in that field?
- If not, how do I continue forward with my entry logic making sure that it is live until it is either cancelled or filled?
Thank you for your help.
Comment