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, 10: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 krpkevin, Today, 07:50 AM
          0 responses
          4 views
          0 likes
          Last Post krpkevin  
          Started by robforee2, Yesterday, 06:11 PM
          2 responses
          17 views
          1 like
          Last Post NinjaTrader_ChrisL  
          Started by minds2010, Today, 03:38 AM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by DTSSTS, Yesterday, 07:11 PM
          2 responses
          32 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by ntbone, Yesterday, 11:42 PM
          3 responses
          19 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Working...
          X