Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

text disappearing

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

    text disappearing

    Hi

    I have this line of code in an Indicator and on some chart it appears and some it doesn't

    DrawText("Session High", ("Session High " + currentHigh) , -18, currentHigh, Color.Green);

    Am I missing something ????

    Thank you in advance

    #2
    Hello richbois,

    Thanks for your post.

    In your code sample it appears you are using -18 bars for the "barsAgo". A negative value puts the text 18 bars into the future which may or may not show on the chart unless you move the databack 18 + bars from the right edge. Did you mean to put it 18 bars in the past? If so then just use 18.

    Reference: http://ninjatrader.com/support/helpG.../?drawtext.htm

    Comment


      #3
      Originally posted by NinjaTrader_Paul View Post
      Hello richbois,

      Thanks for your post.

      In your code sample it appears you are using -18 bars for the "barsAgo". A negative value puts the text 18 bars into the future which may or may not show on the chart unless you move the databack 18 + bars from the right edge. Did you mean to put it 18 bars in the past? If so then just use 18.

      Reference: http://ninjatrader.com/support/helpG.../?drawtext.htm
      Yes I did want to print in the future to the right of the line that is drawn for the session high.
      i reduced the futures to 10 and now it is working on regular charts.

      Thank you for your help

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, 03-23-2026, 04:31 AM
      0 responses
      76 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      313 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      313 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      149 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      113 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X