Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Text using DateTime

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

    Draw.Text using DateTime

    This doesn't seem to be working....
    Is this working for you?

    Draw.Text(NinjaScriptBase owner, string tag, bool isAutoScale, string text, DateTime time, double y, int yPixelOffset, Brush textBrush, SimpleFont font, TextAlignment alignment, Brush outlineBrush, Brush areaBrush, int areaOpacity)

    as for example:
    Draw.Text(this,"TEST",false,"TEXT",Time[0],2070,-2,Brushes.Red,new Gui.Tools.SimpleFont("Courier New", 18) { Size = 18, Bold = true },System.Windows.TextAlignment.Left,Brushes.Transp arent,Brushes.Transparent,0);

    however, as expected, this does work:

    Draw.Text(this,"TEST",false,"TEXT",0,2070,-2,Brushes.Red,new Gui.Tools.SimpleFont("Courier New", 18) { Size = 18, Bold = true },System.Windows.TextAlignment.Left,Brushes.Transp arent,Brushes.Transparent,0);
    Attached Files

    #2
    Hello CriticalTrader,

    This item has been reported and is being tracked with ID# NTEIGHT-9581 'Draw objects not drawn initially when using overload that accepts DateTime'.

    This has been marked as fixed for Beta 11.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    48 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X