I am trying to code a simple one cancels the other (OCO) order. I want to submit a long and a short order (with set profit target and a set stop loss) and once one of them gets executed, the other should be cancelled and there should not be any more orders for the day (execute only once per day).
I would sincerely appreciate any help on how to code this in NinjaScript.
Thanks.
Comment