• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    Paul H.NinjaTrader Customer Service

    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 aligator, Today, 08:20 AM
      0 responses
      4 views
      0 likes
      Last Post aligator  
      Started by 7robert, Today, 08:11 AM
      0 responses
      7 views
      0 likes
      Last Post 7robert
      by 7robert
       
      Started by lordvader34, Today, 07:07 AM
      2 responses
      10 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by aslane, Today, 07:01 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by frankduc, Today, 06:56 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X