Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-Instrument Strategy question

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

    Multi-Instrument Strategy question

    Hi,

    Let's say for example I have a 1-minute chart of MSFT. On the Initialize() method I have added a 1-minute for APPL. CalculateBarOnClose is set to false, so it will be processing every tick.

    protected override void Initialize()
    {
    Add("AAPL", PeriodType.Minute, 1);
    }

    protected override void OnBarUpdate()
    {
    // Do something

    }


    Question:

    If two ticks are received exactly at the same time, one for MSFT and one for AAPL,
    - Does Ninjatrader strategy process both ticks?; or
    - Is one of the ticks discarded because the strategy is busy processing the other tick?
    - Does Ninjatrader strategy handle different ticks on different threads?

    Thank you.

    #2
    Hello Futures,

    Thank you for your post.

    NinjaScript is event driven which means it will process each tick for OnBarUpdate at the time they were received, this will come down to milliseconds upon arrival. One will process before the other. It is unlikely that you will ever receive two ticks at the exact same time.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X