Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to make new line with DrawText

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

    How to make new line with DrawText

    I use the following code on a chart


    // Draws text in the upper right corner of panel 1
    DrawTextFixed("tag1", "watch CCI", TextPosition.TopRight);
    Now I would like to add text below the "watch CCI" text. Can I use something like the perl new line command (\n) to make a new line? Any suggestions? Thanks

    #2
    Yes, just use "text text \nMore text more text" as your string.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      text above existing text?

      is there a way to place text above existing text - a sort of /-n type of thing?

      ie 1 carriage return above the existing text rather than /n which puts it below?

      Comment


        #4
        Not that I am aware of.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,281 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        19 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Tim-c, Today, 02:10 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        5 views
        0 likes
        Last Post Taddypole  
        Working...
        X