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 Kaledus, Today, 01:29 PM
          0 responses
          3 views
          0 likes
          Last Post Kaledus
          by Kaledus
           
          Started by PaulMohn, Today, 12:36 PM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by yertle, Yesterday, 08:38 AM
          8 responses
          36 views
          0 likes
          Last Post ryjoga
          by ryjoga
           
          Started by rdtdale, Today, 01:02 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by alifarahani, Today, 09:40 AM
          3 responses
          18 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X