Does OrderModify changes the ticket number?

 
                              if(true)
                              {                                   
                                    if(OrderModify(OrderTicket(),OrderOpenPrice(),Bid + (stopLoss*Point),Bid -(takeProfit*Point),0,White)) 
                                    {
                                    
                                          //Send confimation to email/phone
                                          
                                          Print("Modified Sell :", myPeriod(Period()), " opened : ", OrderOpenPrice(), " New SL : ", Bid + (stopLoss*Point), " | New TP : ",Bid -(takeProfit*Point),
						 " | Ticket # : ", ticketNum); 
                                          return(0);     
                                    }
                                    else
                                    { 
                                          Print("Error OrderModify(Sell) -- Tick # : ", ticketNum, " | Error -- " ,GetLastError());
                                          return(0);
                                    } 
    
                                    return(0);
                              }
Does OrderModify changes the ticket number?
What I am trying to do is to use the codes above as an trailing stop, but for some reason it only works once, can someone help?

2006.06.20 09:32:28 1996.11.27 00:00 Tester: take profit #95 at 1.2791 (1. 2839 / 1.2841)
2006.06.20 09:32:28 1996.11.26 00:00 testing17 EURUSDm,Daily: open #95 sell 1.00 EURUSDm at 1.2841 sl: 1.2873 tp: 1.2791 ok
2006.06.20 09:32:28 1996.10.25 00:00 testing17 EURUSDm,Daily: Modified Buy emaSMA : D1 opened : 1.2851 New SL : 1.2932 | New TP : 1.285 | Ticket # : 94 <--------- Here
2006.06.20 09:32:28 1996.10.25 00:00 testing17 EURUSDm,Daily: modify #94 buy 1. 00 EURUSDm at 1.2851 sl: 1.2870 tp: 1.2952 ok
2006.06.20 09:32:28 1996.10.24 00:00 testing17 EURUSDm,Daily: open #94 buy 1.00 EURUSDm at 1.2851 sl: 1.2819 tp: 1.2901 ok
2006.06.20 09:32:28 1996.09.04 00:00 testing17 EURUSDm,Daily: open #93 sell 1.00 EURUSDm at 1.3170 sl: 1.3202 tp: 1.3120 ok
 
Try the following code:
Print("Before OrderModify");
OrderModify(...
Print("After OrderModify");
 

I think the answer is no. I use OrderModify many times to change order buystop/sell price before some events and ticket is the same.
Ticket is given by server when order is create, so it should'nt change - I think.

Andrew

 
You can use the log file to see what happens. It's easy to see then that the ticket number stays the same after a modify.
 
OrderModify does not change ticket number.
 

I think in some cases the Ticket number IS MODIFIED !!!!

Enclosed is trade befo and after size modifcation !!!

How can I obtain the new ticket nuber immediately after modification please ?

Thanks Eman

 
stringo:
OrderModify does not change ticket number.

I think in some cases the Ticket number IS MODIFIED !!!!

Enclosed is trade befo and after size modifcation !!!

How can I obtain the new ticket nuber immediately after modification please ?

Thanks Eman

Reason: