Hi , I am placing long order for 20 contracts with below code with signal name @"$Long"
EnterLongLimit(0, true, 20, (High[1]+0.25) , @"$Long");
ExitLongStopMarket(0, true, 15, longSLPrice, "lstop", @"$Long"); ExitLongStopMarket(0, true, 5, longSLPrice, "lstop2", @"$Long");
ExitLongLimit(0, true, 15, longPTPrice, "ltarget", @"$Long"); ExitLongLimit(0, true, 5, longPTPrice, "ltarget2", @"$Long");
Use case 1 : When both the stop loss are filled, both target has to be cancelled automatically.
1.a : if the stop is filled partially, it has to cancel the target order for the same quantity.
Use case 2: when Target Order is filled, Stop loss order has to be closed automatically.
2.a if the target is filled partially, it has to cancel the stop loss order for the same quantity
But it is not working in that way. Am I missing anything here ? I don't see option to match one SL order with one Target order also.

Comment