since in backtest I can not use the CalculateOnBarClose=false, I'm looking for a way to calculate in backtest the value of an indicator during the bar forming.
My goal is to determine in backtest the intersection of two averages during the formation of the bar (10 or 15 min timeframe), without waiting for the Close of the bar.
In my test strategy I'm using a secondary time frame for the call of OnBarUpdate() at each tick or minute.
I'm using also a custom DataSeries filled up to the [1] element with the main dataseries and filled the [0] element with the last Close[0] of the 1 tick timeframe. Then I pass the dataseries to the indicators for the calculation, but I can not get the desired result.
I tried to found a solution for a long time in the forum but nothing.
Is there a way to get this result?
Thank You
Comment