| / | Forum |
|
monkeytrading
2006.06.20 20:35
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 |
|
Tricolor Indicators and Some Opportunities for Maximal Simplification of Writing Indicators In this article the author dwells on some means of increasing indicators' informational value for visual trading. The author analyzes the realization of tricolor indicators, indicators, for building which data from other timeframes is used, and continues to dwell on the library of indicators, described in the article "Effective Averaging Algorithms with Minimal Lag: Use in Indicators" |
|
RickD
2006.06.20 23:58
Try the following code:
Print("Before OrderModify"); OrderModify(... Print("After OrderModify"); |
|
Andrew
2006.06.21 12:28
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. |
|
zuijlen
2006.06.22 06:17
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.
|
5198 |
stringo
2006.06.22 10:00
OrderModify does not change ticket number.
|
|
Eman
2007.11.12 19:25
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 |
|
Eman
2007.11.12 19:32
stringo wrote: 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 |