anuj71:
1. Check GetLastError.Hello,
I am frequently getting Error 136, specially during news hours. I searched and founded this happens due to Price change faster than EA placing trade. In this forum i saw some post where peoples saying using of RefreshRates(); will resolve the error.
I changed to code with RefreshRates(); :
I am doing correct?. And RefreshRates(); is only way to resolve Error 136 or i have to work in other sect of code too?
2. If it is 136 call RefreshRate and do everything from start.
Or you can just ignore the error untill it can do it in upcoming ticks.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello,
I am frequently getting Error 136, specially during news hours. I searched and founded this happens due to Price change faster than EA placing trade. In this forum i saw some post where peoples saying using of RefreshRates(); will resolve the error.
I changed to code with RefreshRates(); :
I am doing correct?. And RefreshRates(); is only way to resolve Error 136 or i have to work in other sect of code too?