I'm referencing a MTF indicator which has this:
if (CurrentBar < BarsRequired || CurrentBars[0] < BarsRequired || CurrentBars[1] < BarsRequired || CurrentBars[2] < BarsRequired)
if (CurrentBar < BarsRequired)
I'm getting the effor "Object reference not set to an instance of an object" and since I've tried nearly everything else I can think of, I'm wondering if the BarsRequired is maybe not set correctly or something related to the differing sets of CurrentBars[].
Comment