Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Watermark

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

    Watermark

    Was wondering if i could get some help on this existing indicator. I just need to get the color dark grey to save that's it. the way the code is written it's set to black by default and my charts are black. I've tried following the steps suggested in the post but i'm no coder and it didn't stick after i changed the color. the original post was uploaded by grazz 4/12/2018 and it's post #14. here is the original code below. i only need the color changed and that's it to dark grey. if someone can help that will be great. thank you




    #2
    Hello agraham,

    It looks like in the attached script they simply did not include the property to save the brush. You can add this with the following code. To add this use the following steps:

    From the control center click New -> NinjaScript editor
    Expand the Indicators folder
    Double click on the Watermark indicator
    Find line 103 and add the following code by pasting the whole syntax from below.
    After adding the code press F5 to compile.

    Code:
    [Browsable(false)]
    public string WaterMarkColorSerializable
    {
    get { return Serialize.BrushToString(WaterMarkColor); }
    set { WaterMarkColor = Serialize.StringToBrush(value); }
    }

    If you don't care about the color being able to be saved and just want to make it dark gray you can change line 53 to look like the following:

    Code:
    WaterMarkColor                    = Brushes.DarkGray;
    Then press F5 to compile.

    I look forward to being of further assistance.

    Comment


      #3
      thank you very much Jesse. it worked. i feel like i did some coding. haha...NOT! i did learn something though as i didnt even know where the Ninja script editor was. have a good weekend

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      331 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
      549 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X