Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

is n/a null?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    is n/a null?

    If an indicator provides a value you can access. Let's say an .Upper[0].

    And for a specific moment in time, you are looking at a chart for that indicator, and you right click on it and see "n/a" in the data box for the current bar. Does that mean the value at [0] would be null if called in your strategy?

    Thanks

    #2
    Hello,

    Correct N/A would return no or no meaningful value if used in a strategy.

    The only time you should se N/A however that I can think off of the top of my head would be the start up time for the indicator.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      The place I'm seeing "n/a" right now is in the Darvas indicator. If there isn't an upper or lower line currently being drawn (in the Darvas case, it is waiting for more data and will repaint the line in the future) on a live chart, it returns a n/a if you right click the chart for the current bar. I tried to do a check to see if the result was null in my strategy, but it wasn't doing what I expected.

      Was that the case because I was backtesting and it isn't repainting in the backtest? Will it ever give me a null in a backtest?



      Thanks again.
      Last edited by lookOutBelow; 02-28-2011, 02:18 PM.

      Comment


        #4
        Hello,

        It will either be equal to it previous value or 0 in this case if its been reset in this case.

        Is this NinjaTrader 6.5 or NinjaTrader 7 as there was changes to multiple plots in NinjaTrader 7.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          I'm using version 7.

          Tx

          Comment


            #6
            In this case with this indicator since .Reset() is called the value would be 0. If .Reset() was not called it would just be the previous value.
            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X