I am using NT8 and using the unmanaged approach. Strategy seems to be working fine when submitting Entry and the initial OCO orders however I want to modify the order so that it updates my OCO order every time price goes up.
For example: if(Low[0] > Low [1] && Low[1] > StopLoss)
ChangeOrder(...);
ChangeOrder(...);
I tried using the Change Order function in the execution section of the script however I got an error message and strategy was disabled
Error: "OCO orders cannot be modified. You must cancel the OCO pair and resubmit the orders"
Strategy submitted an order that generated the following error 'Unable to change order'. Strategy has sent cancel requests, attempted to close the position and terminated itself.
***Please note that strategy does seem to be working fine when I am back testing it or with Historical Data.
I will really appreciate if someone can help me out or point me in the right direction.
Thanks,
Comment