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 Stanfillirenfro, Today, 03:43 AM
      0 responses
      7 views
      0 likes
      Last Post Stanfillirenfro  
      Started by guillembm, Today, 02:19 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by debleded, Today, 12:38 AM
      0 responses
      5 views
      0 likes
      Last Post debleded  
      Started by proptradingshop, Yesterday, 10:37 PM
      1 response
      10 views
      0 likes
      Last Post proptradingshop  
      Started by MatthewLesko, Yesterday, 09:46 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X