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

Programmatically change Data Series value

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

    Programmatically change Data Series value

    Hello,

    Would it be possible to programmatically change the Data Series value in a strategy? I cannot find any reference in the help guide.

    Thanks

    #2
    Hello guillembm,

    Thanks for your post.

    I have moved your post to the Strategy Development section of the Forums since your inquiry is related to developing NinjaScript Strategies. Please keep in mind to post inquiries in this section of the forum if your inquiry is related to programming NinjaScript Strategies.

    That said, you cannot programmatically change the Data Series that a NinjaScript strategy is running on. If you want the strategy to run on a different data series, you would need to manually enable the strategy on that data series.

    If you would like to calculate some values in your strategy based on other additional series, you could use AddDataSeries(), check the BarsInProgress value of the series you are accessing, and make your calculations.

    See this help guides below for more information about AddDataSeries() and BarsInProgress.
    AddDataSeries(): https://ninjatrader.com/support/help...dataseries.htm
    BarsInProgress: https://ninjatrader.com/support/help...inprogress.htm

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X