I looked into other user comments and saw that it is possible to use ATM templates to work with strategies through the SampleAtmStrategy. Is this correct? I was trying to make one such work however i got the following error. this is a SMA crossover strategy just to see it work.
I get following errors when I try to compile:
Strategy\TestAtm.cs 'System.Action' does not contain definition of 'Buy' CS0117 - click for info 79 30
AtmStrategyCreate(Action.Buy, OrderType.Limit, Close[0], 0, TimeInForce.Day, orderId, "StopToEntryStrategy", atmStrategyId);
Strategy\TestAtm.cs 'System.Action' does not contain definition of 'Sell' CS0117 - click for info 90 31
AtmStrategyCreate(Action.Sell, OrderType.Limit, Close[0], 0, TimeInForce.Day, orderId, "StopToEntryStrategy", atmStrategyId);
Thanks in advance,
Troy
Comment