Yesterday, 08:19 AM
I want to know if someone in NinjaTrader Forum faced a similar issue with implementing the 2 bracket strategy.
Narrative: I'm implementing a simple strategy for a 2 Long Limit order to trigger two OCO orders.
There are two entries LongEntryOrde1= LongEntryOrder2. Each order entry is linked to its own OCO.
I used SetProfitTarget() and SetStopLoss() methods to set OCO1 and OCO2 before filling the long orders.
I cancel LongEntryOrder1 and LongEntryOrder2 after they are filled.
Issue: After LongEntryOrde1 and LongEntryOrde2 were filled, the OCO order quantities exceeded the quantity of Long Entries.
For instance: LongEntryOrde1 has 3 contracts and LongEntryOrde2 has 4 contracts. so I'm anticipating 3 contracts for OCO1 pair and 4 contracts for OCO2 pair to be placed, totaling 7 contracts.
Instead, I'm getting placed 14 OCO contracts.
The attached files may clarify the issue.
Appreciate help.

Comment