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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      12 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      20 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X