NexusFi: Find Your Edge


Home Menu

 





OnMarketData serious issue


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one baberg with 6 posts (1 thanks)
    2. looks_two NinjaTrader with 3 posts (0 thanks)
    3. looks_3 bukkan with 2 posts (0 thanks)
    4. looks_4 TAJTrades with 1 posts (0 thanks)
    1. trending_up 5,454 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 13 posts
    2. attach_file 3 attachments




 
Search this Thread

OnMarketData serious issue

  #1 (permalink)
baberg
Canada
 
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1

Hello,

I'm in touch with Ninja support since a few days about this issue.

Basically I noticed that Ask and Bid does not always update correctly from OnMarketData

Here you will find a screenshot and the matching indicator.

You can check the script is straight to basic and contains only one line of code : If(e.MarketDataType==e.MarketDataType.Ask) Values.Set(e.Price);

I noticed that bid/ ask was updating correctly only 70% of the time but from time to time would not update accordingly.

Anyone aware of this or can check my indi on his platform ?

I run :
- NT7 R7
- CQG demo (AMP futures)
- whatever instrument (FDAX, ES, 6E)
- timeframe : I guess whatever but I'm sure about 5 minute or 10 minute
- chart properties : display interval set to minimum aka 0,1
- very fast high end computer (Alienware)

Thank you

Attached Thumbnails
Click image for larger version

Name:	OnMarketData issue.jpg
Views:	166
Size:	55.1 KB
ID:	47773  
Attached Files
Elite Membership required to download: OnMarketDataBug2.zip
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #3 (permalink)
TAJTrades
Here, GA
 
Posts: 158 since Jun 2009
Thanks Given: 1
Thanks Received: 86


Try going to Properties | Display Update Intervel and the set the value to smallest number possible. I think it would be 0.10 but not sure. NT controls the chart draw/update so that many computers will not get overloaded. OnMarketData updates with every incoming tick.

Give that a shot and see if the results change.

Reply With Quote
  #4 (permalink)
baberg
Canada
 
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1

Hi,


baberg View Post
I run :
- NT7 R7
- CQG demo (AMP futures)
- whatever instrument (FDAX, ES, 6E)
- timeframe : I guess whatever but I'm sure about 5 minute or 10 minute
- chart properties : display interval set to minimum aka 0,1
- very fast high end computer (Alienware)

Thank you


Does not matter....

Reply With Quote
  #5 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686


baberg View Post
Hello,

I'm in touch with Ninja support since a few days about this issue.

Basically I noticed that Ask and Bid does not always update correctly from OnMarketData

Here you will find a screenshot and the matching indicator.

You can check the script is straight to basic and contains only one line of code : If(e.MarketDataType==e.MarketDataType.Ask) Values.Set(e.Price);

I noticed that bid/ ask was updating correctly only 70% of the time but from time to time would not update accordingly.

Anyone aware of this or can check my indi on his platform ?

I run :
- NT7 R7
- CQG demo (AMP futures)
- whatever instrument (FDAX, ES, 6E)
- timeframe : I guess whatever but I'm sure about 5 minute or 10 minute
- chart properties : display interval set to minimum aka 0,1
- very fast high end computer (Alienware)

Thank you

- The chart canvas updates on the timer
- The market data values on the Chart Trader Panel updated immediately on arriving market data events
- Thus the two will not be in sync and is expected by design

Follow me on Twitter Reply With Quote
  #6 (permalink)
baberg
Canada
 
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1

That is right.

Actually on the chart, ask/bid will only update if it occurs at the same time than a last price level change. If ask or bid refreshes while last price stays the same, then it won't update.

It is more of a problem when market lacks ask/bid events, that is to say less liquid instruments or at ETH/globex/night hours.

Too bad, because my use of OnMarketData then becomes kind of pointless.
To me, it sounds like a truncated design and should be corrected/updated on user's choice at least. Please suggest it to your development team.

Thank you.

Reply With Quote
  #7 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686


baberg View Post
That is right.

Actually on the chart, ask/bid will only update if it occurs at the same time than a last price level change. If ask or bid refreshes while last price stays the same, then it won't update.

It is more of a problem when market lacks ask/bid events, that is to say less liquid instruments or at ETH/globex/night hours.

Too bad, because my use of OnMarketData then becomes kind of pointless.
To me, it sounds like a truncated design and should be corrected/updated on user's choice at least. Please suggest it to your development team.

Thank you.

If you scan this forum, there likely is a thread on how you can control this at your command however, this is not an officially supported approach nor do we suggest it. If you want to trigger a repaint of the chart on every change in bid/ask data, you are asking for performance issues and in fact, I would guarantee that you will lock up NinjaTrader since the sheer amound of bid/ask changes is orders of magnitude higher than last trade events.

Follow me on Twitter Reply With Quote
  #8 (permalink)
baberg
Canada
 
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1

I certainly understand your point.

Maybe it would not freeze running Ninja on very high-end "war" computers. Some only display one chart at a time also requiring less performance. That is why I suggested to let it user-controlled for a future release.

Anyway I'll use override plot like you suggested. Thanks again.

Reply With Quote
  #9 (permalink)
baberg
Canada
 
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1

Back on the topic

Override plot reacts to specific events like last price refresh, scroll movement, mouse click etc.

However, the refresh rate is not enough for me. I'd really wish to achieve a charting plot update each time bid or ask changes without waiting for the last price to update (and no other specific user-action neither)

Do you have a solution ? Simulate a fonction ? Simulate left click or scroll movement is not practical.
Any tips ???

Thanks a lot

Reply With Quote
Thanked by:
  #10 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


baberg,

I have extensive experience working with OnMarketData.

I may be able to help. What chart type and value size for that chart are you using?

RJay

Reply With Quote




Last Updated on September 27, 2011


© 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