Skip to content

A customizable cTrader indicator that displays a 3-line configurable watermark (symbol, timeframe, broker, etc.) with optional live candle countdown and per-row styling.

Notifications You must be signed in to change notification settings

abhidp/cTrader-TRWatermark

Repository files navigation

TR Watermark for cTrader

A fully customizable watermark indicator for cTrader.

This indicator adds a three-line watermark to your chart showing instrument name, timeframe, and broker (or any custom text you choose).
It also supports a live countdown timer to the close of the current candle, and per-row font size customization.

alt text

🧭 Why "TR Watermark"?

Most default chart watermarks appear as large, opaque text right in the center of the chart — covering price action, candles, and drawings.
While visually striking, they often become a distraction for active traders who need a clean, unobstructed view of the market.

Out of this frustration, the idea for TR Watermark (Top Right Watermark) was born.
The goal was to create a watermark that is:

  • Subtle — always visible but never intrusive
  • Customisable — can be placed in any corner of the chart except the center
  • Flexible — lets traders choose exactly what information to show (symbol, timeframe, broker, countdown, etc.)
  • Clean — designed to enhance situational awareness without cluttering the workspace

Having the watermark anchored to the corners of the chart keeps the center area clear for candles and technical drawings, providing a distraction-free trading environment while still maintaining useful context.

Hence the name Top Right Watermark, shortened as TRWatermark.


✨ Features

  • 3 configurable rows — choose from Timeframe, Ticker, Exchange, Custom Text, Countdown, or Empty
  • Timeframe formatting — switch between TradingView or MetaTrader styles
  • Row alignment & positioning — top/middle/bottom, left/center/right
  • Per-row font size override (with global defaults)
  • Candle close countdown for timeframes from 1 min to 1 day
  • Persistent styling — font, opacity, bold, italic, etc.
  • Lightweight and efficient, updates only when needed

⚙️ Installation

  1. Clone or download this repository.
  2. Copy the folder into your cTrader user indicators directory: C:\Users\Documents\cAlgo\Sources\Indicators\
  3. Open cTrader → Automate.
  4. Click Build, then add TR_Watermark to any chart.

💡 Usage

  • Configure the three rows in indicator settings:
  • Ticker, Timeframe, Exchange, Custom Text, Countdown, Empty
  • Adjust font sizes, alignment, opacity, and panel width to your liking.
  • The countdown timer updates every second for all supported timeframes.

🧩 Example

Row Example Output
1 XAUUSD
2 H1
3 44:25 (countdown)

🧰 Development Notes

  • Written in C# using cTrader Automate API (cAlgo.API).
  • Build locally with:
dotnet build
  • you can also build by pressing the key combination Ctrl/Cmd + Shift + B in Visual Studio.

Requires .NET 6 SDK.

Target framework: net6.0-windows

🏗️ Building and Using in cTrader

Once the source code is placed in your cAlgo Indicators folder, you can build it and add it to your charts either directly inside cTrader or using Visual Studio Code.


Option 1 – Build inside cTrader (recommended)

  1. Open cTrader → Automate.
  2. In the left panel, under Indicators, find TR Watermark.
    • If it doesn’t appear, click Open C#, then browse to:
      C:\Users\<you>\Documents\cAlgo\Sources\Indicators\TRWatermark\TRWatermark.cs
      
  3. Click the Build (hammer) icon on the top toolbar.
  4. Once the build completes, right-click TR Watermark and select Add to Chart.
  5. Configure indicator settings such as rows, fonts, countdown, and alignment.

Option 2 – Build using VS Code / dotnet CLI

  1. Open a terminal in the folder containing TRWatermark.csproj.
  2. Run:
    dotnet build

    Make sure your project targets net6.0 and references cAlgo.API.dll correctly.

  3. After a successful build, open cTrader → Automate and press Build again.
    This step ensures cTrader compiles its own runtime copy and loads it on your charts.
  4. To distribute or back up the indicator, right-click it in cTrader → Export
    choose Export as .algo to generate a reusable package.

🪪 License

MIT License — feel free to use and modify, but attribution is appreciated.

About

A customizable cTrader indicator that displays a 3-line configurable watermark (symbol, timeframe, broker, etc.) with optional live candle countdown and per-row styling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages