Forum

Strategy Tester changing value of Indicator for previous candle?

My EA is designed to make a trading decision right at the start of the new daily candle based on the value of certain indicators from the previous candle that just closed. The EA will run the trade function at a certain time on the new candle as seen below: void OnTick () { if (Hour()== 00 &&

Advice on Optimizing EA for Faster Backtesting

I have an EA that is designed to only trade right before the close of the NY market. Majority of my code is in the OnTick function so it is unpractically slow when trying to backtest it in the Strategy Tester . My goal is to make my EA more optimal so that the code isn't being run through each tick