Error 136 : Off quotes with Orders and Trailing
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.
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?