If it uses OnCalculate, it is a indicator, not an EA
thank you william for your response.
so, could you please help me that how can i use an EA and indicator at the same time on strategy tester?
GUIs do not work in the tester. Mouse clicks (events) do not work in the tester.
See In backtest OnTimer() not performs - MQL4 programming forum #3 (2014)
and work around Chart Event For MT4 Backtester - Strategy Tester - MQL4 programming forum #7 (2016)
and How to use OnChartEvent buttons to work in Tester - MQL4 programming forum - Page 2 #11 (2019)
GUIs do not work in the tester. Mouse clicks (events) do not work in the tester.
See In backtest OnTimer() not performs - MQL4 programming forum #3 (2014)
and work around Chart Event For MT4 Backtester - Strategy Tester - MQL4 programming forum #7 (2016)
and How to use OnChartEvent buttons to work in Tester - MQL4 programming forum - Page 2 #11 (2019)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello every one,
i wrote two EAs . one of them is for backtesting on MT5 which can send BUY or SELL ( using GUI for this purpose ) and the other one colored candles ( it colored big candles red and green which used oncalculate function)
i want to run both of them at the same time and i know that i should write them in one EA.
but the problem is that, when i wrote them in one EA, it didn't work at all because of oncalculate function.
Could anyone kindly provide guidance or suggest a solution to this issue?
Thank you very much for your assistance.