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

Drawing Text at the right/left of the chart window?

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

    Drawing Text at the right/left of the chart window?

    Hi,

    I have been searching through the forum but haven't found the answer.

    What I want to do is to draw a text label always at the right side of the chart and keep it there even when the window is scrolled. I can use DrawText with CurrentBar but that only draws the text at the end of the chart, which means that when I scroll the chart to the left the label disappears.

    How can I keep the label/text "sticky" at the right edge of the chart window?

    Thanks,

    Paul

    #2
    Sorry, this is not supported at this time.

    Comment


      #3
      Dierk,

      Thanks for the quick reply.

      I found the Pivots indicator which uses a custom Plot() function to achieve exactly what I need - this seems to be able to do it. I guess you are saying that you are not allowed/not contracted to support it at this time.

      If there is any doco that you have available or if you can point me to a WEB site that has some doco and more examples of custom Plot() functions I would appreciate it.

      For now I will adapt what I can from the Pivots indicator.

      Paul

      Comment


        #4
        You are correct, e.g. the Pivots do custom painting routines. However, we do not provide support for that at this time. Microsoft surely has online documentation available on the various Draw.. methods, but we do not provide any NT specific documentation related at this time.

        Comment


          #5
          pbastowski: I have some developmental indicators that use custom plot routines. When I get back home I can upload it for you to check out. Feel free to rip and modify the code to achieve what you want.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            uacvax: Thank you, I appreciate this.

            Originally posted by uacvax View Post
            pbastowski: I have some developmental indicators that use custom plot routines. When I get back home I can upload it for you to check out. Feel free to rip and modify the code to achieve what you want.

            Comment


              #7
              Here you go. I finally got around to it.

              The multiple time frame concept shown in this indicator won't work with NinjaTrader yet, but you get the idea of how to create the table. Just modify the x and y coordinates to wherever you want the table to appear. Enjoy.
              Attached Files
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Thank you, much appreciated.

                Paul

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by jaybedreamin, Today, 05:56 PM
                0 responses
                3 views
                0 likes
                Last Post jaybedreamin  
                Started by DJ888, 04-16-2024, 06:09 PM
                6 responses
                18 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by Jon17, Today, 04:33 PM
                0 responses
                1 view
                0 likes
                Last Post Jon17
                by Jon17
                 
                Started by Javierw.ok, Today, 04:12 PM
                0 responses
                9 views
                0 likes
                Last Post Javierw.ok  
                Started by timmbbo, Today, 08:59 AM
                2 responses
                10 views
                0 likes
                Last Post bltdavid  
                Working...
                X