NexusFi: Find Your Edge


Home Menu

 





OnMarketData Problem


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bukkan with 1 posts (0 thanks)
    2. looks_two tulanch with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 humy65 with 1 posts (0 thanks)
    1. trending_up 3,911 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 humy65 
Haifa/Israel
 
Experience: Beginner
Platform: NinjaTrader
Trading: Stocks
Posts: 15 since Mar 2012
Thanks Given: 3
Thanks Received: 2

NT7:

I have a multi-timeframe indicator which is loading 1Tick series and 60Min series for the default instrument.
Apparently, the OnMarketData event is being called 3 times, once per each time series loaded.
BarsInProgress is being reported 0 for each of the calls.
This behaviour is different within a strategy, where this event is being called once.

Is there a way to find out which time series is in charge for the OnMarketData call withing the indicator ?

Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
Bitcoin’s 2022 low, 2025 high and 2026 low so far arou …
Cryptocurrency
 
  #3 (permalink)
 tulanch 
Salt Lake City, UT
 
Experience: Intermediate
Platform: SC, NT, MT
Broker: AMP
Trading: NQ ES YM Bonds
Posts: 286 since Mar 2010
Thanks Given: 51
Thanks Received: 405


I'd try printing out the price and see which it aligns too...


Reply With Quote
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272

What codes are you using? Can you post some codes replicating the behavior.

Also for the same instrument NinjaTrader will return the first bars in progress series in the OnMarketData event.

From help files:
With multi-time frame and instrument strategies, OnMarketData() will be called for all unique instruments in your strategy. Use the BarsInProgress to filter the OnMarketData() method for a specific instrument. (BarsInProgress will return the first BarsInProgress series that matches the instrument for the event)
NinjaTrader Version 7


Reply With Quote




Last Updated on October 16, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts