Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.TextFixed in Chart

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

    Draw.TextFixed in Chart

    Hello,

    I have made me an indicator plotting important numbers directly in the chart. All calculations and Draw.TextFixed is working OK untill now.

    But when I want to have the Draw.TextFixed only after 9:30 EST I can not make it working and it is still plotting before that time. I have

    if (ToTime(Time[0]) >= 093000 && ToTime(Time[0]) < 161500)
    {
    string str8 = string.Empty;
    str8+="O: " + priceratio;
    Draw.TextFixed(this,"str8",str8, TextPosition.TopLeft,Brushes.Black, new SimpleFont ("Arial",12), Brushes.White,Brushes.White,100);}

    What am I doing wrong or what should I add with time condition please?

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thanks for your post.

    I suspect what is happening is that the text is being updated between the hours you have specified but after the hours it is not being updated and it continues to display the last update. If you want to remove the FixedText then like any draw object you would have to remove it using RemoveDrawObject("str8");
    Reference: https://ninjatrader.com/support/help...drawobject.htm

    Comment


      #3
      Hello,

      thank you for your reply. I resolved it with a bool switching with time.

      Tony

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      55 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      72 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      38 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      99 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      60 views
      0 likes
      Last Post PaulMohn  
      Working...
      X