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
Comment