it is possible, but very difficult. (and EXPENSIVE)
because you asked such a question, its not a job for you to find the solution.
i recognized your skill level - nothing offending.
its hard to realize, even for an experienced programmer, but its possible, and this was your question....
Hi All
i want to know if possible to do that sequence in EA.
1-to stop the EA completely from trading when balance is 100 pips less than the balance of 2 days past.
2-then EA starts to do backtesting (on background) everyday from day of stopped trading.
when backtest shows balance higher 100 pips than balance of 2 days past, the EA resumes trading normally till
it loses again 100 pips and check again backtesting, and so on...
Thanks,
Anthony
U can build on the code here: Articles -> Tester -> Automated Optimization of a Trading Robot in Real Trading
Like meikel said though, it's not simple.

- 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 All
i want to know if possible to do that sequence in EA.
1-to stop the EA completely from trading when balance is 100 pips less than the balance of 2 days past.
2-then EA starts to do backtesting (on background) everyday from day of stopped trading.
when backtest shows balance higher 100 pips than balance of 2 days past, the EA resumes trading normally till
it loses again 100 pips and check again backtesting, and so on...
Thanks,
Anthony