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

Display a new series that was added by AddDataSeries in chart

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

    Display a new series that was added by AddDataSeries in chart

    Hi,

    How can I display a new series was added by AddDataSeries in chart?(reason: I would make sure my config is correct for the new series)


    Best,

    #2
    Hello bosajin,

    Thank you for your post.

    The AddDataSeries() command only adds the series for your script to use, however, this does not produce any kind of visual or panel for that series. When configuring a chart you would need to add a second series in the same DataSeries window to view that second series on a chart.

    From the existing chart, you can right-click and access "DataSeries" to add additional series, otherwise, the Control center -> New -> Chart option will open the DataSeries menu where you can add multiple series to a new chart. You can add more than 1 series in the DataSeries window, when you do additional panels are added for each series.

    See the help guide documentation below for more information.
    AddDataSeries() - https://ninjatrader.com/support/help...dataseries.htm
    Using the DataSeries menu - https://ninjatrader.com/support/help...taSeriesWindow

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      You can't.

      All data series added via AddDataSeries are invisible.

      Well, they are "visible" to your code, but not on the chart.

      Inside your OnBarUpdate, try using Print to the print CurrentBar
      and Time[0] when BarsInProgress == 1.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Lumbeezl, 01-11-2022, 06:50 PM
      31 responses
      817 views
      1 like
      Last Post NinjaTrader_Adrian  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by swestendorf, Today, 11:14 AM
      2 responses
      6 views
      0 likes
      Last Post NinjaTrader_Kimberly  
      Started by Mupulen, Today, 11:26 AM
      0 responses
      6 views
      0 likes
      Last Post Mupulen
      by Mupulen
       
      Started by Sparkyboy, Today, 10:57 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X