Please I want people using this forum to help me correct error that could not make this attached ea backtest or demo trade. There was no error during compilation yet doest work. Please help
Your EA had an endless loop in the very first "for loop" that counts your open trades. You had "i>=OrdersTotal()" instead of "i<=Orderstotal()".
Your EA had an endless loop in the very first "for loop" that counts your open trades. You had "i>=OrdersTotal()" instead of "i<=Orderstotal()".
Thanks very much i have corrected it. But after correction, it places order and modify it just once and after it stopped working. The code is attached again for another correction
Thanks very much i have corrected it. But after correction, it places order and modify it just once and after it stopped working. The code is attached again for another correction
Your Trailing stop calculations are all assed-backwards ;)
You need this condition for the buy trades " if(NormalizeDouble(SL,Digits)<NormalizeDouble(Ask-TS*Point,Digits)". Use the opposite for sell trades. I modified it and then the EA worked correctly :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please I want people using this forum to help me correct error that could not make this attached ea backtest or demo trade. There was no error during compilation yet doest work. Please help