Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Take parameter as the condition to decide adddataseries

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

    Take parameter as the condition to decide adddataseries

    I having testing in my strategy analyzer with the optimization type.

    I will add the dataseries however when i use 1 of the parameter as the condition, it will always show false.
    Can i know how to overcome this ???

    #2
    Hello cincai,

    Thank you for your post.

    Are you attempting to dynamically add a data series based on specific conditions? Dynamically adding a data series is unsupported, and specifically for optimizations will not work. From our help guide:

    "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."

    If you use a variable to select the instrument, bar type, or interval of a secondary series, this variable cannot be optimized over.

    Any added dataseries cannot change between optimizations.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by advketoprice, Today, 03:48 AM
    0 responses
    1 view
    0 likes
    Last Post advketoprice  
    Started by advketoprice, Today, 03:46 AM
    0 responses
    1 view
    0 likes
    Last Post advketoprice  
    Started by elliot5, Today, 03:37 AM
    0 responses
    1 view
    0 likes
    Last Post elliot5
    by elliot5
     
    Started by Papercut110, Today, 03:17 AM
    0 responses
    3 views
    0 likes
    Last Post Papercut110  
    Started by max333, Today, 02:22 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X