running two EA at the same time mt5 problem

 

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.

 
If it uses OnCalculate, it is a indicator, not an EA
 
William Roeder #:
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?

 
saeed8631 #: 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)

 
yes, you are right. the GUIs do not work. but i use buttons for this purpos
William Roeder #:

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)

e. here is a screen of my EA. if you need, i can send my code
Files:
screen.jpg  598 kb