Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Symbol Watermark indicator Modification

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

    Symbol Watermark indicator Modification

    Hello,

    I like having a watermark to indicate the symbol I am working on. For that I am using "Symbol Watermark" that can be found here:
    Simple script that adds a background watermark of the instrument symbol (and expiry if a future) to the chart. (Updated July 10th, 2018 ‐ The opacity needed to be casted as a double and divided by 100 to be between 0 and 1) (Update: August 24th, 2021 – Subtracted the ChartPanel.Y so indicator can be […]


    The thing is, it is put in the center of the chart, and I want it to be placed in the top left corner. Any idea how to modify that indicator so we can use the X and Y positions of the chart to specify where we want to put the indicator?

    I am not a developer, but could modify or update the code if it is something easy to do.

    Any help would be greatly appreciated.

    PS: English is not my mother language so I apologize if I couldn't explain myself well enough.

    Thank you!

    #2
    Hello dalvarad,

    The coordinates for where this draws currently are located on line 80 and 81. You could change the code to look like the following to offset 5 pixels from the top and left corner.

    Code:
    startPoint.X = ChartPanel.X + 5;
    startPoint.Y = ChartPanel.Y + 5;
    After making that change you would need to press F5 to compile the script, then reload any charts where it was applied.
    Last edited by NinjaTrader_Jesse; 08-18-2021, 01:37 PM.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello dalvarad,

      The coordinates for where this draws currently are located on line 80 and 81. You could change the code to look like the following to offset 5 pixels from the top and left corner.

      Code:
      startPoint.X = chartScale.X + 5;
      startPoint.Y = chartScale.Y + 5;
      After making that change you would need to press F5 to compile the script, then reload any charts where it was applied.
      Thank you Jesse for your reply and help on this. I tried what you said, but I got the following error messages when compiling:
      'NinjaTrader.Gui.Chart.ChartScale' does not contain a definition for 'X' and no extension method 'X' accepting a first argument of type 'NinjaTrader.Gui.Chart.ChartScale' could be found (are you missing a using directive or an assembly reference?)
      'NinjaTrader.Gui.Chart.ChartScale' does not contain a definition for 'Y' and no extension method 'Y' accepting a first argument of type 'NinjaTrader.Gui.Chart.ChartScale' could be found (are you missing a using directive or an assembly reference?)

      Comment


        #4
        Hello dalvarad,

        It looks like I copied the wrong object in that, I went ahead and updated the previous post with the correction.

        Comment


          #5
          That worked perfectly! Thank you very much Jesse

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X