OPEN-SOURCE SCRIPT
Michael's Custom Watermark

๐ท MICHAEL'S CUSTOM WATERMARK INDICATOR
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ OVERVIEW
A comprehensive chart watermark overlay that displays essential fundamental and technical information for stocks in a clean, customizable table format. Perfect for traders who want quick access to key metrics without cluttering their charts.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โจ KEY FEATURES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ WHAT MAKES THIS INDICATOR UNIQUE?
Unlike basic watermarks, this indicator provides:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW TO USE
1. BASIC SETUP
Add the indicator to your chart. By default, it displays in the top-left corner with all features enabled.
2. POSITIONING
3. CUSTOMIZATION OPTIONS
TEXT APPEARANCE:
DATA DISPLAY TOGGLES:
4. ATR VOLATILITY ALERTS
Configure custom thresholds to monitor volatility:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ UNDERSTANDING THE DISPLAY
๐ข SECTOR & INDUSTRY
Shows the GICS sector classification followed by the specific industry. The indicator uses heuristic-based mapping to align TradingView sectors with standard GICS classifications. Note that this mapping is based on keyword detection and industry analysis, so while generally accurate, it may not perfectly match official GICS classifications in all cases.
๐ฐ MARKET CAP
Displays market capitalization using standard abbreviations:
๐ P/E RATIO
Shows the trailing twelve-month Price-to-Earnings ratio. Only displayed for stocks when enabled. Shows "N/A" if data is unavailable.
๐ ATR (14-DAY)
Displays the 14-period Average True Range in both absolute value and percentage terms, with a color-coded indicator:
๐ EARNINGS
Shows earnings information in three formats:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ TECHNICAL DETAILS
SUPPORTED INSTRUMENTS:
PERFORMANCE:
COMPATIBILITY:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก TIPS & BEST PRACTICES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง TROUBLESHOOTING
"N/A" SHOWING FOR P/E RATIO:
EARNINGS SHOWING "N/A":
TEXT COLOR NOT VISIBLE:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ DISCLAIMER
This indicator is for informational purposes only. The fundamental data displayed is sourced from TradingView's data providers. Always verify critical information before making trading decisions. Past performance is not indicative of future results.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
If you find this indicator helpful, please give it a boost ๐ and share your feedback in the comments!
Version: 1.0
Pine Script Version: v6
Created by: Michael
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ OVERVIEW
A comprehensive chart watermark overlay that displays essential fundamental and technical information for stocks in a clean, customizable table format. Perfect for traders who want quick access to key metrics without cluttering their charts.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โจ KEY FEATURES
- ๐ Fundamental Data Display โ Shows Industry, Sector, Market Cap, and P/E Ratio
- ๐
Earnings Information โ Displays next earnings date with countdown timer
- ๐ ATR Volatility Indicator โ 14-day ATR with color-coded visual alerts (๐ด๐ก๐ข)
- ๐จ Auto Theme Detection โ Automatically adjusts text color based on chart background
- โ๏ธ Fully Customizable โ Position, colors, size, and displayed metrics all adjustable
- ๐ข GICS Sector Mapping โ Heuristic-based sector classification aligned with industry standards
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ WHAT MAKES THIS INDICATOR UNIQUE?
Unlike basic watermarks, this indicator provides:
- Real-time fundamental data integration
- Smart theme-aware color adaptation for both light and dark charts
- Configurable volatility alerts using ATR thresholds
- Earnings countdown feature to never miss important dates
- Optimized display that only shows relevant data for the current symbol type
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ HOW TO USE
1. BASIC SETUP
Add the indicator to your chart. By default, it displays in the top-left corner with all features enabled.
2. POSITIONING
- Vertical Location: Top, Middle, or Bottom
- Horizontal Location: Left, Center, or Right
- Vertical Offset: Fine-tune position with 0-50 pixel offset from top
3. CUSTOMIZATION OPTIONS
TEXT APPEARANCE:
- Auto Text Color โ Enable to automatically adapt text color to your chart theme
- Manual Color โ Set a fixed text color if auto-color is disabled
- Text Size โ Choose from Huge, Large, Normal, or Small
- Theme Colors โ Customize text color for light and dark backgrounds separately
DATA DISPLAY TOGGLES:
- Show Industry & Sector โ Display heuristic-based GICS-aligned sector and industry classification
- Show Market Cap โ View market capitalization in T/B/M format
- Show P/E Ratio โ Display Price-to-Earnings ratio (stocks only)
- Show ATR (14-Day) โ Display Average True Range with percentage and visual indicator
- Show Next Earnings โ Display upcoming earnings information
- Show Earnings Countdown โ Show days remaining until next earnings (requires earnings display)
4. ATR VOLATILITY ALERTS
Configure custom thresholds to monitor volatility:
- Red Threshold โ ATR percentage that triggers red alert ๐ด (default: 6%)
- Yellow Threshold โ ATR percentage that triggers yellow alert ๐ก (default: 3%)
- Green โ Shows automatically when ATR is below yellow threshold ๐ข
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ UNDERSTANDING THE DISPLAY
๐ข SECTOR & INDUSTRY
Shows the GICS sector classification followed by the specific industry. The indicator uses heuristic-based mapping to align TradingView sectors with standard GICS classifications. Note that this mapping is based on keyword detection and industry analysis, so while generally accurate, it may not perfectly match official GICS classifications in all cases.
๐ฐ MARKET CAP
Displays market capitalization using standard abbreviations:
- T = Trillion
- B = Billion
- M = Million
๐ P/E RATIO
Shows the trailing twelve-month Price-to-Earnings ratio. Only displayed for stocks when enabled. Shows "N/A" if data is unavailable.
๐ ATR (14-DAY)
Displays the 14-period Average True Range in both absolute value and percentage terms, with a color-coded indicator:
- ๐ด Red: High volatility (above red threshold)
- ๐ก Yellow: Moderate volatility (between yellow and red thresholds)
- ๐ข Green: Low volatility (below yellow threshold)
๐ EARNINGS
Shows earnings information in three formats:
- "X days remaining" โ When countdown is enabled and earnings date is known
- "Upcoming" โ When date is in the future but countdown is disabled
- "Recently Reported" โ When earnings just occurred
- "N/A" โ When no earnings data is available
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ TECHNICAL DETAILS
SUPPORTED INSTRUMENTS:
- Optimized for stocks with full fundamental data
- Works with other instruments (crypto, forex, futures) but only displays applicable metrics
- Automatically suppresses irrelevant data (e.g., P/E for non-stocks)
PERFORMANCE:
- Lightweight overlay with minimal resource usage
- Updates only on last bar for efficiency
- No historical recalculation needed
COMPATIBILITY:
- Pine Script v6
- Works on all timeframes
- Compatible with all chart types
- Auto-adapts to theme changes
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก TIPS & BEST PRACTICES
- Enable Auto Text Color for seamless theme switching between light and dark modes
- Adjust vertical offset to avoid overlap with price action in high-volatility periods
- Use ATR thresholds appropriate to your trading style and asset class
- Disable features you don't use to keep the watermark clean and focused
- Position in corners to maximize chart viewing space
- Use smaller text size for multi-panel layouts
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง TROUBLESHOOTING
"N/A" SHOWING FOR P/E RATIO:
- This is normal for non-stock instruments
- May occur for stocks with negative earnings
- Check if fundamental data is available for the symbol
EARNINGS SHOWING "N/A":
- Earnings data may not be available for all stocks
- Check TradingView's data coverage for your symbol
TEXT COLOR NOT VISIBLE:
- Enable Auto Text Color feature
- Manually set text color to contrast with your chart background
- Adjust custom light/dark text colors in settings
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ DISCLAIMER
This indicator is for informational purposes only. The fundamental data displayed is sourced from TradingView's data providers. Always verify critical information before making trading decisions. Past performance is not indicative of future results.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
If you find this indicator helpful, please give it a boost ๐ and share your feedback in the comments!
Version: 1.0
Pine Script Version: v6
Created by: Michael
Skrip sumber terbuka
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Penafian
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Skrip sumber terbuka
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Penafian
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.