Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Custom Render Disappearing

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

    #16
    Actually I think I just found the culprit. Whenever I add the data series dynamically, ex.

    AddDataSeries(BarsPeriodType.Minute, Input);

    Then it disappears. I realize this way is unsupported and is bound to have bugs like this. Any ideas?

    Comment


      #17
      Hello Vikuno1,

      Using variables in AddDataSeries() dynamically is not supported.

      From the help guide:
      "Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically may result in an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner.​"


      That said, what is the print output showing?

      After reproducing, please attach the output from the output window to your next post.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        Got it! It was using the secondary data series Current Bar not the primary. Thank you so much, you are a rockstar

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by p1kn1t, Today, 11:32 AM
        0 responses
        6 views
        0 likes
        Last Post p1kn1t
        by p1kn1t
         
        Started by Bob-Habanai, Today, 10:27 AM
        0 responses
        9 views
        0 likes
        Last Post Bob-Habanai  
        Started by bortz, 11-06-2023, 08:04 AM
        57 responses
        2,757 views
        0 likes
        Last Post bortz
        by bortz
         
        Started by sitdolore, Today, 08:46 AM
        0 responses
        11 views
        0 likes
        Last Post sitdolore  
        Started by Jes070466, Today, 07:14 AM
        0 responses
        12 views
        0 likes
        Last Post Jes070466  
        Working...
        X