Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enumerating Chart Data Series

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

    Enumerating Chart Data Series

    I have been attempting to construct an indicator that re-scales and plots ALL of the DataSeries that have been added to a chart.

    I have reviewed the documents such as multi-time-frame


    What I would like to do is in the "Initialize" override procedure, enumerate all of the data-series that have been added to the chart and "add" them to the study. If I know the names of the instrument, I can add them with the "Add("instrument", PeriodType, value)". However what I want is a way to FIND OUT what the instruments are, their period type, and value.

    Any suggestions?

    More explicitly:

    I add $USDJPY, $USDCHF, and $USDCAD to a chart.
    I add my study with $USDJPY as the source.
    In Initialize(), I would like to detect that the user has also added $USDCHF and $USDCAD to the chart so that I can plot normalized ratios of $USDCHF and $USDCAD to $USDJPY.

    In order to accomplish this, I need a way within Initialize() to find out what other data series are part of the chart - Instrument, period type, and value.
    Last edited by SharkCub; 10-21-2012, 07:15 PM.

    #2
    SharkCub, unfortuantely this is something we could not support doing dynamically - what you can setup is a range of user inputs, where the added series on the chart could be entered so your indicator Initialize() could then programmatically add as needed for your calcs.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    76 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X