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

Draw.Text pixeloffset behaves differently on different Laptops

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

    Draw.Text pixeloffset behaves differently on different Laptops

    Hi,

    I am using draw text in the following manner:

    Draw.Text(this, S2Label_tag,false,"S2",0,fixedYValue(int)((new SimpleFont("Arial", 8).Size)),Brushes.Red,new SimpleFont("Arial", 8),TextAlignment.Right,null,null,50);

    This function is called everytime a new bar is formed.

    As u can see the Y PixelOffset variable is set as the size of the font used (e.g. Arial, size 8)

    On my development PC I can see the text "S2" positioned 1 text font size above the fixedYValue level.

    However when I deploy the script to another PC, there is no YPixeloffset observed.

    Both PCs are using the same NinjaTrader 8 platform version.

    Only difference is that some settings maybe different as the other PC is for another user. (but I am very sure Auto scale is turned off for both).

    Could this be a bug or due to a different setting on the 2 PCs? If it is the later are you able to advise what is the differences that could cause this different behavior?

    Thanks and Regards
    Yong Siagn

    #2
    Hello Yong,

    What are the resolutions set on both machines?

    What is the text size (DPI) setting set to in the Windows Display Settings?

    What are the physical dimensions of the screens on both computers?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,227 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    440 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    11 views
    0 likes
    Last Post FAQtrader  
    Working...
    X