I'm trying to have an indicator that calculates from time based bars to run on a renko chart.
I am looking for the indicator to start calculating after a certain number of bars elapse on the Time based chart then plot on the renko chart.
Everything plots and functions correctly except at the initial start of the trading session. It doesn't seem to be able to count the number of time elapsed bars or something.
I've tried a few variations of the code below. Am I not understanding something here or using the functions incorrectly?
if ((Bars.BarsSinceNewTradingDay >= MinBars && CurrentBars[iDataSeries] >= MinBars )
&& (Lows[iDataSeries][0] > Highs[iDataSeries][2]))
Thank you for any help with this issue.
Happy Holidays!
Regards,
James


Comment