Announcement

Collapse
No announcement yet.

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.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X