Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText

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

    DrawText

    Hi,

    I'm trying to have text drawn when certain conditions are fulfilled. I've managed to get "1" printed (as shown in the attached chart but can't get "2" printed. There were also no errors in the log. Would you mind helping? I've enclosed the code as well.

    Thanks!

    Kay Wai
    Attached Files

    #2
    Hello Kaywai,

    One thing it might be is the DrawText field for the objects "tag" is not unique for drawing 1 and 2.

    Try changing this line to:
    Code:
     
    DrawText("BS2" + CurrentBar, "2", 0, (Low[0]-TickSize), Color.Green);
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi Ryan,

      Tried it. the '2' still won't appear...

      Comment


        #4
        Hi kaywai,

        You probably need to look at your logic to see if it's working as expected. Try adding print statements to check the value of _boolThereIsNoBullishFlip

        Code:
        Print(_boolThereIsNoBullishFlip);
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks for the guidance Ryan

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          656 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          371 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          579 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X