Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about dynamically passing value in data configure

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

    Question about dynamically passing value in data configure

    Hi
    I want to understand where problem may occur if we decide to pass value dinamically in data configure state.
    for example if i pass dinamically enum for different timeframe selection.
    When i implement this feature, i see it works but docs state i cant do that. So if it works where is the problem?
    Thank you

    #2
    Hello tkaboris,

    Thanks for your post.

    To clarify, are you referring to dynamically using AddDataSeries() in a custom NinjaScript strategy?

    If so, please see the note below from the AddDataSeries() help guide page:

    Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically may result in an error similar to: "Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner".

    AddDataSeries: https://ninjatrader.com/support/help...dataseries.htm

    Note that the strategy may work if you dynamically add data series to the script but it is not supported to do in the Support department at NinjaTrader and we do not recommend dynamically adding data series.

    We are tracking interest in and internal feature request for the ability to dynamically adding multiple data series to a strategy based on user selection. If you would like, I could add your vote to the feature request so the Development team may consider implementing it into NinjaTrader 8.
    <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, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X