for having finally an idea about the sense of these posts I have to state.
Patrick posted to do with
if(myCondition) { stopOrder = ExitLongStop(0, true, 3000, execution.Order.AvgFillPrice -100 * TickSize, "StopML1a", "ML1"); } if(myOtherCondition) { stopOrder = ExitLongStop(0, true, 3000, myNewStopPrice, "StopML1a", "ML1"); }
I changed my coding and posted that there occur the error messages in output window
Ignored PlaceOrder() method: Action=BuyToCover OrderType=Stop Quantity=1000 LimitPrice=0 StopPrice=1,3191'7 SignalName=StopD1b' FromEntrySignal='D1' Reason='There already is a matching order with same prices and quantity'
and again
and again....
then I got the answer to use different signal names after I have changed from different signal names referring to reply of NT-support ("nstead of submitting multiple Stop Orders with different names, strings or IOrder. Just use one IOrder for all stops."
In the last post here I find "Keeping the order price and signal name unique will work as well." but I mentioned before that when doing so there appear the error messages in the output window.
Sorry, this is not correct.
So, how to work with the one IOrder when there appear the message in output window as posted above?
Best
Tony
and


Comment