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 burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X