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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          284 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          177 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          172 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          263 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          216 views
          0 likes
          Last Post CarlTrading  
          Working...
          X