Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adjust Data Series Settings From Strategy

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

    Adjust Data Series Settings From Strategy

    Is it possible to have the strategy change inputs to the primary data series?

    For example, a user input that's a double and this value is used as input for a variety of things including: stop, trail stop amount, secondary series settings, primary series settings.

    An example of what might be changed in the data series would be:
    If range type, change number of ticks to construct range.
    If renko type, change brick size.
    If volume based change number of contracts to create bar.
    If tick chart change number of ticks to create bar.

    For the secondary data series, I can see how you would change that when you add the series when we're in the configure state. But how would this be done on primary (if it's possible)?

    #2
    Hello butt_toast,

    There is no supported way to dynamically set the dataseries from a script. While you could invoke keyboard commands to change the chart using the keyboard shortcuts that would disable and restart the strategy. The same would apply to secondary series, it is actually documented with AddDataSeries that variable secondary series should not be used as that will not work in all use cases. When using variables with AddDataSeries you run the risk that the data will not load as expected.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 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