I am trying to share data from Indicator A in order to make a decision on Indicator B.
Example:
IndicatorA
public series<customClass> x;
public series<customClass>y;
//bunch of code.....
x[0] = customClass
y[0] = customClass
Indicator B
Ind = new IndicatorA()
Print(Ind.x[0].count)
error - "Error on Calling "onbarUpdate" Object reference not set to instance of an object
I'm not sure what I am doing wrong. This seems pretty basic but something is going wrong and I cannot figure it out.
Thanks!
Comment