Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Supporting Multiple Session Bars in the Same Strategy

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

    Supporting Multiple Session Bars in the Same Strategy

    A NinjaTrader strategy uses the session settings of the the main chart instrument it is associated with. Though it is possible to add new instruments to the strategy, all new bars confirm with the session settings of the main instrument. As a result you can not have some indicators which run on 24/7 bars and others which on RTH data only.

    NT properly handles situations where their are some instruments which have 24/7 data (e.g. futures) and other instruments which are RTH only (e.g. Market Internals). The OnBarUpdate function is called as appropriate (at least on historical data). So the architecture does seem to support bars coming at different time periods.

    The session associated with a strategy should be selectable at the bar level when an instrument is Added to the strategy. It should not be linked to the master instrument's session. This will allow the use of existing indicators on all bar series, whether 24/7 or RTH.

    Right now, even if you do your own filtering to create the bar series you want analyzed there is no way to pack them into an iDataSeries object to pass them to indicators.


    I am also wondering if there is a workaround possible by creating a new instrument via the Instrument Manager which has RTH only sessions and maps to the base instrument.

    #2
    aviat72, thanks for sharing your insight and suggestions. Although I never tested I believe creating a 'shadow RTH' instrument could do the trick for you.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    3 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
    239 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