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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      44 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      58 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      35 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      95 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      59 views
      0 likes
      Last Post PaulMohn  
      Working...
      X