NexusFi: Find Your Edge


Home Menu

 





OnMarketData issue


Discussion in NinjaTrader

Updated
    1. trending_up 1,530 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 antonma 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader, cTrader
Trading: Currency Futures
Posts: 7 since Aug 2014
Thanks Given: 4
Thanks Received: 4

Hi All,

I知 currently testing my indicator which uses the OnMarketData function. Unfortunately I observed 2 following issues:

1. Results are different between using this function live or with market replay. Is data in market replay reliable?
2. Results are different if I use the OnMarketData function in more than one indicator at the same time for the same instrument but in the different timeframe.

Do you know some limitation on the OnMarketData? Do all Indicators for one instrument which use the OnMarketData function share this function and if one Indicator uses this function with time intensive operations other indicator get less data (tick and volume)?

Any ideas?

Thx,
Anton


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
Commodities
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,550 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,427



antonma View Post
Hi All,

I知 currently testing my indicator which uses the OnMarketData function. Unfortunately I observed 2 following issues:

1. Results are different between using this function live or with market replay. Is data in market replay reliable?
2. Results are different if I use the OnMarketData function in more than one indicator at the same time for the same instrument but in the different timeframe.

Do you know some limitation on the OnMarketData? Do all Indicators for one instrument which use the OnMarketData function share this function and if one Indicator uses this function with time intensive operations other indicator get less data (tick and volume)?

Any ideas?

Thx,
Anton

1. Data in Market Replay is limited to 1 second resolution so the bid/ask changes and trades can be different in Live data, only the sequence of trades will be guaranteed. Depends what your code needs, shouldn't have to be a big problem.

2. Is more likely to be a coding dependency, all indicators will get the same OMD calls. It rarely affects cpu or timing unless you need to do crazy code processing on each bid/ask/trade. Use debug Prints or put simple stat counters on OBU's and OMD's and use Ninja's own indicator plotting to see them, you'll be surprised at how little data is really coming in compared to the Ghz processor cycles that we have to waste.


Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on February 6, 2015


© 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