I have written a strategy that enters say a 2 lot with a near and wide profit target for each individual 1 lot. Both 1 lots have a trailing stop loss as well.
Problem: I currently only have one IOrder entryOrder which both OCOs are related to. If I get a nearProfitTarget fill for 1 lot and the price then retraces, my nearStopLoss triggers rather than my wideStopLoss. So, is it more efficient/elegant/correct to code up the strategy with
[A] two separate entry orders: nearEntryOrder and wideEntryOrder, or
[B] to set the nearStopLoss to null if the nearProfitTarget gets hit and vice-versa, and in doing so leaving just the wideProfitTarget and wideStopLoss to act as required?
Thanks,
darmbk.

Comment