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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X