Dear programmers, i need some help with ninjatrader 8 scripting.
Please forgive my ignorance.
So, i'm playing up with the code, basically a simple test indicator, with 2 outputs:
"Outputx" and "Outputxx".
Now, as we can see in the first image, i put the code:
Outputx[0]=High[0];
Outputxx[0]=Low[0];
And we can see the two lines of the indicator below the chart, working well.
The thing i don't understand, if i put something before these commands, such as:
indi[0][0]=0;
(indi is defined as "public double[][] indi;"), so everything works fine in the compiler, no errors or anything like that.
However, when i put this line, the indicator on chart disappear.
I can't understand why?
Whenever i work with other doubles that are not the outputs, the indicator stop working all together.
Any idea of what's going on?
Please forgive my ignorance.
So, i'm playing up with the code, basically a simple test indicator, with 2 outputs:
"Outputx" and "Outputxx".
Now, as we can see in the first image, i put the code:
Outputx[0]=High[0];
Outputxx[0]=Low[0];
And we can see the two lines of the indicator below the chart, working well.
The thing i don't understand, if i put something before these commands, such as:
indi[0][0]=0;
(indi is defined as "public double[][] indi;"), so everything works fine in the compiler, no errors or anything like that.
However, when i put this line, the indicator on chart disappear.
I can't understand why?
Whenever i work with other doubles that are not the outputs, the indicator stop working all together.
Any idea of what's going on?

