I then changed the GTC timeinforce parameter in the strategy to Day. I re-enabled the strategy and excuted another trade that CQG accepted.
My problem now is that when I backtest with Strategy Analyzer, the stops are not GTC, even though I'm issuing this:
TradeStopOrder=ExitLongStop(0,true,qty,Price,"Stop loss",TradeName);
1. I know I can't dynamically change the TIF parameter.
2. I know for this DX instrument, it has to be DAY
3. I'm not sure what to do with the Stop that runs multi-day. Do I have to write code to put the Stop back on every night?
4. Why can't I override the ENTERLONG with a timeinforce (DAY) option and leave the strategy TIF parameter set to GTC?
5. Or, why doesn't the true flag actually send the ExitLongStop with a GTC flag when using the strategy TIF parameter set to DAY?
Thanks
John
Comment