i have a very simple problem and it makes me crazy that i cant solve it. I wrote a small EA which should Modify the Oder every 10 pips to a new SL of 20 pips. But it always says: "invalid ticket for OrderModify function". Here is the code:
if (Bid==1.000||Bid==1.0010 ||Bid==1.0020 ||Bid==1.0030 ||Bid==1.0040 ||Bid==1.0050 ||Bid==1.0060 ||Bid==1.0070 ||Bid==1.0080 ) //and so on
When I put the OrderTicket() function in an Alert, it alerts the ticket correctly. But it doesnt work in the OrderModify function.
Dont worry, its just a small part of the ea .
Thanks for your help.
if (Bid==1.000||Bid==1.0010 ||Bid==1.0020 ||Bid==1.0030 ...