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

Market Analyzer Alert Message

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

    #16
    got it, thanks.

    Is there a way to pop up a text box? Maybe programatically open a notepad message?

    Comment


      #17
      Great - this could be done via C#, but unfortuantely we don't support this.

      As a workaround, you could for example draw on the chart with DrawTextFixed - http://www.ninjatrader-support.com/H...TextFixed.html
      BertrandNinjaTrader Customer Service

      Comment


        #18
        Is it possible to utilize carriage returns in the DrawTextFixed() method in order to move the message up from a corner? How would I do that?

        Comment


          #19
          Just choose one of the 5 predefined textPositions for the placement of the DrawTextFixed label.
          BertrandNinjaTrader Customer Service

          Comment


            #20
            My question is how can I include carriage returns in the text message in order to adjust the position from the pre defined one.

            Comment


              #21
              Jerry, you could pick out of 11 predefined literals for this -

              Code:
               
              \' single quote
              \" double quote
              \\ backslash
              \0 null character
              \a alert
              \b backspace
              \f form feed
              \n new line
              \r carriage return
              \t horizontal tab
              \v vertical tab
              BertrandNinjaTrader Customer Service

              Comment


                #22
                Thank you,

                How would I incorporate these into my text?

                Comment


                  #23
                  For example like this -

                  Code:
                   
                  DrawTextFixed("myTag", "Current Close:" + "\r\n" + Close[0].ToString(), TextPosition.BottomRight);
                  BertrandNinjaTrader Customer Service

                  Comment


                    #24
                    Thanks for all the help.

                    How do I control the font, size and color?

                    The links are incomprehensible to me.

                    Comment


                      #25
                      Jerry,

                      Try this.

                      Comment


                        #26
                        Thanks velocity, for more control and paramters you can work with the regular DrawText then Jerry instead of DrawTextFixed -

                        BertrandNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Mestor, 03-10-2023, 01:50 AM
                        16 responses
                        388 views
                        0 likes
                        Last Post z.franck  
                        Started by rtwave, 04-12-2024, 09:30 AM
                        4 responses
                        31 views
                        0 likes
                        Last Post rtwave
                        by rtwave
                         
                        Started by yertle, Yesterday, 08:38 AM
                        7 responses
                        29 views
                        0 likes
                        Last Post yertle
                        by yertle
                         
                        Started by bmartz, 03-12-2024, 06:12 AM
                        2 responses
                        22 views
                        0 likes
                        Last Post bmartz
                        by bmartz
                         
                        Started by funk10101, Today, 12:02 AM
                        0 responses
                        7 views
                        0 likes
                        Last Post funk10101  
                        Working...
                        X