Hi,
Whenever I call AtmStrategyCancelEntryOrder() within my Ninjascript strategy to cancel an ATM created entry order, my entire strategy is immediately terminated. I need the strategy to continue analaysing for entries after cancelling the ATM strategy as it does after cancelling ordinary non-ATM managed entry orders.
The ATM cancelling code is below, is there something that I doing wrong or is this the expected behaviour?
string[] entryOrder;
foreach (string atmStrategyId in ATMStratagyIDs)
{
// checks if the entry order exists
// and the order state is not already cancelled/filled/rejected
if (entryOrder.Length > 0 && entryOrder[2] == "Working")
{
if(AtmStrategyCancelEntryOrder(atmStrategyId))
ATMStratagyIDs.Remove(atmStrategyId);

Comment