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 NullPointStrategies, Today, 05:17 AM
    0 responses
    38 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X