Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add DataSeries Instrument

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

    Add DataSeries Instrument

    AddDataSeries(Instrument.FullName);

    I was wondering is there a way to have the insturment name always on the current month - year.

    IE: NQ 03-20
    when rollover happens it will automatically go to NQ 06-20
    the data series will be different compared to the chart.

    #2
    Hello ballboy11,

    AddDataSeries currently has a few overloads that inherit the primary:

    The following syntax will add another Bars object for the primary instrument of the script.
    AddDataSeries(BarsPeriod barsPeriod)
    AddDataSeries(BarsPeriodType periodType, int period)

    Outside of those two uses you would need to specify the instrument as text. There is not currently a way to have AddDataSeries use variables or be dynamic.


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    58 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    35 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    59 views
    0 likes
    Last Post PaulMohn  
    Working...
    X