Code to run the backtester from within an EA

 
Is there a way to run a specific ex4 file from within the code but using the backtester.

For example, I have macd.ex4 taking 1 parameter named EMA, and I want to test it on M1, EURUSD, everytick with parameter value '1' for the last 1000 bars. All I want to know is the total profit from that run.

I'm imagining something like

profit=backtest('macd.ex4','EURUSD','M1','everytick','EMA=1');

Or do I have to do the recoding of the macd.mq4 within the EA and do the runs for all Bar values manually?
Reason: