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 rocketman7, Today, 09:41 AM
    4 responses
    15 views
    0 likes
    Last Post rocketman7  
    Started by selu72, Today, 02:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by WHICKED, Today, 02:02 PM
    2 responses
    12 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by f.saeidi, Today, 12:14 PM
    8 responses
    21 views
    0 likes
    Last Post f.saeidi  
    Started by Mikey_, 03-23-2024, 05:59 PM
    3 responses
    55 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X