newbie so please forgive for my obivious question.
I am trying to back test a strategy.
To place the order i am using the following command
ExitLongStop(vNbContrat,vStop, "stop initial", type);
ExitLongLimit(vNbContrat/3, vObj1, "Objectif 1", type);
the first line if ok but for the second and Third lines I am getting an error message
" Ignored PlaceOrder() method: Action=BuyToCover OrderType=Stop Quantity=6 LimitPrice=0 StopPrice=3719,5 SignalName='stop intitial' FromEntrySignal='123R Baissier' Reason='This was an exit order but no position exists to exit'"
In addition how can we modifiy an order (move the stop to the average price)
If we have multiple exit points should we partially cancel the stoploss order, when the first goal is reached ?
if the position is closed (stop loss or goal reached) should we remove all pending order in the code ?
Many thanks in advance
Lionel

Comment