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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    6 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    241 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X