The indicator generates an error like this " Error on calling 'OnBarUpdate' method on bar : Sequence contains no elements " when the Chart resolution is reduced. This does not apply to Time types of Chart. For example, Indicator works on 100Volume Chart, but doesn't on 50Volume Chart. Another example 25Range Chart works, if less then 25Range doesn't.
Independent of Instruments.
if (CurrentBars[0] < Nbar
|| CurrentBars[1] < Nbar || CurrentBars[0] < Nbar
) return;
This is not a Solution.
What could it be related to?
Comment