For instance, I see that when using an ATM strategy to say buy 100 shares and then have 2 targets and 2 stops entered, only a single commission is charged on the entry. Then each of the 4 open orders (2 limits & 2 stops bracketed) will each incur their own commission.
My question is... using a NinjaScript Strategy, is it possible to enter the market once on entry (thus one commission charge) yet still be able to have two profit targets and two stop losses (like in the ATM example above)?
The following code would generate 2 commissions on entry:
EnterLongStopLimit(0, false, 50, LimitPrice, StopPrice, "LongEntry1");
SetStopLoss("LongEntry1", CalculationMode.Price, StopLossPrice1, false);
SetProfitTarget("LongEntry1", CalculationMode.Price, R1_Price1);
EnterLongStopLimit(0, 50, Shares, LimitPrice, StopPrice, "LongEntry2");
SetStopLoss("LongEntry2", CalculationMode.Price, StopLossPrice2, false);
SetProfitTarget("LongEntry2", CalculationMode.Price, R2_Price2);
Is there a way to enter once and still end up with 2 profit targets and 2 stop losses for that order?
Thanks
fosch

Comment