Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 lorem, Yesterday, 09:18 AM
          4 responses
          14 views
          0 likes
          Last Post lorem
          by lorem
           
          Started by Spiderbird, Today, 12:15 PM
          0 responses
          5 views
          0 likes
          Last Post Spiderbird  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          12 responses
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by FrazMann, Today, 11:21 AM
          0 responses
          6 views
          0 likes
          Last Post FrazMann  
          Started by geddyisodin, Yesterday, 05:20 AM
          8 responses
          52 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X