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 jclose, Today, 09:37 PM
        0 responses
        5 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,414 views
        0 likes
        Last Post Traderontheroad  
        Started by firefoxforum12, Today, 08:53 PM
        0 responses
        11 views
        0 likes
        Last Post firefoxforum12  
        Started by stafe, Today, 08:34 PM
        0 responses
        11 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by sastrades, 01-31-2024, 10:19 PM
        11 responses
        169 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X