Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple question about Draw.Text

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

    Simple question about Draw.Text

    I put a simple Draw.Text in the OnBarUpdate(). But when I apply it to the chart, nothing showed up! Why!?
    As a matter of fact, NONE of my output method worked!!!
    I don't know what went wrong!!!
    Thank you very much for your help!!!
    Last edited by YoutingChu; 10-04-2017, 11:02 PM.

    #2
    I figured it out, thank you!
    Please delete this thread! Thank you very much!

    Comment


      #3
      Hello YoutingChu,

      Thank you for your post and welcome to the NinjaTrader Support Forum!

      We like to keep the threads open so other users who may be searching for the same item can learn from others. Can you post the fix you found for this item?

      I look forward to your response.

      Comment


        #4
        Draw.Text(NinjaScriptBase owner, string tag, string text, int barsAgo, double y)

        The problem is the "y" here is the position of the price value you wish it to display, NOT the relative y value to the screen or anything.
        Before, I keep putting in the wrong value. Therefore the text had been printed out of the screen! That's why I can't see anything!
        Once I figured that out, the text showed up beautifully!

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello YoutingChu,

          Thank you for your post and welcome to the NinjaTrader Support Forum!

          We like to keep the threads open so other users who may be searching for the same item can learn from others. Can you post the fix you found for this item?

          I look forward to your response.
          Nice post !! For give me a wonderful information
          Thank you

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          90 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          137 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          120 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          71 views
          0 likes
          Last Post PaulMohn  
          Working...
          X