NexusFi: Find Your Edge


Home Menu

 





OnMarketData Problem


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two humy65 with 1 posts (0 thanks)
    3. looks_3 bukkan with 1 posts (0 thanks)
    4. looks_4 tulanch with 1 posts (0 thanks)
    1. trending_up 3,801 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?
Datafeed for Atas
Platforms and Indicators
Daytrading to swingtrading
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
  #3 (permalink)
 tulanch 
Salt Lake City, UT
 
Experience: Intermediate
Platform: SC, NT, MT
Broker: AMP
Trading: NQ ES YM Bonds
Posts: 285 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