Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawTextFixed offset

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

    DrawTextFixed offset

    Is there a way to express an offset value with DrawTextFixed?

    I've got an indicator outputting to the TopRight, but it is being overlapped with the indicator texts.


    Click image for larger version

Name:	image_2022-11-08_131956177.png
Views:	72
Size:	8.8 KB
ID:	1222735

    #2
    Yes, you can add a C# escape character that does one or more line returns.

    Here is an example of drawing 4 lines:

    Draw.TextFixed (this, "testa", "Line1", TextPosition.TopRight);
    Draw.TextFixed (this, "testb", "\nLine2", TextPosition.TopRight);
    Draw.TextFixed (this, "testc", "\n\nLine3", TextPosition.TopRight);
    Draw.TextFixed (this, "testd", "\n\n\nLine4", TextPosition.TopRight);

    Note the use of \n for the 2nd, 3rd and 4th line.

    To "offset" a single line, using the above example: Draw.TextFixed (this, "testa", "\nLine1", TextPosition.TopRight);

    Comment


      #3
      Hello kevinenergy,

      To further clarify, there is not an offset property that can be changed in the UI for indicators to use, the indicator would need to have its code edited. If you have the code you can edit the TextFixed statements to use \n for newlines as Tasker-182 has shown.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AaronKoRn, Today, 09:49 PM
      0 responses
      2 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Today, 08:42 PM
      0 responses
      7 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      8 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,975 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      9 views
      0 likes
      Last Post rbeckmann05  
      Working...
      X