MT5: How to limit the ticks passed to an EA to 1M OHLC only after 1M candle close

 

Hi,

I am backtesting a EA purchased from marketplace which works very well during backtests with 1M OHLC data but not so well with Real Ticks. The EA puts pending orders quite far from current price so I know there's no catch in EA to overfit data but I just want to know if there's any way to call this EA from a script or another EA and pass it only past 1M OHLC data after candle close during live trading?

Thanks