Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

barsAgo vs barIndex

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

    barsAgo vs barIndex

    Hi.

    I've encountered what I think it's a bug. Creating a simple indicator with this OnBarUpdate:

    Code:
    this.Print( "barsAgo " + this.Input[ 0 ] );
    this.Print( "barIndex " + this.Input.GetValueAt( this.CurrentBar ) );
    and put it in any chart. Both values should be equal. However, if I configure the indicator in order to use RSI(Instrument,14,3) as input, first print shows maybe 62.328402 but the second one prints 24320, which is the current close value of the underlying instrument.

    Can you check this bug on your end?

    Thanks.

    #2
    Hello Ender,

    To confirm you have added the RSI to a chart and you are using this as the input series for a custom indicator is this correct?

    (edit)

    I created a test script and I was able to reproduce.

    I have forwarded an inquiry to our development to see if this is expected or a bug and if there is a work around.

    I appreciate your patience.
    Last edited by NinjaTrader_ChelseaB; 04-03-2018, 12:46 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Ender,

      I've received tracking ID #NTEIGHT-12702 for this behavior.

      As new releases of NinjaTrader 8 become available, please check the release notes for this ID.

      Below is a public link.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X