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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          65 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X