Help with OrderModify Function
if (Bid==1.000||Bid==1.0010 ||Bid==1.0020 ||Bid==1.0030 ...
Will never be true. The == operand. - MQL4 forum- Check your return codes (OrderModify and OrderSelect) What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Hey guys,
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:
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.