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 RJay with 1 posts (0 thanks)
    1. trending_up 5,395 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

  #11 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


baberg View Post
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

try ChartControl.Refresh()

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
  #12 (permalink)
baberg
Canada
 
Posts: 29 since Jul 2011
Thanks Given: 4
Thanks Received: 1

Hi guys, thanks a lot for offering me your help...

@RJay, I'm not sure what you mean by "Chart type" and "Value size" ? Could you please specify ?

@bukkan, I added "ChartControl.Refresh()" at the end of OnMarketData() and the refresh rate seem to match bid/ask updates now, however it freezes my chart quite a lot (I have only from 1 to 3 simple plots depending on the OnMarketData events) with those updates. Is it the "lightest" solution available as far as computer ressources go ? Right now, it's almost impossible to scroll my chart anymore.

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


obvious it would freeze. its not without reasons, NT has set the minimum refresh rate to .1 second. but if you filter out the redundancies then things can improve.

the attached code refreshes the last bar only on any trade. not perfect or complete but you can get some ideas.

Attached Files
Elite Membership required to download: Refresh.cs
Reply With Quote
  #14 (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
Hi guys, thanks a lot for offering me your help...

@RJay, I'm not sure what you mean by "Chart type" and "Value size" ? Could you please specify ?

@bukkan, I added "ChartControl.Refresh()" at the end of OnMarketData() and the refresh rate seem to match bid/ask updates now, however it freezes my chart quite a lot (I have only from 1 to 3 simple plots depending on the OnMarketData events) with those updates. Is it the "lightest" solution available as far as computer ressources go ? Right now, it's almost impossible to scroll my chart anymore.

You are basically asking windows to repaint the chart window on every change in market data. This will consume a large amount of CPU and lock up NinjaTrader. We do not officially advise this.

Follow me on Twitter 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