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 Rogers101, 05-05-2024, 11:30 AM
        3 responses
        21 views
        0 likes
        Last Post Rogers101  
        Started by nightstalker, 05-04-2024, 02:05 PM
        5 responses
        53 views
        1 like
        Last Post nightstalker  
        Started by MSerag, Yesterday, 11:52 PM
        0 responses
        10 views
        0 likes
        Last Post MSerag
        by MSerag
         
        Started by DynamicTest, Yesterday, 11:18 PM
        0 responses
        3 views
        0 likes
        Last Post DynamicTest  
        Started by dcriador, Yesterday, 01:43 AM
        3 responses
        22 views
        0 likes
        Last Post dcriador  
        Working...
        X