Currently I use:
AtmStrategyCreate(OrderAction.Buy,OrderType.Market ,A1M_PENDING_Entry,0,TimeInForce.Day,all_Order_ID, A1M_PENDING_ATM,all_Order_ID);
To place orders in the strategy.
Also,
The order "signal" is produced by an indicator and sent to the strategy via a global string variable.
public class GlobalString{public static string command = "EMPTY";}
My question/s:
1. Is there anything related to using a string command as shown (indicator signals the strat to trade) that will prevent backtesting a strategy using such an approach?
To be clear, this indicator is NOT being loaded with Initialize (and I don't want that for a host of reasons). Said, indicator sets the GlobalString = BUY and the strategy does the rest.
2. If I recode and use IOrder instead of AtmStratCreate will that support backtesting?
Thanks in advance!
Best regards,
Sean
Comment