YThi MJ:
Run code profiller to identify 'expensive' parts of your code, then optimize it.
Hi, I am trying to implement a Recovery Strategy to an EA but it has suddenly become too heavy for Strategy Tester so it is even more difficult for me to identify the errors.
I have extracted part of the code to test it but it still runs very slow plus in Real it is not providing the right lots on the 4th trade.
Can anybody tell me what should I do?
I am trying to do something similar to Recovery Grid Trade - Tidane Trend.mq4 / I have added the Indicator just in case you need to test it.
Best regards
SOLVED. I had a loop in WHILE less than 2 for Trailing.
Thanks a lot 😃

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
Hi, I am trying to implement a Recovery Strategy to an EA but it has suddenly become too heavy for Strategy Tester so it is even more difficult for me to identify the errors.
I have extracted part of the code to test it but it still runs very slow plus in Real it is not providing the right lots on the 4th trade.
Can anybody tell me what should I do?
I am trying to do something similar to Recovery Grid Trade - Tidane Trend.mq4 / I have added the Indicator just in case you need to test it.
Best regards