Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Text is not drawing

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

    Text is not drawing

    Hello: I have this attached command in my script but it is not drawing anything on the chart. I am trying to draw a running P&L at the end of each trade. Please help. Thanks
    Attached Files

    #2
    Hello mtamaku,

    Thanks for your post.

    Your code is drawing the text at a price level (y-axis) of 0 (zero). If you shrink up your chart to see the zero line you will see any text that has been drawn.

    For the Y-axis parameter, I suggest using Low[0] - 5 * TickSize. This will put the text 5 ticks below the low of the bar. Note that the text will move as the bars move right to left.

    Alternatively, you might want to use Draw.TextFixed() as this will show the value in the same place all the time (any of the 4 corners or the center of the chart).
    Reference: https://ninjatrader.com/support/help..._textfixed.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks It works now..I see it.,

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by swcooke, Today, 07:17 PM
      0 responses
      5 views
      0 likes
      Last Post swcooke
      by swcooke
       
      Started by aguison, Today, 04:20 PM
      0 responses
      9 views
      0 likes
      Last Post aguison
      by aguison
       
      Started by timko, Today, 04:11 PM
      0 responses
      6 views
      0 likes
      Last Post timko
      by timko
       
      Started by djkiwi, Today, 03:25 PM
      2 responses
      11 views
      0 likes
      Last Post djkiwi
      by djkiwi
       
      Started by hdge4u, Today, 12:29 PM
      1 response
      21 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X