• 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 yeshujbp, Today, 08:10 PM
      0 responses
      1 view
      0 likes
      Last Post yeshujbp  
      Started by backtester831, Today, 06:54 PM
      0 responses
      1 view
      0 likes
      Last Post backtester831  
      Started by frayrengytrader, Today, 06:03 PM
      0 responses
      3 views
      0 likes
      Last Post frayrengytrader  
      Started by JustAFish, Today, 05:29 PM
      0 responses
      5 views
      0 likes
      Last Post JustAFish  
      Started by TraderCAD, Today, 04:27 PM
      1 response
      8 views
      0 likes
      Last Post TraderCAD  
      Working...
      X