The VolumeCounter indicator makes sure it's been applied to a volume chart with
if (Bars.Period.Id == PeriodType.Volume)
if (Bars.Period.Id == PeriodType.Tick || (Bars.Period.BasePeriodType == PeriodType.Tick && Bars.Period.Id != PeriodType.PointAndFigure && Bars.Period.Id != PeriodType.Kagi && Bars.Period.Id != PeriodType.LineBreak))
if (BarsArray[0].BarsType.BuiltFrom == Data.PeriodType.Tick && BarsArray[0].Period.ToString().IndexOf("Range") >= 0) isRangeDerivate = true;
if (Bars.Period.Id == PeriodType.Range || isRangeDerivate)
Clearly lots going on, most of which I can't explain. (I also noticed that Bars.Period.BasePeriodType always seemed to be PeriodType.Minute, and a couple of other people in a couple of other posts reported the same thing. Puzzling.)
Can anyone shed any more light on this topic?
Comment