Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.TextFixed()...

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

    Draw.TextFixed()...

    Looking to make the font size larger. Old days would be -> new Font('blah'), now that doesn't seem to be the syntax. According to the docs this is what I have, but again, the font is too small. Any help would be greatly appreciated:

    Code:
    Draw.TextFixed(this, "status", "Value", TextPosition.TopRight, Brushes.White, ChartControl.Properties.LabelFont, Brushes.Transparent, Brushes.Orange, 100);

    #2
    Hello funk101,

    Thank you for writing in.

    You'll want to pass a new SimpleFont object to the overload of Draw.TextFixed() that takes a SimpleFont parameter:

    Code:
    Draw.TextFixed(NinjaScriptBase owner, string tag, string text, TextPosition textPosition, Brush textBrush, SimpleFont font, Brush outlineBrush, Brush areaBrush, int areaOpacity)
    More information about the SimpleFont class can be found here: https://ninjatrader.com/support/help...font_class.htm

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 11:51 AM
    0 responses
    18 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    27 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    22 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X