Hi guys,
When I run my EA I have this error (OrderModify Error 1).
Also there are some trades that get closed before they could be modified.
So that you have an idea, TP and ST are at 30 pips (5 decimals broker) wich means 3 dolars of profit or loss. (0.01 Lots).
When the price just reach 2.90, OrderModify should work.
I apologize considering that this topic has been published many times. Your help is always welcome.
Thanks
Thanks!
That is not actually an error but will fill your log file if you do not clean your code up ...
That only means that nothing would have changed (nether stop loss not take profit). Do a check before order modify if there is actually something going to be changed in the order if you attempt order modify with your new stop loss and / or take profit
As of closing : check your EA along with the above described code adjustments that you have to make in order to avoid "error 1"
That is not actually an error but will fill your log file if you do not clean your code up ...
That only means that nothing would have changed (nether stop loss not take profit). Do a check before order modify if there is actually something going to be changed in the order if you attempt order modify with your new stop loss and / or take profit
As of closing : check your EA along with the above described code adjustments that you have to make in order to avoid "error 1"
Hello
Thank you for your post.I also face this error sometime.
- Above code is a must to face ERROR 1.
- Because first time when price meet 2.9 it can work with no error.
- As market move up..down..in the second time OrderStoploss ()== newstoploss so result of OrderModify will be no changed.. mean ERROR 1.
However in my code i check it before (newStoploss-OrderStoploss()>50 pip) but also face this error some time.
So I hope to know more detail if have.
CHAIYA
Hello
Thank you for your post.I also face this error sometime.
- Above code is a must to face ERROR 1.
- Because first time when price meet 2.9 it can work with no error.
- As market move up..down..in the second time OrderStoploss ()== newstoploss so result of OrderModify will be no changed.. mean ERROR 1.
However in my code i check it before (newStoploss-OrderStoploss()>50 pip) but also face this error some time.
So I hope to know more detail if have.
CHAIYA
- www.metatrader5.com
You | Server |
---|---|
Change the SL to X | It is at X! |
Change the SL to X | It is at X! |
Change the SL to X | You are insane |
ERR_NO_RESULT:
You | Server |
---|---|
Change the SL to X | It is at X! |
Change the SL to X | It is at X! |
Change the SL to X | You are insane |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
When I run my EA I have this error (OrderModify Error 1).
Also there are some trades that get closed before they could be modified.
So that you have an idea, TP and ST are at 30 pips (5 decimals broker) wich means 3 dolars of profit or loss. (0.01 Lots).
When the price just reach 2.90, OrderModify should work.
I apologize considering that this topic has been published many times. Your help is always welcome.
Thanks
Thanks!