Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Update SuperDOM Column more often than 250ms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Update SuperDOM Column more often than 250ms

    This is how I'm currently getting around this, it's not good enough. I have thousands of rectangles drawn in OnRender, what does onPropertyChanged call behind the scenes? How can I repaint more directly rather than having to call onpropertychanged and update every single visual element., i.e. only what actually changes, but faster than 250 ms. That threshold is simply and unacceptably too low for ANY even basic trading display.


    private DateTime lastRenderTime;

    protected override void OnRender(DrawingContext dc, double renderWidth){
    //custom render code
    lastRenderTime = DateTime.Now;
    }


    private void OnMarketDepthUpdate(object sender, Data.MarketDepthEventArgs e){
    int fps = 50;
    if(DateTime.Now.Subtract(lastRenderTime).TotalMill iseconds > (1000 / fps)){
    OnPropertyChanged(null);
    }
    }
    Last edited by schmidtbc16; 12-09-2021, 09:16 AM.

    #2
    Hello schmidtbc16,

    Thank you for your post.

    Sorry for the delay in reply, but we needed to confirm the refresh rate for SuperDOM columns with the QA team. It is indeed 250 ms, and there would not be a supported way around that or to adjust that rate.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Then what are the unsupported ways around it? I am being told to use DirectX by all other sources of input but I am limited to WPF here in SuperDOM Columns correct? Therefore this is a direct limitation that at least needs to be worked around if not supported.

      Comment


        #4
        Hello schmidtbc16,

        Thank you for your reply.

        I'm not aware of an unsupported workaround either. You're correct that SuperDOM Columns use the WPF Drawing Context class, rather than the SharpDX library used for chart rendering, so using SharpDX would not be an option.

        I've added a vote on your behalf to an existing feature request to allow users to adjust the refresh rates used throughout the platform. This request is being tracked under the number SFT-3038.

        As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

        Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, Today, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X