Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

'barsAgo' needed to be between 0 and 269 but was -35635

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

    'barsAgo' needed to be between 0 and 269 but was -35635

    BETA3: *************** unhandled exception trapped ***************
    This is not new to BETA3 either, but finally got a way to trap the problem for reproduction. This issue only shows with "Tick Replay" enabled on a chart. Adding a indicator to that chart with the "Data Box" open, causes this Exception.

    Here is how to reproduce the problem:
    1) Open a CL 1 Range chart with 5 days loaded (Tick Replay enabled)
    2) Add the VWAP indicator I will send to you to the chart
    3) Open the Data Box
    4) Right click on the chart and "Reload NinjaScript", this will generate the error

    Without the "Data Box" open, reloading doesn't case the exception.

    I will email support with the VWAP indicator.

    2015-07-16 18:16:49:377 *************** unhandled exception trapped ***************
    2015-07-16 18:16:49:377 'barsAgo' needed to be between 0 and 269 but was -35635
    Parameter name: barsAgo
    2015-07-16 18:16:49:379 System.ArgumentOutOfRangeException: 'barsAgo' needed to be between 0 and 269 but was -35635
    Parameter name: barsAgo
    at NinjaTrader.NinjaScript.Series`1.IsValidDataPoint( Int32 barsAgo)
    at NinjaTrader.Gui.Chart.ChartControl.UpdateDatabox(B oolean force)
    at NinjaTrader.Gui.Chart.ChartControl.OnDataBoxTimerT ick(Object sender, EventArgs e)
    at System.Windows.Threading.DispatcherTimer.FireTick( Object unused)
    at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
    Last edited by NJA_MC; 07-16-2015, 04:29 PM. Reason: Must enable Tick Replay

    #2
    Hi NJA_MC,

    I have your script and I am able to reproduce.

    I'm going to try and isolate and then I'll get that in to development for you.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      I have your script and I am able to reproduce.I'm going to try and isolate and then I'll get that in to development for you.
      Originally posted by NJA_MC View Post
      Here is how to reproduce the problem:
      1) Open a CL 1 Range chart with 5 days loaded (Tick Replay enabled)
      2) Add the VWAP indicator I will send to you to the chart
      3) Open the Data Box
      4) Right click on the chart and "Reload NinjaScript", this will generate the error

      Without the "Data Box" open, reloading doesn't case the exception.

      Experience same thing, and just to isolate that it's not an indicator coding error, you can follow the exact same procedures NJA_MC outlined above using the default SMA indicator and get the same exception error...


      -=Edge=-
      NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

      Comment


        #4
        Hello ,

        I can confirm this issue is with any indicator with tick replay enabled and the data box open.

        This issue is being tracked with ID# NTEIGHT-8573.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by maybeimnotrader, Yesterday, 05:46 PM
        2 responses
        21 views
        0 likes
        Last Post maybeimnotrader  
        Started by adeelshahzad, Today, 03:54 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        7 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by merzo, 06-25-2023, 02:19 AM
        10 responses
        823 views
        1 like
        Last Post NinjaTrader_ChristopherJ  
        Started by frankthearm, Today, 09:08 AM
        5 responses
        22 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X