Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddOn - get market data for RTH trading hours

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

    AddOn - get market data for RTH trading hours

    Hi

    While subscribing to the Market data for an instrument , it all works ok.
    However if I am interested in the DailyHigh data , I get the value considering the instrument full trading hours .
    What can I do in order to get the DailyHigh for only the RTH trading hours?

    if (!instrument.Dispatcher.HasShutdownStarted)
    instrument.Dispatcher.InvokeAsync(() => instrument.MarketData.Update += OnMarketData);
    NinjaTrader.Code.Output.Process(instrument.MarketD ata.DailyHigh.Price.ToString(),PrintTo .OutputTab1);

    #2
    Hello dadarara,

    DailyHigh and daily bars are provided by the data provider which may be in ETH or RTH depending on the provider. If you wanted to isolate the high for the RTH hours only you could add a 1440 minute series with RTH hours and then get the High from that instead.

    The MarketData.Update event is for realtime incoming data so that would not specifically be useful for getting the daily high in this case if you wanted to limit it to a set of trading hours. You would need to use a BarsRequest. https://ninjatrader.com/support/help...ub=BarsRequest

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X