• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    Paul H.NinjaTrader Customer Service

    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 tvaughan4, 12-13-2019, 10:46 PM
      2 responses
      14 views
      0 likes
      Last Post tvaughan4  
      Started by digibob, 12-13-2019, 10:01 PM
      3 responses
      12 views
      0 likes
      Last Post digibob
      by digibob
       
      Started by ldissinger, Yesterday, 12:55 PM
      1 response
      14 views
      0 likes
      Last Post ldissinger  
      Started by pstrusi, Yesterday, 09:06 AM
      1 response
      25 views
      0 likes
      Last Post marcus2300  
      Started by vpzdcv, Yesterday, 02:31 AM
      0 responses
      13 views
      0 likes
      Last Post vpzdcv
      by vpzdcv
       
      Working...
      X