Help writing an EA to verify previous forex signals

 

I wrote an EA that gets forex signals from telegram, parses the trade info and submits them. All works well there. I would like to backtest some of the telegram forex signals to see which services work better. I have the telegram channel data parsed and stored in a database and my EA can download that data, but I am lost on a strategy to backtest the previous trades and see their results. Ultimately, I would like to see the results of a few months of forex signals and adjust tp and sl to see how the results differ. I am a pretty good programmer, but am stuck on how to go about this. Any thoughts would be appreciated.

 
Well I would load the trades from database to an struct Array in time ascending order.

In OnTick, I would now compare current time and search the array for where the next open signal is. As it is time, I would then execute the appropriate action.

I hope it's clear.