I have a stop loss and profit target orders as shown below.
SetStopLoss("", CalculationMode.Ticks, 40,true);
SetProfitTarget("", CalculationMode.Ticks, 100, true );
“true at the end in StopLoss order makes it simulated, meaning the order stays on my server till price hits my stop then it will send market order to broker to close the position. But, the broker wont have my stop loss order information till it is already hit. This is working as it supposed to.
Now, I don’t want the broker to see my resting profit target order. I want it to be sent to broker only after price crosses profit target. The “true” part at the end here is for MIT (market if touched) but Ninja is not making it a simulated order and immediately submitting it to the broker and I can see resting profit target order on the broker side.
So, is there a way to make this default SetProfitTarget as a simulated order? Or do we have to resort to using some other order types to achieve it? If stop loss order can be simulated, profit target order should also be easily made simulated.
Any help will be appreciated. Thank you.
MJ
Comment