My NinjaScript Strategy code places a market order and sends its trade-management control to a previously defined "SystemATM". For this, the function used is AtmStrategyCreate().
However, on execution, although the order is placed successfully, but an error occurs indicating that it is unable to ATM template, as shown in the attachment. But, the template already exists at desired location.
Important point is, before calling the AtmStrategyCreate() function, the NinjaScript code modifies contents of the ATM template on-the-fly using WriteAllLines(). Just to ensure that file is successfully written, the code ensures that the over-written ATM template opens successfully.
May someone point out how can I successfully access the ATM template, from within the code?
Thanks in Advance
Vivek
Comment