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 sidlercom80, Today, 02:40 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by b16_aln, Today, 01:52 AM
          0 responses
          14 views
          0 likes
          Last Post b16_aln
          by b16_aln
           
          Started by junkone, Yesterday, 08:55 PM
          2 responses
          11 views
          0 likes
          Last Post junkone
          by junkone
           
          Started by adaeiqendqw, 01-16-2021, 02:56 AM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by [email protected], Yesterday, 06:10 PM
          5 responses
          17 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Working...
          X