Help with Custom Indicator in NinjaTrader 7

Discussion in 'Trading Software' started by milemke08, Jun 9, 2012.

  1. 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?
     
  2. Surdo

    Surdo

  3. thanks :) didn't even think of that
     
  4. kandlekid

    kandlekid