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
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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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