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 sjsj2732, Today, 04:31 AM
    0 responses
    20 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    280 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    279 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    130 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X