Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New composite BarsType from a basket of instruments?

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

    New composite BarsType from a basket of instruments?

    Hi,
    I would like to create a new composite BarsType which is made up of a basket of symbols based on some calculations. To make it easier, let's say the basket symbol consists of two instruments, SPY and DIA. Questions:
    1) How can I set the properties for the two symbols (i.e. symbols, timeframe etc for the two instruments)?
    2) How do I read the data series?
    3) In the code where functions do I need to override?

    Thank-you for any help.
    Regards,
    iq

    #2
    Hello iq,

    Unfortunately, bar types cannot use multiple sources.

    I would recommend doing this in an indicator instead. This could overlay rectangles over the bars on the chart.

    Below are links to examples.
    This is a conversion of the Spread Indicator with Candlesticks. Please contact the original author for any questions or comments.

    NYSE Advancing Issues/Declining Issues Uses historical tick data to calculate the ^ADV index minus the ^DECL index to give a simulation of the ^ADD index. Requires a data feed that supports indexes and provides data for the ^ADV (NYSE Advancing Issues) and ^DECL (NYSE Declining Issues). Update June 16th, 2020 – Corrected stroke attributes to […]
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    331 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    550 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X