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

Added DataSeries

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

    Added DataSeries

    Hello

    When i add a data series on my custom indicator on the initialize method, the number of bars for that series is like the number of bars on my chart. Is there a way to increase it so the new data series will have more bars?

    Thanks

    #2
    Hello kiss987,
    Unfortunately there are no supported way of doing it.

    However if you NinjaScript code has additional bar series then you can refer the data series to that bar series. Please refer to this sample code which further illustrates it
    Note: In NinjaTrader 8 It is no longer needed to use an indicator to sync a secondary series. This can be done directly from the Series<T> (https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?seriest.htm) constructor. This post is left for historical purposes. Series objects are useful for
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Creamers, 04-27-2024, 05:32 AM
    6 responses
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by iceman2018, Today, 11:46 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Torontobluejays, Yesterday, 08:43 AM
    4 responses
    23 views
    0 likes
    Last Post Torontobluejays  
    Started by Ticks_66, Today, 09:50 AM
    2 responses
    14 views
    0 likes
    Last Post Ticks_66  
    Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
    7 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X