Pivot Fib 4H — EAStrategy uses the pivot standard to open position, it has well define entry and exit point with SL, it also has a proper money management plan, maximum 4 trades a day, each trade risk 0.5% of the account, I have it EA version of it also.
Análise Fundamentalista
Nifty50 Sector Weightage PerformanceNifty50 Sector Weightage Performance is a comprehensive market analysis indicator that visualizes the composition and daily performance of all 15 sectors in the Nifty 50 index. This powerful tool provides real-time insights into sector movements, helping traders and investors identify market trends, understand sector rotation, and make informed trading decisions.
The indicator combines sector weightage data with daily percentage changes to calculate a weighted market sentiment score, displayed through an intuitive visual progress bar that indicates whether the market is moving towards bullish or bearish territory.
Comprehensive Sector Coverage
- Tracks all 15 sectors of the Nifty 50 index. Some broad indices because of request limit on Tradingview.
- Displays real-time sector weights and daily percentage changes
- Color-coded visualization for quick performance assessment
Complete Sector Breakdown
1. Financial Services (36.76%)
- Symbol: NSE:BANKNIFTY
- Largest sector in Nifty 50
- Uses Bank Nifty index for comprehensive financial sector representation
2. Oil, Gas & Consumable Fuels (10.26%)
- Individual Stocks(weighted average):
- RELIANCE (8.71%)
- ONGC (0.81%)
- COALINDIA (0.74%)
3. Information Technology (9.98%)
- Symbol: NSE:CNXIT
- Represents IT sector performance through CNX IT index
4. Automobile & Auto Components (6.83%)
- Individual Stocks (weighted average):
- M&M (Mahindra & Mahindra) - 2.77%
- BAJAJ_AUTO (Bajaj Auto) - 0.84%
- EICHERMOT (Eicher Motors) - 0.79%
- MARUTI (Maruti Suzuki) - 1.77%
- TATAMOTORS (Tata Motors) - 0.66%
5. Fast Moving Consumer Goods (6.52%)
- Symbol: NSE:CNXFMCG
- Uses CNX FMCG index for consumer goods sector
6. Telecommunication (4.96%)
- Symbol: NSE:BHARTIARTL
- Uses Bharti Airtel as representative stock
7. Healthcare (4.27%)
- Symbol: NSE:CNXPHARMA
- Pharmaceutical sector represented by CNX Pharma index
8. Construction (3.98%)
- Symbol: NSE:LT
- Uses Larsen & Toubro as representative stock
9. Metals & Mining (3.64%)
- Symbol: NSE:CNXMETAL
- Metals sector through CNX Metal index
10. Consumer Services (2.63%)
- Individual Stocks (weighted average):
- ETERNAL (Eternal) - 1.8%
- TRENT (Trent) - 0.82%
11. Consumer Durables (2.47%)
- Individual Stocks (weighted average):
- TITAN (Titan Company) - 1.36%
- ASIANPAINT (Asian Paints) - 1.11%
12. Power (2.37%)
- Individual Stocks (weighted average):
- NTPC (NTPC Limited) - 1.32%
- POWERGRID (Power Grid Corporation) - 1.05%
13. Construction Materials (2.07%)
- Individual Stocks (weighted average):
- ULTRACEMCO (UltraTech Cement) - 1.18%
- GRASIM (Grasim Industries) - 0.89%
14. Services (2.00%)
- Individual Stocks (weighted average):
- INDIGO (Interglobe Aviation) - 1.06%
- ADANIPORTS (Adani Ports) - 0.93%
15. Capital Goods (1.28%)
- Individual Stock:
- BEL (Bharat Electronics) - 1.28%
Sector Performance Calculation
- Single Index Sectors: Uses direct index/symbol percentage change
- Multi-Stock Sectors: Calculates weighted average based on individual stock weights and their percentage changes
- Formula: Weighted Average = Σ(Stock Weight × Stock % Change) / Total Sector Weight
Data Source
Nifty 50 Index: www.niftyindices.com
Nifty Sector Weightage MatrixSector-weighted view of the Nifty 50 index. This script highlights how much each sector contributes to the index along with real-time sector trend. Essential for index traders looking to understand sector impact, rotations, and leadership.
Chart Analyser — Full dashboard + insights Chart Analyser — Full dashboard + insights (Pine v5) A composite overlay that combines EMA trend, VWAP, RSI, ADX, MACD, ATR, Bollinger Bands, volume context, and pivot S/R into a single charting tool. It marks pivots directly on candles (labels + plotshape) and provides a fixed top‑right dashboard with metric readouts and a one‑line “takeaway” bias. Highly configurable colors and thresholds make it suitable for intraday and swing trading.
Interpretation & suggested use
- Trend filter: use the EMA alignment (fast > med > slow) as your primary trend filter. Prefer long bias only when trend is Bull and short bias only when Bear.
- Momentum confirmation: require RSI not extreme and MACD histogram confirming the direction of trade bias.
- Trend strength: ADX >= 25 suggests the trend has strength; pair trade entries with ADX confirmation if you need higher-probability setups.
- Volatility sizing: ATR and BB width help size stops and determine whether to expect range expansion; a squeeze suggests possible upcoming expansion but not direction.
- Volume: treat volume spikes as confirmation of breakout/turning points when they coincide with pivot break or VWAP breaks.
- Support/Resistance: last pivot High = short‑term resistance; last pivot Low = short‑term support. Distances in the dashboard show how close price is to S/R.
- Takeaway summary: uses composite logic combining trend, momentum, volume and pivot SR to provide a quick bias indication — treat it as guidance, not a trade signal generator.
Bitcoin vs M2 Global Liquidity (Lead 3M) - Table Ticker═══════════════════════════════════════════════════════════════
Bitcoin vs M2 Global Liquidity - Regression Indicator
═══════════════════════════════════════════════════════════════
TECHNICAL SPECS
• Pine Script v6
• Overlay: false (separate pane)
• Data sources: 5 M2 series + 4 FX pairs (request.security)
• Calculation: Rolling OLS linear regression with configurable lead
• Output: Regression line + ±1σ/±2σ confidence bands + R² ticker
CORE FUNCTIONALITY
Aggregates M2 money supply from 5 central banks (CN, US, EU, JP, GB),
converts to USD, applies time-lead, runs rolling linear regression
vs Bitcoin price, plots predicted value with confidence intervals.
CONFIGURABLE PARAMETERS
Input Controls:
• Lead Period: 0-365 days (default: 90)
• Lookback Window: 50-2000 bars (default: 750)
• Bands: Toggle ±1σ and ±2σ visibility
• Colors: BTC, M2, regression line, confidence zones
• Ticker: Position, size, colors, transparency
Advanced Settings:
• Table display: R², lead, M2 total, country breakdown (%)
• Ticker customization: 9 position options, 6 text sizes
• Border: Width 0-10px, color, outline-only mode
DATA AGGREGATION
Sources (via request.security):
• ECONOMICS:CNM2, USM2, EUM2, JPM2, GBM2
• FX_IDC:CNYUSD, JPYUSD (others: FX:EURUSD, GBPUSD)
• Conversion: All M2 → USD → Sum / 1e12 (trillions)
REGRESSION ENGINE
• Arrays: m2Array, btcArray (dynamic sizing, auto-trim)
• Window: Rolling (lookbackPeriod bars)
• Lead: Time-shift via array indexing (i + leadPeriodDays)
• Calc: Manual OLS (covariance/variance), no built-in ta functions
• Outputs: slope, intercept, r2, stdResiduals
CONFIDENCE BANDS
±1σ and ±2σ calculated from standard deviation of residuals.
Fill zones between upper/lower bounds with configurable transparency.
ALERTS
5 pre-configured alertcondition():
• Divergence > 15%
• Price crosses ±1σ bands (up/down)
• Price crosses ±2σ bands (up/down)
TICKER TABLE
Dynamic table.new() with 9 rows:
• R² value (4 decimals)
• Lead period (days + months)
• M2 Global total (trillions USD)
• Country breakdown: CN, US, EU, JP, GB (absolute + %)
• Optional: Hide/show M2 details
VISUAL CUSTOMIZATION
All plot() elements support:
• Color picker inputs (group="Couleurs")
• Line width: 1-3px
• Transparency: 0-100% for zones
• Offset: M2 plot has +leadPeriodDays offset option
PERFORMANCE
• Max arrays size: lookbackPeriod + leadPeriodDays + 200
• Calculations: Only when array.size >= lookbackPeriod + leadPeriodDays
• Table update: barstate.islast (once per bar)
• Request.security: gaps_off mode
CODE STRUCTURE
1. Inputs (lines 7-54)
2. Data fetch (lines 56-76)
3. M2 aggregation (line 78)
4. Array management (lines 84-95)
5. Regression calc (lines 97-172)
6. Prediction + bands (lines 174-183)
7. Plots (lines 185-199)
8. Ticker table (lines 201-236)
9. Alerts (lines 238-246)
DEPENDENCIES
None. Pure Pine Script v6. No external libraries.
LIMITATIONS
• Daily timeframe recommended (1D)
• Requires 750+ bars history for optimal calculation
• M2 data availability: TradingView ECONOMICS feed
• Max lines: 500 (declared in indicator())
CUSTOMIZATION EXAMPLES
• Shorter lookback (200d): More reactive, lower R²
• Longer lookback (1500d): More stable, regime mixing
• No bands: Set showBands=false for clean view
• Different lead: Test 60d, 120d for sensitivity analysis
TECHNICAL NOTES
• Manual OLS implementation (no ta.linreg)
• Array-based lead application (not plot offset)
• M2 values stored in trillions (/ 1e12) for readability
• Residuals array cleared/rebuilt each calculation
OPEN SOURCE
Code fully visible. Modify, fork, analyze freely.
No hidden calculations. No proprietary data.
VERSION
1.0 | November 2025 | Pine Script v6
═══════════════════════════════════════════════════════════════
Accumulation Buy/Sell PressureMeasures the Net Buy Dollars over the lookback period (default 30) . That is the SEED_YASHALGO_NSE_BREADTH:VOLUME on up ticks vs SEED_YASHALGO_NSE_BREADTH:VOLUME on down ticks. Uses trading view tick rule data so is not fully accurate, but directionally it should be good enough. Net Sell pressure is negative .Is noramlized by closing price to allow for comparison over time frames / between tickers.
Chart Analyser — Full dashboard + insights Chart Analyser — Full dashboard + insights (Pine v5) A composite overlay that combines EMA trend, VWAP, RSI, ADX, MACD, ATR, Bollinger Bands, volume context, and pivot S/R into a single charting tool. It marks pivots directly on candles (labels + plotshape) and provides a fixed top‑right dashboard with metric readouts and a one‑line “takeaway” bias. Highly configurable colors and thresholds make it suitable for intraday and swing trading.
Key features
- Plots three EMAs (fast, medium, slow) and VWAP on the chart.
- Detects pivot highs and pivot lows and marks them with:
- bar‑anchored plotshape triangles (guaranteed to move/scale with candles)
- optional bar‑anchored labels attached to the pivot candle
- Full dashboard (fixed to viewport top‑right) that displays:
- Price, EMA values, trend summary
- RSI and RSI state (Overbought/Neutral/Oversold)
- ADX (via ta.dmi) and trend strength
- MACD histogram direction and value
- ATR and Bollinger Band width (squeeze detection)
- Volume vs. moving average and spike detection
- VWAP position (Above/Below/At)
- Last pivot resistance/support and distance to current price
- A one‑line composite takeaway / bias summary
- Configurable color inputs for EMA, VWAP, BB, pivot shapes, labels and bar colors
- Adjustable indicator parameters (periods, pivot left/right, volume thresholds, ADX smoothing, etc.)
- Alerts for buy/sell bias conditions (configurable logic in code)
Interpretation & suggested use
- Trend filter: use the EMA alignment (fast > med > slow) as your primary trend filter. Prefer long bias only when trend is Bull and short bias only when Bear.
- Momentum confirmation: require RSI not extreme and MACD histogram confirming the direction of trade bias.
- Trend strength: ADX >= 25 suggests the trend has strength; pair trade entries with ADX confirmation if you need higher-probability setups.
- Volatility sizing: ATR and BB width help size stops and determine whether to expect range expansion; a squeeze suggests possible upcoming expansion but not direction.
- Volume: treat volume spikes as confirmation of breakout/turning points when they coincide with pivot break or VWAP breaks.
- Support/Resistance: last pivot High = short‑term resistance; last pivot Low = short‑term support. Distances in the dashboard show how close price is to S/R.
- Takeaway summary: uses composite logic combining trend, momentum, volume and pivot SR to provide a quick bias indication — treat it as guidance, not a trade signal generator.
100+ BTC Tracker + Sleepy ProxyThis lightweight Pine Script v6 indicator gives you four key on-chain metrics in real time — no paid subscription, no N/A, no NaN, no Glassnode required.
What it shows (daily timeframe recommended)
Orange line → Number of Bitcoin addresses holding ≥100 BTC right now
(Currently ~15,800–16,200 addresses)
Blue line → Total BTC sitting in those ≥100 BTC wallets
(Currently ~3.1–3.3 million BTC)
Purple table row → % of all Bitcoin supply held by long-term holders (Santiment’s LTH metric)
(Currently ~68–72%)
Teal line & table row → Approximate amount of BTC owned by long-term holders (the best free “sleepy/dormant” proxy)
(Currently ~13.5–14.2 million BTC)
Data sources (100% free & public – November 2025)
≥100 BTC wallets & supply → CryptoQuant (public symbols)
Sleepy proxy → Santiment “% of total supply held by long-term holders” (free tier)
Why this matters
Watch whale accumulation/distribution in real time
See how much Bitcoin is truly “sleeping” (LTH coins rarely move in bear markets)
Spot potential supply shocks when the teal line starts dropping fast → long-term holders are selling/waking up
Key advantages
Works on any free TradingView account
No errors, no missing data, no paid add-ons
Updates daily (as fast as free on-chain data gets)
Super clean table with latest values in the top-right corner
Fully open-source and ready to fork/customize
MACIAS_Graphsscrip para o Macias
simple script to check other graphs while a different graph is open
Session High/Low (Asian, London, New York) — v6 (fixed)Session high/low for Asian, London, and New York for Version 6 pine
Liquidity Sweep + BOS Retest System — Prop Firm Edition🟦 Liquidity Sweep + BOS Retest System — Prop Firm Edition
A High-Probability Smart Money Strategy Built for NQ, ES, and Funding Accounts
🚀 Overview
The Liquidity Sweep + BOS Retest System (Prop Firm Edition) is a precision-engineered SMC strategy built specifically for prop firm traders. It mirrors institutional liquidity behavior and combines it with strict account-safe entry rules to help traders pass and maintain funding accounts with consistency.
Unlike typical indicators, this system waits for three confirmations — liquidity sweep, displacement, and a clean retest — before executing any trade. Every component is optimized for low drawdown, high R:R, and prop-firm-approved risk management.
Whether you’re trading Apex, TakeProfitTrader, FFF, or OneUp Trader, this system gives you a powerful mechanical framework that keeps you within rules while identifying the market’s highest-probability reversal zones.
🔥 Key Features
1. Liquidity Sweep Detection (Stop Hunt Logic)
Automatically identifies when price clears a previous swing high/low with a sweep confirmation candle.
✔ Filters noise
✔ Eliminates early entries
✔ Locks onto true liquidity grabs
2. Automatic Break of Structure (BOS) Confirmation
Price must show true displacement by breaking structure opposite the sweep direction.
✔ Confirms momentum shift
✔ Removes fake reversals
✔ Ensures institutional intent
3. Precision Retest Entry Model
The strategy enters only when price retests the BOS level at premium/discount pricing.
✔ Zero chasing
✔ Extremely tight stop loss placement
✔ Prop-firm-friendly controlled risk
4. Built-In Risk & Trade Management
SL set at swept liquidity
TP set by user-defined R:R multiplier
Optional session filter (NY Open by default)
One trade at a time (no pyramiding)
Automatically resets logic after each trade
This prevents overtrading — the #1 cause of evaluation and account breaches.
5. Designed for Prop Firm Futures Trading
This script is optimized for:
Trailing/static drawdown accounts
Micro contract precision
Funding evaluations
Low-risk, high-probability setups
Structured, rule-based execution
It reduces randomness and emotional trading by automating the highest-quality SMC sequence.
🎯 The Trading Model Behind the System
Step 1 — Liquidity Sweep
Price must take out a recent high/low and close back inside structure.
This confirms stop-hunting behavior and marks the beginning of a potential reversal.
Step 2 — BOS (Break of Structure)
Price must break the opposite side swing with a displacement candle. This validates a directional shift.
Step 3 — Retest Entry
The system waits for price to retrace into the BOS level and signal continuation.
This creates optimal R:R entry with minimal drawdown.
📈 Best Markets
NQ (NASDAQ Futures) – Highly recommended
ES, YM, RTY
Gold (XAUUSD)
FX majors
Crypto (with high volatility)
Works best on 1m, 2m, 5m, or 15m depending on your trading style.
🧠 Why Traders Love This System
✔ No signals until all confirmations align
✔ Reduces overtrading and emotional decisions
✔ Follows market structure instead of random indicators
✔ Perfect for maintaining long-term funded accounts
✔ Built around institutional-grade concepts
✔ Makes your trading consistent, calm, and rules-based
⚙️ Recommended Settings
Session: 06:30–08:00 MST (NY Open)
R:R: 1.5R – 3R
Contracts: Start with 1–2 micros
Markets: NQ for best structure & volume
📦 What’s Included
Complete strategy logic
All plots, labels, sweep markers & BOS alerts
BOS retest entry automation
Session filtering
Stop loss & take profit system
Full SMC logic pipeline
🏁 Summary
The Liquidity Sweep + BOS Retest System is a complete, prop-firm-ready, structure-based strategy that automates one of the cleanest and most reliable SMC entry models. It is designed to keep you safe, consistent, and rule-compliant while capturing premium institutional setups.
If you want to trade with confidence, discipline, and prop-firm precision — this system is for you.
Good Luck -BG
Global M2 ex-China MonitorGlobal M2 Monitor - Ultimate Edition
🎯 OVERVIEW
Advanced global M2 money supply monitoring indicator, offering a unique macroeconomic view of global liquidity. Real-time tracking of M2 evolution in major developed economies.
📊 KEY FEATURES
Global M2 Aggregation : USA, Japan, Canada, Eurozone, United Kingdom
Currency Conversion : All data converted to USD for consistent analysis
High Resolution Display : Daily curve by default
Technical Analysis : 50-period moving average (SMA/EMA/WMA)
Accurate YoY Calculation : Annual variation based on monthly data
Advanced Signal System : Multi-condition color codes
🎨 COLOR SYSTEM - DEFAULT SETTINGS
🟢 GREEN : YoY ≥ 7% AND M2 ≥ SMA → Strong growth + Bullish momentum
🔴 RED : YoY ≤ 2% AND M2 ≤ SMA → Weak growth + Bearish momentum
🟢 LIGHT GREEN : YoY ≥ 7% BUT M2 < SMA → Good fundamentals, temporarily weak momentum
🔴 LIGHT RED : YoY ≤ 2% BUT M2 > SMA → Weak fundamentals, price still supported
🔵 BLUE : YoY between 2% and 7% → Neutral zone of moderate growth
🇨🇳 WHY IS CHINA EXCLUDED BY DEFAULT?
Chinese M2 data presents methodological reliability and transparency issues. Exclusion allows for more consistent analysis of mature market economies.
Different M2 definition vs Western standards
Capital controls affecting real convertibility
Frequent monetary manipulations by authorities
✅ Available option : Can be activated in settings
⚙️ OPTIMIZED DEFAULT PARAMETERS
// DISPLAY SETTINGS
Candle Period: D (Daily)
// MOVING AVERAGE
MA Period: 50, Type: SMA
// BACKGROUND LOGIC
YoY Bullish: 7%, YoY Bearish: 2%
SMA Method: absolute, Threshold: 0.2%
// COLORS
Transparency: 5%
China M2: Disabled
📈 RECOMMENDED USAGE
Traders : Anticipate sector rotations
Investors : Identify abundant/restricted liquidity phases
Macro-analysts : Monitor monetary policy impacts
Portfolio managers : Understand inflationary pressures
🔍 ADVANCED INTERPRETATION
M2 ↗️ + YoY ≥ 7% → Favorable risk-on environment
M2 ↘️ + YoY ≤ 2% → Defensive risk-off environment
Divergences → Early warning signals for trend changes
💡 WHY THIS INDICATOR?
Global money supply is the lifeblood of the financial economy . Its growth or contraction typically precedes market movements by 6 to 12 months.
"Don't fight the Fed... nor the world's central banks"
🛠️ ADVANCED CUSTOMIZATION
All parameters are customizable:
YoY bullish/bearish thresholds
SMA comparison method (absolute/percentage)
Colors and transparency
Moving average period and type
Optional China inclusion
📋 TECHNICAL INFORMATION
YoY Calculation : Based on monthly data for consistency
Sources : FRED, ECONOMICS, official data
Updates : Real-time with publications
Currencies : Updated exchange rates
H1 Z-score + DevVWAP (swing filters)H1 Z-Score + DevVWAP (Swing Filters) — TradingView Indicator
Purpose
A lightweight filter to confirm or fade swing setups (1–5 days) using intermarket context. It measures how unusual the last 1-hour move is (Z-score) and how far price is from session VWAP (DevVWAP). Designed for risk-off proxies (DXY, ZN, VIX/VX) but works on any symbol.
What it shows
H1 Z-Score line
𝑍
=
1h return
𝜎
1h, rolling
Z=
σ
1h, rolling
1h return
using H1 data pulled via request.security.
Guide levels: ±1 (strong), ±1.5 (very strong), ±2 (extreme).
DevVWAP line (optional)
DevVWAP
=
Close
−
VWAP
VWAP
DevVWAP=
VWAP
Close−VWAP
from the current session.
Text panel / status (optional)
Human-readable hint: “PRO long equity”, “CONTRO long equity”, or “Mixed”, depending on Z and the asset’s role.
Inputs
Sessions lookback (default 20): how many sessions to estimate the 1h volatility baseline.
Hours per session (default 23): adjust for Globex vs cash hours.
Show DevVWAP (on/off).
Asset role = Risk-OFF? (true for DXY/ZN/VIX; false for equity indices/ETFs or risk-on FX/crypto).
How to read it (equity swing context)
For Risk-OFF assets (DXY, ZN, VIX/VX):
Z ≤ −1 (down move stronger than usual) and/or DevVWAP < 0 → PRO long equity (risk-on confirmation).
Z ≥ +1 and/or DevVWAP > 0 → CONTRO long equity (risk-off pressure).
For Risk-ON assets (set “Risk-OFF?” = false), invert the logic.
Typical use with a swing setup (Break & Retest):
If your setup is valid, add +10–15% confidence when ≥2 filters align (e.g., DXY Z ≤ −1 and below VWAP).
If signals are mixed, halve size (Reduce).
If ≥2 filters oppose, skip new entries (OFF).
Why it helps
Standardizes “strong vs normal”: Z-score compares the current 1h impulse to its own 20-session history.
Anchors to fair value: DevVWAP tells you if the filter asset is trading above/below its session value.
Portable: same logic across ES/FDAX/NQ/FESX (just apply the indicator to the filter symbols).
Practical tips
Symbols: prefer futures or liquid proxies (DX or 6E for DXY, ZN for UST 10y, VX for VIX future) so VWAP is meaningful.
Timeframe setting: the script fetches H1 internally; you can run it on any chart TF.
Labels vs timeframe: If you enable on-chart labels, do not pass a timeframe argument in indicator() (Pine forbids side effects with fixed TF).
Smoothing: keep 20 sessions; shorten only if regime shifts make the baseline stale.
Don’t trade it alone: it’s a filter for your swing setup (bias from D1/H4, trigger on H1/M15).
Typical workflow (1 minute)
Open a chart of the filter asset (e.g., DXY future).
Check Z relative to ±1/±1.5 and DevVWAP sign.
Repeat for ZN and VIX/VX.
If ≥2 agree with your trade direction → ON / size full; if mixed → Reduce; if opposed → OFF.
Limitations
Z-score assumes the recent 1h return distribution is a useful baseline; during extreme news this can break.
DevVWAP is session-dependent; ensure your session settings match the instrument’s trading hours.
No entry/exit rules by itself; it’s a context tool to modulate probability and size.
Fear & Greed Oscillator - Risk SentimentThe Fear & Greed Oscillator – Risk Sentiment is a macro-driven sentiment indicator inspired by the popular Fear & Greed Index , but rebuilt from the ground up using real, market-based economic data and statistical normalization.
While the traditional Fear & Greed Index uses components like volatility, volume, and social media trends to estimate sentiment, this version is powered by the Copper/Gold ratio — a historically respected gauge of macroeconomic confidence and risk appetite.
📈 Expansion vs. Contraction Theory
At the heart of this oscillator is a simple macroeconomic insight:
🟢 Copper performs well during periods of economic expansion and risk-on behavior (industrials, construction, manufacturing growth).
🔴 Gold performs well during periods of economic contraction , as a classic risk-off, capital-preserving asset.
By tracking the ratio of Copper to Gold prices over time and converting it into a Z-score , this tool shows when macro sentiment is statistically stretched toward greed or fear — based on how unusually strong one side of the ratio is relative to its historical average.
⚙️ How It Works
The script takes two user-defined tickers (default: Copper and Gold) and calculates their ratio.
It then applies Z-score normalization over a user-defined period (default: 200 bars).
A color gradient line is plotted:
🔴 Z < -2 = Extreme Fear
🟣 -2 to 0 = Mild Fear to Neutral
🔵 0 to 2 = Neutral to Greed
🟢 Z > 2 = Extreme Greed
Visual guides at ±1, ±2, ±3 standard deviations give immediate context.
Includes alert conditions when the Z-score crosses above +2 (Greed) or below -2 (Fear).
🔔 Alerts
“Z-Score has entered the Greed Zone ” when Z > 2
“Z-Score has entered the Fear Zone ” when Z < -2
These are designed to help catch macro sentiment extremes before or during large shifts in market behavior.
⚠️ Disclaimer
This indicator is a macro sentiment tool, not a direct trading signal. While the Copper/Gold ratio often reflects economic risk trends, correlation with risk assets (like Bitcoin or equities) is not guaranteed and may vary by cycle. Always use this indicator in conjunction with other tools and contextual analysis.
Sleepy Whale Index (SWI) – Whale Dormancy (No Glassnode)The Sleepy Whale Index (SWI) is a simple, real-time, on-chain-free gauge of Bitcoin whale dormancy — built 100 % with TradingView’s native data (no Glassnode, no API keys, no paid feeds).
It answers one question every BTC holder wants to know:
“Are the big whales still asleep… or are they starting to move?”
How the SWI Works (3 ingredients, equally weighted)
Volume Sleep Score – When daily volume is far below its 100-day average → whales are quiet → score rises
Volatility Sleep Score – 30-day price volatility near multi-month lows → sideways, boring market → score rises
Time-since-ATH Score – More than 6 months since the all-time high → whales have been sitting on coins for ages → score jumps
The three scores are averaged and rounded → final SWI value (0–200,000 range).
Interpretation (the higher = the sleepier)
Below 100,000 → Green background – Whales are active / market is lively
100,000 – 150,000 → Orange background – Moderate dormancy, caution zone
Above 150,000 → Red background – Extreme whale hibernation (historically strong buy-signal territory)
Features
Works only on BTC charts and daily/weekly/monthly timeframes (forces correct usage with big red warning)
Clean table in the top-right with current SWI value
Background coloring for instant visual context
Debug label on the last bar showing all components
Two built-in alerts:
• “SWI Changed” (any movement)
• “Whale Woke Up!” (SWI drops = potential selling pressure)
Perfect for swing traders, long-term holders, and anyone who wants a quick, no-nonsense “are the whales sleeping?” meter without paying for premium on-chain data.
كلاستر
Detailed Description – Fibonacci Cluster Zones + OB + FVG (AR34)
This script is an advanced multi-layer confluence system developed under the AR34 Trading Framework, designed to identify high-accuracy reversal zones, liquidity imbalances, institutional footprints, and trend direction using a unified analytic engine.
It combines Fibonacci mathematics, Smart Money Concepts, market structure, and smart trend signals to produce precise, reliable trading zones.
⸻
🔶 1 — Fibonacci Retracement Zones + Custom Smart Levels
The script calculates the highest and lowest prices over a selected lookback period to generate key Fibonacci retracement levels:
• 0.236
• 0.382
• 0.500
• 0.618
• 0.786
• 1.000
You can also add up to three custom Fibonacci levels (0.66, 0.707, 0.88 or any value you want).
✔ Each level is drawn as a horizontal line
✔ Optional label display for every level
✔ Color and activation fully customizable
These levels help identify pullback zones and potential turning points.
⸻
🔶 2 — True Fibonacci Cluster Detection
The script automatically identifies Cluster Zones, which occur when:
1. A Fibonacci level
2. An Order Block
3. A Fair Value Gap
all overlap in the same price range.
When all three conditions align, the script prints a CLUSTER marker in yellow.
These zones represent:
• High-probability reversal areas
• Strong institutional footprints
• Highly reactive price levels
⸻
🔶 3 — Automatic Order Block (OB) Detection
The indicator detects Order Blocks based on structural candle behavior:
• Bearish candle → followed by bullish
• Price interacts with a Fibonacci level
• Area aligns with institutional order flow
When detected, the OB is marked for easy visualization.
⸻
🔶 4 — Fair Value Gap (FVG) Mapping
The script scans for liquidity imbalances using the classic FVG logic:
• low > high
When an FVG exists, it draws a green liquidity box.
This highlights:
• Gaps left by institutional moves
• High-value return zones
• Efficient price retracement levels
⸻
🔶 5 — Fibonacci Extension Projections
The script calculates extension targets using:
• 1.272
• 1.618
• 2.000
These are drawn as dashed teal lines and help forecast:
• Breakout continuation targets
• Wave extension objectives
• Take-profit areas
⸻
🔶 6 — Smart Trend Signal (EMA-200 Engine)
Trend direction is determined using the EMA 200:
• Price above EMA → uptrend
• Price below EMA → downtrend
A green or red signal icon appears only when the trend flips, reducing noise and improving clarity.
This helps detect:
• Trend shifts early
• Cleaner entries and exits
• Trend-based filtering
⸻
🔶 7 — Four-EMA Multi-Trend System
The indicator includes optional visualization of four moving averages:
• EMA 20 → Short-term
• EMA 50 → Medium-term
• EMA 100 → Long-term
• EMA 200 → Major trend
All are fully customizable (length + color + visibility).
⸻
🔶 8 — Dynamic Negative Fibonacci Levels (Green Only)
When enabled, the script calculates deep retracement zones using:
• –0.23
• –0.75
• –1.20
These negative Fibonacci levels are drawn in green and help identify:
• Deep liquidity capture points
• Hidden structural supports
• Potential reversal bottoms
⸻
🔶 9 — Complete User Control
Users maintain full control over:
✔ Enabling/disabling OB detection
✔ Enabling/disabling FVG detection
✔ Activating custom Fibonacci levels
✔ Showing or hiding labels
✔ Selecting timeframe for Fib calculations
✔ Adjusting moving average parameters
✔ Activating dynamic Fibonacci
The script is designed to be flexible, scalable, and suitable for any trading style.
⸻
🎯 Summary
This indicator is a powerful all-in-one analytical system that merges:
✔ Fibonacci Mathematics
✔ Smart Money Concepts (OB + FVG)
✔ Trend-based filtering
✔ Institutional cluster detection
✔ Dynamic extensions + retracements
✔ Multi-EMA trend mapping
شرح السكربت بالتفصيل – Fibonacci Cluster Zones + OB + FVG (AR34)
هذا السكربت هو نظام تحليل احترافي متكامل من تطوير AR34 Framework يجمع بين أقوى أدوات التداول الحديثة في مؤشر واحد، ويهدف إلى كشف مناطق الانعكاس القوية، والتجميع الذكي، والاتجاه العام، باستخدام مزيج علمي من فيبوناتشي + السيولة + الاتجاه.
يعمل هذا المؤشر بأسلوب Confluence Trading بحيث يدمج عدة مدارس مختلفة في طبقة واحدة لتحديد مناطق الانعكاس والارتداد والاختراق بدقة عالية.
⸻
🔶 1 — مناطق فيبوناتشي (Retracement) + الكلاستر الذكي
يقوم المؤشر بحساب أعلى وأدنى سعر خلال عدد محدد من الشموع (Retracement Length) ثم يرسم مستويات فيبوناتشي الكلاسيكية:
• 0.236
• 0.382
• 0.500
• 0.618
• 0.786
• 1.000
مع إمكانية إضافة 3 مستويات خاصة من اختيارك (0.66 – 0.707 – 0.88 وغيرها).
✔️ كل مستوى يتم رسمه بخط مستقل
✔️ يظهر بجانبه رقم المستوى إذا تم تفعيل خيار Show Fib Labels
✔️ يمكن تغيير لونه، قيمته، وتفعيله حسب رغبتك
⸻
🔶 2 — كاشف الكلاستر الحقيقي (Cluster Detection)
الكلاستر يُعتبر أقوى مناطق الارتداد في التحليل الفني.
السكربت يحدد الكلاستر عندما تتداخل 3 عناصر مع مستوى فيبوناتشي:
1. مستوى فيبوناتشي مهم
2. Order Block
3. Fair Value Gap
إذا اجتمعت الثلاثة في نفس المنطقة، يتم رسمها باللون الأصفر وتظهر كلمة CLUSTER.
هذا يعطيك:
• أقوى منطقة انعكاس
• أعلى دقة في تحديد نقاط الدخول
• مناطق ذات سيولة مرتفعة
⸻
🔶 3 — دمج Order Blocks تلقائياً
يكتشف المؤشر الـ OB الحقيقي باستخدام شروط حركة الشموع:
• bearish candle → bullish candle
• السعر لمس مستوى فيبوناتشي
• منطقة محتملة لتجميع المؤسسات
إذا تحققت الشروط يظهر OB باللون الأحمر.
⸻
🔶 4 — دمج Fair Value Gaps (FVG)
يكتشف الفجوات السعرية بين الشمعتين الأولى والثالثة:
• low > high
ويقوم برسم بوكس أخضر حول الفجوة (FVG Zone).
يساعدك على معرفة:
• مناطق اختلال السيولة
• أهداف السعر القادمة
• مناطق “العودة” المحتملة
⸻
🔶 5 — امتدادات فيبوناتشي (Fibonacci Extensions)
يقوم بحساب الامتدادات من مستويات:
• 1.272
• 1.618
• 2.0
ويظهرها بخطوط متقطعة (Teal Color).
هذه المستويات مهمة لتوقع:
• أهداف اختراق
• مناطق TP
• امتداد موجات السعر
⸻
🔶 6 — إشارة الاتجاه الذكية (Smart Trend Engine – EMA200)
يعتمد على EMA 200 لتحديد الاتجاه العام:
• إذا السعر فوق EMA200 → اتجاه صاعد
• إذا السعر تحت EMA200 → اتجاه هابط
ويظهر المؤشر:
🟢 سهم أخضر عند تحول الاتجاه لصعود
🔴 سهم أحمر عند تحول الاتجاه لهبوط
ميزة التحول فقط عند تغيير الاتجاه (No Noise).
⸻
🔶 7 — أربع موفنقات احترافية (EMA 20 – 50 – 100 – 200)
المؤشر يعرض الموفنقات الأربعة الأساسية:
• EMA 20 → اتجاه قصير
• EMA 50 → متوسط
• EMA 100 → طويل
• EMA 200 → الاتجاه الرئيسي
مع إمكانية:
• تغيير اللون
• تغيير الطول
• إخفائها وإظهارها
⸻
🔶 8 — فيبوناتشي الديناميكي (Dynamic Green Fib)
ميزة قوية جداً تظهر فقط عند تفعيلها.
تحسب أعلى وأدنى سعر في Lookback Period ثم ترسم مستويات سلبية:
• –0.23
• –0.75
• –1.20
هذه المستويات تظهر كخطوط خضراء تحت السعر وتستخدم لـ:
• تحديد مناطق الانعكاس المخفية
• رصد الدعم الديناميكي
• اكتشاف القيعان المحتملة
⸻
🔶 9 — المرونة الكاملة للمستخدم
المؤشر يسمح لك التحكم بكل شيء:
✔️ تفعيل/إلغاء الـ OB
✔️ تفعيل/إلغاء الـ FVG
✔️ تفعيل/إلغاء مستويات فيبوناتشي
✔️ إضافة مستويات مخصصة
✔️ اختيار الفريم المستخدم
✔️ تغيير الألوان
✔️ التحكم في الاتجاه والموفنقات
⸻
🎯 الخلاصة
هذا السكربت يعمل كنظام تحليلي متكامل يجمع:
✔️ فيبوناتشي
✔️ السيولة المؤسسية (OB + FVG)
✔️ الاتجاه الذكي
✔️ الكلاستر الاحترافي
✔️ الموفنقات
✔️ فيبوناتشي الديناميكي
Net Liquidity (WALCL - TGA - ON RRP)//@version=5
indicator("Net Liquidity (WALCL - TGA - ON RRP)", overlay=false, timeframe="W")
a = request.security("FRED:WALCL", "W", close) // Fed total assets (millions)
b = request.security("FRED:WTREGEN", "W", close) // TGA (millions)
c = request.security("FRED:RRPONTSYD","W", close) // ON RRP (millions)
netliq = (a - b - c) / 1000.0 // billions
plot(netliq, color=color.new(color.blue, 0), linewidth=2)
SP500 Session Gap Fade StrategySummary in one paragraph
SPX Session Gap Fade is an intraday gap fade strategy for index futures, designed around regular cash sessions on five minute charts. It helps you participate only when there is a full overnight or pre session gap and a valid intraday session window, instead of trading every open. The original part is the gap distance engine which anchors both stop and optional target to the previous session reference close at a configurable flat time, so every trade’s risk scales with the actual gap size rather than a fixed tick stop.
Scope and intent
• Markets. Primarily index futures such as ES, NQ, YM, and liquid index CFDs that exhibit overnight gaps and regular cash hours.
• Timeframes. Intraday timeframes from one minute to fifteen minutes. Default usage is five minute bars.
• Default demo used in the publication. Symbol CME:ES1! on a five minute chart.
• Purpose. Provide a simple, transparent way to trade opening gaps with a session anchored risk model and forced flat exit so you are not holding into the last part of the session.
• Limits. This is a strategy. Orders are simulated on standard candles only.
Originality and usefulness
• Unique concept or fusion. The core novelty is the combination of a strict “full gap” entry condition with a session anchored reference close and a gap distance based TP and SL engine. The stop and optional target are symmetric multiples of the actual gap distance from the previous session’s flat close, rather than fixed ticks.
• Failure mode it addresses. Fixed sized stops do not scale when gaps are unusually small or unusually large, which can either under risk or over risk the account. The session flat logic also reduces the chance of holding residual positions into late session liquidity and news.
• Testability. All key pieces are explicit in the Inputs: session window, minutes before session end, whether to use gap exits, whether TP or SL are active, and whether to allow candle based closes and forced flat. You can toggle each component and see how it changes entries and exits.
• Portable yardstick. The main unit is the absolute price gap between the entry bar open and the previous session reference close. tp_mult and sl_mult are multiples of that gap, which makes the risk model portable across contracts and volatility regimes.
Method overview in plain language
The strategy first defines a trading session using exchange time, for example 08:30 to 15:30 for ES day hours. It also defines a “flat” time a fixed number of minutes before session end. At the flat bar, any open position is closed and the bar’s close price is stored as the reference close for the next session. Inside the session, the strategy looks for a full gap bar relative to the prior bar: a gap down where today’s high is below yesterday’s low, or a gap up where today’s low is above yesterday’s high. A full gap down generates a long entry; a full gap up generates a short entry. If the gap risk engine is enabled and a valid reference close exists, the strategy measures the distance between the entry bar open and that reference close. It then sets a stop and optional target as configurable multiples of that gap distance and manages them with strategy.exit. Additional exits can be triggered by a candle color flip or by the forced flat time.
Base measures
• Range basis. The main unit is the absolute difference between the current entry bar open and the stored reference close from the previous session flat bar. That value is used as a “gap unit” and scaled by tp_mult and sl_mult to build the target and stop.
Components
• Component one: Gap Direction. Detects full gap up or full gap down by comparing the current high and low to the previous bar’s high and low. Gap down signals a long fade, gap up signals a short fade. There is no smoothing; it is a strict structural condition.
• Component two: Session Window. Only allows entries when the current time is within the configured session window. It also defines a flat time before the session end where positions are forced flat and the reference close is updated.
• Component three: Gap Distance Risk Engine. Computes the absolute distance between the entry open and the stored reference close. The stop and optional target are placed as entry ± gap_distance × multiplier so that risk scales with gap size.
• Optional component: Candle Exit. If enabled, a bullish bar closes short positions and a bearish bar closes long positions, which can shorten holding time when price reverses quickly inside the session.
• Session windows. Session logic uses the exchange time of the chart symbol. When changing symbols or venues, verify that the session time string still matches the new instrument’s cash hours.
Fusion rule
All gates are hard conditions rather than weighted scores. A trade can only open if the session window is active and the full gap condition is true. The gap distance engine only activates if a valid reference close exists and use_gap_risk is on. TP and SL are controlled by separate booleans so you can use SL only, TP only, or both. Long and short are symmetric by construction: long trades fade full gap downs, short trades fade full gap ups with mirrored TP and SL logic.
Signal rule
• Long entry. Inside the active session, when the current bar shows a full gap down relative to the previous bar (current high below prior low), the strategy opens a long position. If the gap risk engine is active, it places a gap based stop below the entry and an optional target above it.
• Short entry. Inside the active session, when the current bar shows a full gap up relative to the previous bar (current low above prior high), the strategy opens a short position. If the gap risk engine is active, it places a gap based stop above the entry and an optional target below it.
• Forced flat. At the configured flat time before session end, any open position is closed and the close price of that bar becomes the new reference close for the following session.
• Candle based exit. If enabled, a bearish bar closes longs, and a bullish bar closes shorts, regardless of where TP or SL sit, as long as a position is open.
What you will see on the chart
• Markers on entry bars. Standard strategy entry markers labeled “long” and “short” on the gap bars where trades open.
• Exit markers. Standard exit markers on bars where either the gap stop or target are hit, or where a candle exit or forced flat close occurs. Exit IDs “long_gap” and “short_gap” label gap based exits.
• Reference levels. Horizontal lines for the current long TP, long SL, short TP, and short SL while a position is open and the gap engine is enabled. They update when a new trade opens and disappear when flat.
• Session background. This version does not add background shading for the session; session logic runs internally based on time.
• No on chart table. All decisions are visible through orders and exit levels. Use the Strategy Tester for performance metrics.
Inputs with guidance
Session Settings
• Trading session (sess). Session window in exchange time. Typical value uses the regular cash session for each contract, for example “0830-1530” for ES. Adjust if your broker or symbol uses different hours.
• Minutes before session end to force exit (flat_before_min). Minutes before the session end where positions are forced flat and the reference close is stored. Typical range is 15 to 120. Raising it closes trades earlier in the day; lowering it allows trades later in the session.
Gap Risk
• Enable gap based TP/SL (use_gap_risk). Master switch for the gap distance exit engine. Turning it off keeps entries and forced flat logic but removes automatic TP and SL placement.
• Use TP limit from gap (use_gap_tp). Enables gap based profit targets. Typical values are true for structured exits or false if you want to manage exits manually and only keep a stop.
• Use SL stop from gap (use_gap_sl). Enables gap based stop losses. This should normally remain true so that each trade has a defined initial risk in ticks.
• TP multiplier of gap distance (tp_mult). Multiplier applied to the gap distance for the target. Typical range is 0.5 to 2.0. Raising it places the target further away and reduces hit frequency.
• SL multiplier of gap distance (sl_mult). Multiplier applied to the gap distance for the stop. Typical range is 0.5 to 2.0. Raising it widens the stop and increases risk per trade; lowering it tightens the stop and may increase the number of small losses.
Exit Controls
• Exit with candle logic (use_candle_exit). If true, closes shorts on bullish candles and longs on bearish candles. Useful when you want to react to intraday reversal bars even if TP or SL have not been reached.
• Force flat before session end (use_forced_flat). If true, guarantees you are flat by the configured flat time and updates the reference close. Turn this off only if you understand the impact on overnight risk.
Filters
There is no separate trend or volatility filter in this version. All trades depend on the presence of a full gap bar inside the session. If you need extra filtering such as ATR, volume, or higher timeframe bias, they should be added explicitly and documented in your own fork.
Usage recipes
Intraday conservative gap fade
• Timeframe. Five minute chart on ES regular session.
• Gap risk. use_gap_risk = true, use_gap_tp = true, use_gap_sl = true.
• Multipliers. tp_mult around 0.7 to 1.0 and sl_mult around 1.0.
• Exits. use_candle_exit = false, use_forced_flat = true. Focus on the structured TP and SL around the gap.
Intraday aggressive gap fade
• Timeframe. Five minute chart.
• Gap risk. use_gap_risk = true, use_gap_tp = false, use_gap_sl = true.
• Multipliers. sl_mult around 0.7 to 1.0.
• Exits. use_candle_exit = true, use_forced_flat = true. Entries fade full gaps, stops are tight, and candle color flips flatten trades early.
Higher timeframe gap tests
• Timeframe. Fifteen minute or sixty minute charts on instruments with regular gaps.
• Gap risk. Keep use_gap_risk = true. Consider slightly higher sl_mult if gaps are structurally wider on the higher timeframe.
• Note. Expect fewer trades and be careful with sample size; multi year data is recommended.
Properties visible in this publication
• On average our risk for each position over the last 200 trades is 0.4% with a max intraday loss of 1.5% of the total equity in this case of 100k $ with 1 contract ES. For other assets, recalculations and customizations has to be applied.
• Initial capital. 100 000.
• Base currency. USD.
• Default order size method. Fixed with size 1 contract.
• Pyramiding. 0.
• Commission. Flat 2 USD per order in the Strategy Tester Properties. (2$ buying + 2$selling)
• Slippage. One tick in the Strategy Tester Properties.
• Process orders on close. ON.
Realism and responsible publication
• No performance claims are made. Past results do not guarantee future outcomes.
• Costs use a realistic flat commission and one tick of slippage per trade for ES class futures.
• Default sizing with one contract on a 100 000 reference account targets modest per trade risk. In practice, extreme slippage or gap through events can exceed this, so treat the one and a half percent risk target as a design goal, not a guarantee.
• All orders are simulated on standard candles. Shapes can move while a bar is forming and settle on bar close.
Honest limitations and failure modes
• Economic releases, thin liquidity, and limit conditions can break the assumptions behind the simple gap model and lead to slippage or skipped fills.
• Symbols with very frequent or very large gaps may require adjusted multipliers or alternative risk handling, especially in high volatility regimes.
• Very quiet periods without clean gaps will produce few or no trades. This is expected behavior, not a bug.
• Session windows follow the exchange time of the chart. Always confirm that the configured session matches the symbol.
• When both the stop and target lie inside the same bar’s range, the TradingView engine decides which is hit first based on its internal intrabar assumptions. Without bar magnifier, tie handling is approximate.
Legal
Education and research only. This strategy is not investment advice. You remain responsible for all trading decisions. Always test on historical data and in simulation with realistic costs before considering any live use.
PEG Ratio Screener ColumnCreating a column for PEG so I can easily rank stocks of interest based on whether their PEG is >1, 1, or <1.
PEGY Ratio (Robust)
Using the PEG but incorporating Dividends in order to find value investing opportunities by better understanding growth vs. forward P/E.
PEGY Ratio (Div Adj PEG)Identifying the PEGY (Dividend Adjusted PEG) to find value investment opportunities.
2 EMA Cross Signals – AL / SATIt gives signals at EMA crossovers. It gives buy and sell signals. You can change the EMA settings. It is very good for trend following.
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
📊 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






















