if(BarsPeriod.BasePeriodType == PeriodType.Renko)
it is equating to false and
if(BarsPeriod.BasePeriodType == PeriodType.Minute)
is equating to true when I run it on Renko charts
Second question is does BarsPeriod refer to only the primary bar index or all that have been added?

Nothing stupid. We all overlook things at times. You would be surprised how many mistakes I make when I code. I am always surprised if my code works the very first time that I write it!
Comment