Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Water mark or "sticky" note on the chart?

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

    Water mark or "sticky" note on the chart?

    Is it possible to place a water mark or "sticky" note on the chart so it's in the same place at all times? regular text moves as chart progresses but wonder if can place a water mark type note on the chart...so stays in the same place all the time

    #2
    Hello caltrader,

    Thanks for your post.

    You can use the draw method of DrawTextFixed() which provides a selectable text location of any of the 4 corners or center of the chart panel. The text would remain in place while the bars move.

    Reference: http://ninjatrader.com/support/helpG...wtextfixed.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      How to do via UI or is there a sample I can use and modify?
      How can modify existing draw test method?

      Comment


        #4
        Hello caltrader,

        Thanks for your reply.

        You would need to use Ninjascript to create this. I've linked an indicator from the file downloads area that adds the instrument name to the chart as a watermark. It is set to adjust color, font size, type and location. You could modify this to fit your needs.

        Download Indicator From: http://ninjatrader.com/support/forum...hp?&linkid=648

        Here is a basic guideline of how to Import NinjaScripts.

        To import NinjaScripts you will need the original .zip file.

        To Import

        Download the NinjaScripts to your desktop, keep them in the compressed .zip file.

        From the Control Center window select the menu File> Utilities> Import NinjaScript

        Select the downloaded .zip file

        NinjaTrader will then confirm if the import has been successful.
        Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

        Once installed, you may add the indicator to a chart by:

        Right click you chart > indicators > Select the Indicator from the list on the left > New > OK
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Paul View Post
          Hello caltrader,

          Thanks for your reply.

          You would need to use Ninjascript to create this. I've linked an indicator from the file downloads area that adds the instrument name to the chart as a watermark. It is set to adjust color, font size, type and location. You could modify this to fit your needs.

          Download Indicator From: http://ninjatrader.com/support/forum...hp?&linkid=648

          Here is a basic guideline of how to Import NinjaScripts.

          To import NinjaScripts you will need the original .zip file.

          To Import

          Download the NinjaScripts to your desktop, keep them in the compressed .zip file.

          From the Control Center window select the menu File> Utilities> Import NinjaScript

          Select the downloaded .zip file

          NinjaTrader will then confirm if the import has been successful.
          Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

          Once installed, you may add the indicator to a chart by:

          Right click you chart > indicators > Select the Indicator from the list on the left > New > OK
          This was good progress, I do see text now how do I modify it?
          Currenly it displays chart name...but I need a static text, my own text, how do it?
          Which field or line in the ChartName.cs to modify?

          Comment


            #6
            Hello caltrader,

            Thanks for your reply.

            Lines 50 through 62 are used to assign information to the string variable chartName. You could replace those lines with this one line: chartName = " your text here";
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Found this, and it's great.

              Notes Panel - NinjaTrader Ecosystem

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by bortz, 11-06-2023, 08:04 AM
              47 responses
              1,603 views
              0 likes
              Last Post aligator  
              Started by jaybedreamin, Today, 05:56 PM
              0 responses
              8 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
              4 views
              0 likes
              Last Post Jon17
              by Jon17
               
              Started by Javierw.ok, Today, 04:12 PM
              0 responses
              12 views
              0 likes
              Last Post Javierw.ok  
              Working...
              X