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 agclub, 04-21-2024, 08:57 PM
    4 responses
    18 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Irukandji, Today, 04:58 AM
    0 responses
    3 views
    0 likes
    Last Post Irukandji  
    Started by fitspressoburnfat, Today, 04:25 AM
    0 responses
    2 views
    0 likes
    Last Post fitspressoburnfat  
    Started by Skifree, Today, 03:41 AM
    1 response
    4 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by usazencort, Today, 01:16 AM
    0 responses
    4 views
    0 likes
    Last Post usazencort  
    Working...
    X