NexusFi: Find Your Edge


Home Menu

 





OnMarketData issue


Discussion in NinjaTrader

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




 
Search this Thread

OnMarketData issue

  #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?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #3 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426



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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts