Help with Custom Indicator in NinjaTrader 7

I'm trying to create a custom indicator in NinjaTrader but I'm running into a very odd problem. In the .onBarUpdate() method it won't let me have ANYTHING in the function and the only variable it wont display any Close[x] value if its greater than 0.

If i put anything in the function ex:

protected override void OnBarUpdate()
{
double x = Close[1];


GRPlot.Set( Close[0] );
}
In my indicator window this won't display anything, neither will this:

protected override void OnBarUpdate()
{
GRPlot.Set( Open[1] );
}


It appears that it's having a serious problem getting any information past the reference point of '0'. Anyone got any advice?
 
Back
Top