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

Big screen return fuzzy text

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

    Big screen return fuzzy text

    Hello,

    I have a problem when applying my custom indicator with big screen display.

    I have a simple script that describes the Font Size :

    LettersFontSize = (ChartPanel.H/((chartScale.MaxMinusMin/compression)/TickSize));

    Could that be the problem ?
    Should I adjust that someway to adjust to big screen pixels ?

    thank you


    #2
    Hello blar58, thanks for writing in.

    I'm not sure what it looks like on a big screen, so you would need to test different code on the screen you are seeing the issue with. In the SampleCustomRender indicator there is an example on how to render text see the sections "// 1.6 - Simple Text Rendering" and // 1.7 - Advanced Text Rendering

    Best regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chris.

      Finally your support team fixed the issue with my customer.

      Here is their comments :

      Thank you very much for connecting with me today.
      During our call, we were able to track down what was causing the 'zoom in' on the chart.

      It seems the third-party indicator uses the scaling setting of the screen marked as primary, and would then overlap the letters, even if the current screen has a lower setting.

      After we changed the primary screen to the right one (which had a 125% scaling over the 175% on the left one), the indicator would then scale correctly.

      Is there a way that I can fix my code to correct the issue.


      Thank you very much for your help

      Comment


        #4
        Hello blar58, thanks for your reply.

        The issue is not necessarily caused by your OnRender method, but the way the graphics card is drawing onto the render target (i.e. the screen) If the Windows scaling is set to a non-recommended font scale and causing render issues, make sure the client is closing out of NinjaTrader (or even resetting the whole computer), then try it again. If you are able to consistently reproduce a rendering issue please export your reduced test script and send it to me at scriptingsupport at ninjatrader.com, reference "Attn ChrisL" in the email body as well. Please make sure the script is reduced down to only recreate the scaling issue.

        Best regards.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by renewsaltwater, Today, 01:15 AM
        0 responses
        1 view
        0 likes
        Last Post renewsaltwater  
        Started by cyberpete76, 03-27-2023, 12:29 AM
        6 responses
        262 views
        1 like
        Last Post slightly  
        Started by slightly, Today, 12:49 AM
        0 responses
        2 views
        0 likes
        Last Post slightly  
        Started by sdauteuil, 09-23-2021, 10:16 AM
        4 responses
        1,209 views
        0 likes
        Last Post jacobpescaia44  
        Started by agclub, 04-21-2024, 08:57 PM
        5 responses
        34 views
        0 likes
        Last Post agclub
        by agclub
         
        Working...
        X