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 Mongo, Yesterday, 11:05 AM
                        6 responses
                        27 views
                        0 likes
                        Last Post Mongo
                        by Mongo
                         
                        Started by ct, 05-07-2023, 12:31 PM
                        7 responses
                        206 views
                        0 likes
                        Last Post NinjaTrader_BrandonH  
                        Started by wzgy0920, Yesterday, 09:53 PM
                        1 response
                        13 views
                        0 likes
                        Last Post NinjaTrader_BrandonH  
                        Started by Rapine Heihei, Yesterday, 07:51 PM
                        1 response
                        12 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by kaywai, Today, 06:26 AM
                        1 response
                        6 views
                        0 likes
                        Last Post kaywai
                        by kaywai
                         
                        Working...
                        X