Toby Crabel's HisVolAs in Linda Raschke's Street smarts..... . This indicator shows the signals of Toby Crabel's Historical Volatility 6/100 strategy. The strategy assumes, that volatility contraction measured by two measures would give better results.
There is one other script that is a strategy , but it assumes that the signal requires both inside bar and narrowest range, what is not as in Linda Raschke's.
The strategy and what does the script do:
1) measures short-term unannualized volatility (by default six), long term uannualized volatility (by default 100), and measures the ratio of short volatility / long volatility.
2) checks if the current bar is an inside bar or has narrowest range out of last X bar (by default 4), or both,
3) puts an etiquette if short volatility / long volatility is equal to or smaller than 0,5 AND the day is inside bar, has narrowest range, or both.
Next day both buy-stop and sell-stop should be set. Buy-stop at the high and sell-stop at the low of the bar with etiquette.
This is by no means any financial advice, nor the historical results guarantee future gain.
Göstergeler ve stratejiler
Liquidity Gravity Engine [Pineify]```markdown
Liquidity Gravity Engine - Market Structure, Displacement, Liquidity Rails
Overview
Liquidity Gravity Engine is a market structure + liquidity visualization indicator designed to help you read flow , impulse , and liquidity magnets on any symbol and timeframe. Instead of relying on a single moving average, it builds a dynamic “flow ribbon” from confirmed swing structure, highlights displacement candles that create imbalance (FVG-style gaps), and projects unmitigated swing levels as liquidity rails that price often revisits.
Key Features
Liquid Flow Ribbon: a structure-based dynamic band that adapts to volatility.
Displacement Highlighting: flags momentum candles that expand beyond ATR and form an imbalance.
Liquidity Rails: extends unmitigated swing highs/lows as potential targets until swept.
Trend Context: displacement is filtered using the ribbon’s smoothed centerline.
How It Works
Market Structure (Swings) : swing highs/lows are detected using pivot logic over your “Structure Lookback”. Pivots become confirmed only after the lookback window completes, which means historical swing points can update until they are confirmed.
Flow Construction : the most recent confirmed swing high and swing low define a top and bottom boundary. Their midpoint is then smoothed with an EMA to create the “liquid” centerline.
Displacement + Imbalance : a candle is considered displacement when its range expands beyond ATR(14) × Displacement Factor and it creates a simple FVG-style gap (current low above the high two bars back for bullish, or current high below the low two bars back for bearish). The bar is then filtered by being on the correct side of the smoothed flow center.
Liquidity Rails : each new confirmed swing high/low can become a dotted rail. Rails extend forward and are removed once price sweeps beyond the level (mitigation), keeping the chart focused on active liquidity.
Trading Ideas and Insights
Use the ribbon as context : bias is stronger when price holds one side of the flow centerline.
Treat displacement markers as impulse confirmation : they often appear at breakout moments or at the start of expansions.
Use liquidity rails as magnets : unmitigated swing highs/lows can act as targets for continuation or mean-reversion moves.
Combine structure + displacement: a sweep into a rail followed by an opposite displacement can hint at a reversal attempt.
How Multiple Components Work Together
This indicator is intentionally built as a single liquidity-driven workflow:
Swings define structure.
Structure defines the flow ribbon (trend/volatility context).
The ribbon filters displacement so you see momentum that aligns with flow.
Liquidity rails provide objective target zones derived from the same swing structure.
The result is a cohesive view of market structure flow, institutional-style displacement, and liquidity targets without stacking multiple separate indicators.
Unique Aspects
Structure-first ribbon: the band is anchored to confirmed swing points, not just a price average.
Imbalance-aware displacement: requires both range expansion and a gap-style condition, reducing generic “big candle” noise.
Self-cleaning liquidity rails: mitigated levels are removed to keep the chart readable.
How to Use
Start with defaults on a clean chart.
Identify the flow: price above the smoothed centerline favors bullish flow; below favors bearish flow.
Watch for displacement diamonds (“D”): they often validate a push away from structure and can mark the start of a leg.
Plan around rails: treat dotted lines as potential objectives and areas where reactions/sweeps can occur.
Customization
Structure Lookback : smaller values = more sensitive swings; larger values = cleaner, slower structure.
Displacement Factor : higher values = fewer, stronger displacement bars; lower values = more signals.
Show Liquidity Rails + Liquidity Lookback : control whether rails are plotted and how active levels are emphasized.
Visuals : adjust bullish/bearish flow colors and liquidity line styling for your chart theme.
Conclusion
Liquidity Gravity Engine helps you map market structure, highlight displacement and imbalance (FVG-style) momentum, and visualize liquidity targets with rails that stay relevant until swept. Use it for trend context, breakout confirmation, and liquidity-based trade planning on forex, crypto, stocks, and indices.
Enhanced ATR SupertrendEnhanced ATR Supertrend - Mathematically Sound Trend Following Indicator
OVERVIEW
This is a premium version of the classic Supertrend indicator, built with mathematical rigor and enhanced features for serious traders. Unlike basic implementations, this version offers proper band trailing logic, adaptive volatility modes, and multiple ATR calculation methods.
HOW IT WORKS
The Enhanced ATR Supertrend calculates dynamic support and resistance bands based on the Average True Range (ATR). The core principle is simple but powerful:
ATR Calculation: Measures market volatility using true range (the greatest of: high-low, high-previous close, or low-previous close)
Band Construction: Creates upper and lower bands by adding/subtracting ATR × Multiplier from the HL2 (high+low average)
Trailing Logic:
Upper band can ONLY move down or stay flat (never up) during downtrends
Lower band can ONLY move up or stay flat (never down) during uptrends
This prevents premature trend reversals and whipsaws
Trend Determination:
BULLISH when price closes above the upper band
BEARISH when price closes below the lower band
Line colour changes reflect current trend state
WHY IT'S BETTER
Proper Mathematics: Correct band trailing prevents the "flickering" seen in poorly coded versions
Adaptive Volatility: Optional mode adjusts multiplier based on current vs average volatility - tightens in chaos, widens in calm markets
Multiple ATR Methods: Choose between RMA (default), SMA, EMA, or WMA smoothing
Clean Visual Design: Professional presentation with optional dashboard showing real-time metrics
OSCILLATOR MODE - SPOTTING DOUBLE TOPS/BOTTOMS
When used as an oscillator in the lower pane (remove overlay), the Supertrend's trend changes can reveal powerful reversal patterns:
Double Bottoms: When the indicator flips bullish twice at similar price levels, it often signals strong support and potential reversal zones
Double Tops: When the indicator flips bearish twice at similar levels, it identifies resistance and potential breakdown zones
The step-like visualization makes these patterns easier to spot than traditional price action
Open Equal to Low Alert//@version=5
indicator("Open Equal to Low Alert", overlay=true)
// Condition: Open price equals the Low price of the current bar
open_equal_low = open == low
// Plot a small shape on the chart when the condition is met (optional, for visual confirmation)
plotshape(open_equal_low, title="Open == Low", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.small)
// Create an alert condition that can be selected in the Alert menu
alertcondition(open_equal_low, title="Open is Equal to Low", message="The Open price is equal to the Low price for {{ticker}} on the {{interval}} timeframe.")
KCP MACD Pro [Dr. K. C. Prakash]📊 KCP MACD Pro
KCP MACD Pro is a clean, low-noise momentum indicator designed for clear trend and momentum analysis without clutter. Unlike the classical MACD, this version is built without EMA, using Simple Moving Averages (SMA) to provide smoother, more stable signals, making it ideal for training, classroom use, and disciplined trading.
🔹 Core Concept
The indicator measures momentum strength and direction by calculating the difference between:
a Fast SMA and a Slow SMA (MACD line), and
a Signal SMA applied to the MACD line.
The result is a MACD-style oscillator that reacts less aggressively than EMA-based MACD, helping traders focus on structure and trend quality rather than short-term noise.
🔹 Components Explained
MACD Line (SMA-based):
Shows the underlying momentum by comparing short-term and long-term price averages.
Signal Line (SMA):
Smooths the MACD line to highlight momentum shifts.
Histogram:
Displays the distance between the MACD and Signal lines, visually representing momentum strength.
Zero Line:
Acts as a trend equilibrium level:
Above zero → bullish momentum bias
Below zero → bearish momentum bias
🔹 How to Use
Trend Identification:
Stay aligned with the market bias using the zero line.
Momentum Analysis:
Expanding histogram bars indicate strengthening momentum; contracting bars suggest weakening momentum.
Manual Trade Decisions:
Designed intentionally without buy/sell arrows, encouraging traders to combine it with price action, support–resistance, or market structure.
Stockbee 9 million EP (Up or Down)Stockbee 9 million EP showing dot under candlestick for easy identification.
Time period relation testerWith this script you can define a time period (default Comex) and compare its relation to a following time period (default Prime NY session) and lookback and get a statistic on how often the trend reverses from the first to the second time period.
Athanor - Context Execution EngineAthanor is a discretionary-to-mechanical execution indicator designed for traders who want to apply market judgment once and then remove themselves entirely from the trade.
Rather than generating signals or predictions, Athanor acts as a controlled execution furnace: you define the trade context (entry, invalidation, and target), and the system executes that decision exactly as specified — without interference, re-entries, or emotional overrides.
This makes Athanor especially suited for:
Prop firm evaluations
Set-and-forget trading
Overnight or “sleep-safe” execution
Traders who want discipline enforced after analysis is complete
Key Features
• Supports up to four independent trade scenarios (e.g. range fades and breakouts)
• One-and-done execution — first fill locks all others (OCO behavior)
• Daily arming logic prevents historical or stale triggers
• Time-based expiry ensures trades only execute while context is valid
• Optional global cancel time for session-based trading
• Webhook alerts compatible with automation services (e.g. TradersPost)
What Athanor Is Not
Athanor does not:
Predict direction
Trail stops
Scale positions
Re-enter after a stop
Override your decisions
It executes only what you explicitly authorize.
Intended Workflow
Analyze the market and identify a complete, self-contained trade idea
Define entry, stop, and target levels
Arm Athanor for the current session
Walk away and let the trade resolve
If price reaches your level, the trade executes.
If not, the idea expires without consequence.
Philosophy
Athanor is built on the principle that judgment and execution should not occur at the same time.
By separating analysis from execution, traders reduce emotional interference, over-management, and rule-breaking — especially during high-pressure environments such as prop firm evaluations.
Google Trends: Dogecoin (Cryptollica) Google Trends: Dogecoin (Cryptollica)
2013-2026
Keyword: Dogecoin
Crosses Open Daily (shock points OD)It is an indicator that works to alert you when an asset, during the day, crosses or approaches the daily open again.
Liquidity Trap Strategy - ATR OptimizedLiquidity Trap Strategy – Optimized Version
1. Overview
The Liquidity Trap Strategy is a high-probability price action trading system designed to exploit “trapped buyers or sellers” around key levels from the previous trading day.
Markets: Works on any market (Forex, Crypto, Futures, Indices, Stocks)
Timeframes: Designed for 15-minute (15m) and 1-hour (1H) charts
Trading Style: “Hunter” style — trades may not happen every day, but setups are high-probability
Trade Frequency: Only first trade per day is taken for simplicity and high quality
2. Key Components
a) Daily Levels
Previous Day High (PDH) and Previous Day Low (PDL) are automatically calculated using the prior day’s bar.
These are drawn as anchored horizontal lines, extending to the current day.
PDH/PDL act as key support/resistance zones — areas where liquidity is often trapped.
b) Trap Concept
The strategy is based on the “liquidity trap” principle:
Buyer Trap (Short Entry):
Price breaks above the previous day high (PDH) → buyers think price will continue higher.
Price reverses immediately below PDH, trapping aggressive buyers above the key level.
This creates selling pressure, giving an opportunity to enter short.
Seller Trap (Long Entry):
Price breaks below the previous day low (PDL) → sellers think price will continue lower.
Price reverses immediately above PDL, trapping aggressive sellers below the key level.
This creates buying pressure, giving an opportunity to enter long.
The key idea: trapped traders cause the market to move in the opposite direction of the breakout, creating high-probability moves.
c) Trade Execution Logic
Buyer Trap / Short Entry:
Condition: high > PDH AND close < PDH AND no trade taken yet today
Entry: Short at the close of the trap candle
Stop Loss: ATR-based above the trap candle high to avoid minor wick stops
Take Profit: 2:1 Risk-to-Reward ratio
Seller Trap / Long Entry:
Condition: low < PDL AND close > PDL AND no trade taken yet today
Entry: Long at the close of the trap candle
Stop Loss: ATR-based below the trap candle low
Take Profit: 2:1 Risk-to-Reward ratio
Only the first trap trade of the day is allowed to avoid overtrading.
d) Risk Management
Stop-Loss (SL):
ATR-based to account for market volatility
Ensures the trade survives minor wick sweeps without being stopped out prematurely
Take-Profit (TP):
Fixed 2:1 R:R relative to SL
Ensures each winning trade outweighs potential losses
Trade Frequency:
Only first trade per day is allowed, making it highly selective and reducing noise
3. Visual Features
PDH/PDL Lines: Anchored to previous day, extend into current day, color-coded:
PDH → Green
PDL → Red
Trade Labels: Placed on the trap candle:
Short → Red label “Short”
Long → Green label “Long”
The visual markers make it easy to identify exactly where the trap occurred and the trade was triggered.
4. How the Strategy Works – Step by Step
Example for Short (Buyer Trap):
Market opens, PDH/PDL from yesterday are drawn.
Price spikes above PDH → some buyers enter expecting breakout continuation.
Price immediately closes back below PDH, trapping buyers.
The strategy enters short at the close of the reversal candle.
SL: placed above the trap candle using ATR to give room
TP: calculated as 2x the risk (distance from entry to SL)
Trade executes — first trade of the day. Any further trap signals today are ignored.
Example for Long (Seller Trap):
Price drops below PDL → some sellers enter.
Price immediately closes back above PDL, trapping sellers.
Strategy enters long at the close of the reversal candle.
SL: below trap candle using ATR
TP: 2:1 R:R
Trade executes — only first trade of the day.
5. Why This Strategy Works
Exploits liquidity zones: Markets often hunt stops above PDH or below PDL.
High-probability reversals: Trapped traders create strong counter moves.
ATR SL: avoids being stopped by minor market noise or wick spikes.
Selective trading: Only first trade per day → reduces overtrading and noise.
Clear visual markers: Makes manual observation and confirmation easy.
6. Key Tips for Traders
Best on high-volume instruments like Forex majors, indices, or crypto pairs with decent liquidity.
Works well on 15m and 1H charts — 15m allows quicker signals, 1H filters noise.
Avoid trading around major news releases — traps can behave differently during high volatility events.
Always backtest and use the ATR SL — never reduce SL too much, otherwise stops will trigger before the real move.
✅ Summary:
The Liquidity Trap Strategy identifies trapped buyers/sellers using previous day highs/lows.
It uses ATR-adapted stops and 2:1 R:R TP.
Only first trade per day is executed, reducing false signals.
Anchored PDH/PDL lines and labels make trade opportunities clear.
This system is low-frequency, high-probability, focusing on trading smart rather than frequently.
Big Trades [Volume Anomalies] (Enhanced)The script is a **volume-anomaly “big trades” detector** for futures that tries to (1) split each candle’s volume into a **buy-pressure** and **sell-pressure** estimate, (2) flag **statistically extreme** candles (tiers), and (3) optionally label those extremes as **initiative (follow-through)** vs **absorbed (no follow-through)** using a forward-style confirmation window.
Here’s what it does, piece by piece.
---
## 1) What it’s trying to detect
It’s not true “whale prints” or real bid/ask delta. It detects:
* **unusually large participation** (volume anomaly)
* with a **directional guess** (buy-ish vs sell-ish)
* and then checks whether price **continued** after that anomaly
So it’s: **“big participation + did it work?”**
---
## 2) The “buy vs sell volume” estimate
For each candle, it builds a **weight** for buy and sell pressure:
* **close location within the candle**
* close near high → more buy weight
* close near low → more sell weight
* **body direction (close–open)**
* bullish body adds buy boost
* bearish body adds sell boost
Then it computes:
* `raw_buy = volume * buy_weight`
* `raw_sell = volume * sell_weight`
This is an **OHLC-based proxy** for pressure, not real aggressor volume.
---
## 3) Normalization (makes it behave across sessions)
If enabled, it divides by ATR:
* `norm_buy = raw_buy / ATR`
* `norm_sell = raw_sell / ATR`
This helps a lot on futures because volume/volatility regimes differ between Asia/London/NY.
---
## 4) Statistical anomaly detection (z-score logic)
It calculates “what’s normal” using the last `lookback` bars, but **uses ` `** so the current bar doesn’t contaminate the stats (reduces flicker):
* `avg_buy = sma(norm_buy, lookback) `
* `std_buy = stdev(norm_buy, lookback) `
(and same for sell)
Then it computes **z-scores**:
* `z_buy = (norm_buy - avg_buy) / std_buy`
* `z_sell = (norm_sell - avg_sell) / std_sell`
If z-score crosses thresholds, it triggers tiers:
* Tier 1: `sigma`
* Tier 2: `sigma + tier_step1`
* Tier 3: `sigma + tier_step2`
So **Tier 3 = “big bubble”**.
---
## 5) Optional VWAP bias filter
It computes VWAP correctly as:
* `vwapv = ta.vwap(hlc3)`
If enabled:
* buys only when `close >= vwap`
* sells only when `close <= vwap`
This is just a **trend/bias filter** to reduce counter-trend bubbles.
---
## 6) Plotting (how bubbles appear)
It places markers at:
* buys around `(close+low)/2` (lower-ish)
* sells around `(close+high)/2` (upper-ish)
And draws:
* small/medium/large circles (depending on tier)
* with optional INIT/ABS overlays (explained next)
---
## 7) “Initiative vs Absorbed” classification (the smart part)
Because Pine can’t see the future on the same bar, your script does a **delayed evaluation**:
* It waits `N = confirm_bars`
* Looks at what happened from the signal bar to the current bar
* Decides if price moved far enough in the intended direction
It uses:
* `hh_window = highest(high, N+1)`
* `ll_window = lowest(low, N+1)`
(these cover the last N+1 bars: from signal bar to now)
Then it measures follow-through:
* For a buy signal N bars ago:
`buy_move = hh_window - high `
* For a sell signal N bars ago:
`sell_move = low - ll_window`
It compares to an ATR-based threshold anchored to the signal bar:
* `thr_move_sig = ATR * move_mult_atr`
If move > threshold → **INIT**
Else → **ABS**
Then it **plots back onto the original signal bar** using `offset=-N` so it visually marks the candle that caused it.
To make it obvious:
* **INIT** = circle
* **ABS** = X
This part is “accurate” in the sense that it’s purely **price-outcome based**.
---
## 8) Labels (optional)
If enabled, it prints labels on those large signals with:
* INIT/ABS
* the z-score at the signal bar
* and a “delta proxy” (`norm_buy - norm_sell`), not true delta
---
## In one sentence
The script flags **statistically extreme volume-pressure candles** (buy/sell proxy), and then classifies those extremes as **worked (initiative)** or **failed (absorbed)** based on **subsequent price movement** within `confirm_bars`.
5MA + TrendMagic + Disparity Scalping + Volume Spikes5MA + Trend Magic + Disparity Scalping + Volume Spikes
This indicator is a multi-layer scalping and intraday framework designed to combine trend context, volatility expansion, mean-reversion opportunities, and volume-based turning points into a single chart.
It is especially effective for fast markets such as GOLD (XAUUSD) and lower timeframes.
Key Components
1. 5 Moving Average Structure
EMA 9 / 20 / 50 / 100 / 200
Provides instant trend direction, compression, and dynamic support/resistance
Useful for filtering scalp signals in trend vs range conditions
2. Trend Magic (CCI + ATR Based)
Modified Trend Magic line using CCI direction and ATR trailing logic
Clearly defines bullish / bearish bias
Acts as a trend filter to avoid counter-trend scalps during strong moves
3. Ultra Fast Disparity Scalper
Detects short-term overextension from EMA9 and EMA20
Uses:
Price–EMA disparity
RSI overbought / oversold
RVI momentum prediction
Designed for quick mean-reversion scalps, not trend entries
Includes a simple overheating filter that grays out signals during extreme conditions
4. GOLD Volatility Expansion Detector
Specialized logic for explosive moves using:
ATR expansion
Bollinger Band breakouts
Historical Volatility vs Realized Volatility divergence
Generates signals only when volatility regime shifts, not during noise
Ideal for catching impulsive breakout phases
5. Volume Spike Reversal Signals
Detects abnormal volume spikes relative to volume SMA
Optional filters:
Valid swing high / low only
Hammer / Shooting Star candles
Same candle color confirmation
Session-based filtering
Designed to highlight potential exhaustion and reaction points
Signals are plotted on the previous bar for accuracy
How to Use
Use EMA structure + Trend Magic to define market context
Take Disparity Scalping signals only when price is stretched and momentum weakens
Use Volume Spikes to confirm exhaustion or reaction zones
Use GOLD volatility signals to stay with expansion moves, not fade them
This indicator is not a single-entry system, but a decision-support tool that helps align trend, momentum, volatility, and volume for high-probability intraday trading.5MA + Trend Magic + Disparity Scalping + Volume Spikes
This indicator is a multi-layer scalping and intraday framework designed to combine trend context, volatility expansion, mean-reversion opportunities, and volume-based turning points into a single chart.
It is especially effective for fast markets such as GOLD (XAUUSD) and lower timeframes.
Key Components
1. 5 Moving Average Structure
EMA 9 / 20 / 50 / 100 / 200
Provides instant trend direction, compression, and dynamic support/resistance
Useful for filtering scalp signals in trend vs range conditions
2. Trend Magic (CCI + ATR Based)
Modified Trend Magic line using CCI direction and ATR trailing logic
Clearly defines bullish / bearish bias
Acts as a trend filter to avoid counter-trend scalps during strong moves
3. Ultra Fast Disparity Scalper
Detects short-term overextension from EMA9 and EMA20
Uses:
Price–EMA disparity
RSI overbought / oversold
RVI momentum prediction
Designed for quick mean-reversion scalps, not trend entries
Includes a simple overheating filter that grays out signals during extreme conditions
4. GOLD Volatility Expansion Detector
Specialized logic for explosive moves using:
ATR expansion
Bollinger Band breakouts
Historical Volatility vs Realized Volatility divergence
Generates signals only when volatility regime shifts, not during noise
Ideal for catching impulsive breakout phases
5. Volume Spike Reversal Signals
Detects abnormal volume spikes relative to volume SMA
Optional filters:
Valid swing high / low only
Hammer / Shooting Star candles
Same candle color confirmation
Session-based filtering
Designed to highlight potential exhaustion and reaction points
Signals are plotted on the previous bar for accuracy
How to Use
Use EMA structure + Trend Magic to define market context
Take Disparity Scalping signals only when price is stretched and momentum weakens
Use Volume Spikes to confirm exhaustion or reaction zones
Use GOLD volatility signals to stay with expansion moves, not fade them
This indicator is not a single-entry system, but a decision-support tool that helps align trend, momentum, volatility, and volume for high-probability intraday trading.
DollarVolCalculates dollar volume and projected volume.
Highest volume ever and highest volume in a year
Average CandleAverage Candle is a custom indicator that plots a synthetic candle built from the average open, high, low, and close of the last X periods, providing a smoother view of price behavior and trend. It helps filter noise by summarizing recent market action into a single, representative **candle** per bar.
1. Introduction
Average Candle calculates the simple moving average of each OHLC component (Open, High, Low, Close) over a user-defined lookback period and renders that as a separate candle on the chart.
This creates a smoothed representation of price that is less affected by short-term volatility while still respecting the overall structure of the market.
By visualizing these averaged candles, traders can better identify underlying direction and momentum without removing the original price bars.
2. Key features
- Uses the average of the last X opens, highs, lows, and closes to build a synthetic candle for each bar, allowing consistent smoothing across all OHLC components.
- Colors the Average Candle bullish or bearish based on whether the average close is above or below the average open, making directional bias visually clear at a glance.
- Can be overlaid on the main chart to compare raw price candles with their averaged counterpart, helping traders distinguish meaningful swings from short-term noise.
3. How to use
- Add the indicator to your chart, choose the desired lookback length (X periods), and tune it according to your trading timeframe and style—for example, shorter lengths for more responsive signals and longer lengths for smoother trends.
- Use the Average Candle to confirm trend direction, detect potential reversals, or validate entries and exits by checking whether price action aligns with the smoothed average structure.
- Combine it with other tools such as support/resistance, volume, or momentum indicators, ensuring it is used as a complementary visualization aid rather than a standalone signal generator.
Market Health Indicator# Market Health Indicator - Documentation
## Overview
The Market Health Indicator is a Pine Script technical analysis tool designed for TradingView that evaluates overall market conditions by analyzing the relationship between price and three Exponential Moving Averages (EMAs), as well as the relationships between the EMAs themselves. The indicator provides a quantitative score and actionable investment recommendations.
---
## Purpose
This indicator helps traders and investors:
- Assess the overall health and trend strength of a market or security
- Make informed decisions about position sizing
- Identify bullish, bearish, or neutral market conditions
- Determine when to increase, reduce, or exit positions
---
## Scoring Methodology
### Scoring System
The indicator evaluates **6 conditions**, each contributing either **+1** or **-1** to the total score:
#### Price vs EMA Conditions (3 conditions)
1. **Price vs EMA 21**
- Price > EMA 21 → +1
- Price < EMA 21 → -1
2. **Price vs EMA 50**
- Price > EMA 50 → +1
- Price < EMA 50 → -1
3. **Price vs EMA 100**
- Price > EMA 100 → +1
- Price < EMA 100 → -1
#### EMA Relationship Conditions (3 conditions)
4. **EMA 21 vs EMA 100**
- EMA 21 > EMA 100 → +1
- EMA 21 < EMA 100 → -1
5. **EMA 21 vs EMA 50**
- EMA 21 > EMA 50 → +1
- EMA 21 < EMA 50 → -1
6. **EMA 50 vs EMA 100**
- EMA 50 > EMA 100 → +1
- EMA 50 < EMA 100 → -1
### Total Score Range
- **Minimum Score**: -6 (all conditions bearish)
- **Maximum Score**: +6 (all conditions bullish)
---
## Market Health Status
Based on the total score, the indicator assigns one of five market health statuses:
| Score Range | Status | Interpretation |
|-------------|--------|----------------|
| 4 to 6 | **Strong Bullish** | All or most conditions favor upward momentum |
| 2 to 3 | **Bullish** | Majority of conditions are positive |
| -1 to 1 | **Neutral** | Mixed signals, no clear directional bias |
| -3 to -2 | **Bearish** | Majority of conditions are negative |
| -6 to -4 | **Strong Bearish** | All or most conditions favor downward momentum |
---
## Investment Level Recommendations
The indicator provides position sizing recommendations based on the score:
| Score Range | Investment Level | Action |
|-------------|-----------------|--------|
| 4 to 6 | **100% Invested** | Maximum exposure - strong bullish conditions |
| 2 to 3 | **75% Invested** | High exposure - moderately bullish conditions |
| 0 to 1 | **50% Invested** | Moderate exposure - neutral to slightly positive conditions |
| Below 0 | **Exit Weak Stocks** | Reduce exposure - bearish conditions, exit underperforming positions |
---
## Installation & Setup
### Installation Steps
1. Open TradingView and navigate to any chart
2. Click on **Pine Editor** at the bottom of the screen
3. Copy the entire Pine Script code
4. Paste it into the Pine Editor
5. Click **"Add to Chart"**
### Configuration Options
The indicator includes two customizable settings accessible via the settings gear icon:
#### 1. Table Position
Choose where the indicator table appears on your chart:
- **Top**: top_left, top_center, top_right
- **Middle**: middle_left, middle_center, middle_right
- **Bottom**: bottom_left, bottom_center, bottom_right
**Default**: top_right
#### 2. Table Size
Adjust the text size of the indicator table:
- **tiny**: Smallest text size
- **small**: Small text size
- **normal**: Standard text size (default)
- **large**: Large text size
- **huge**: Largest text size
**Default**: normal
---
## Understanding the Display
### Table Components
The indicator displays a table with the following rows:
1. **Header Row (Colored)**
- Left cell: Market Health status
- Right cell: Current score out of 6
- Color indicates market condition (green = bullish, yellow = neutral, red = bearish)
2. **Investment Level Row (Blue)**
- Shows recommended position sizing based on current score
- Helps with portfolio management decisions
3. **Column Headers (Gray)**
- "Condition" - describes each evaluation criteria
- "Score" - shows the +1 or -1 value
4. **Condition Rows (6 rows)**
- Each row shows one of the 6 scoring conditions
- Left column: condition description
- Right column: score value (+1 in green or -1 in red)
---
## Interpretation Guidelines
### Strong Bullish (Score 4-6)
**Characteristics:**
- Price trading above all major EMAs
- EMAs aligned in bullish order (21 > 50 > 100)
- Strong upward momentum
**Action:**
- Maintain full exposure (100% invested)
- Consider adding to winning positions
- Look for pullbacks as buying opportunities
### Bullish (Score 2-3)
**Characteristics:**
- Price above most EMAs
- Generally positive EMA alignment
- Moderate upward trend
**Action:**
- Maintain high exposure (75% invested)
- Hold existing positions
- Be selective with new entries
### Neutral (Score -1 to 1)
**Characteristics:**
- Mixed signals from price and EMAs
- No clear trend direction
- Market indecision
**Action:**
- Reduce exposure to 50%
- Wait for clearer signals
- Focus on risk management
- Consider range-bound strategies
### Bearish (Score -2 to -3)
**Characteristics:**
- Price below most EMAs
- Generally negative EMA alignment
- Moderate downward trend
**Action:**
- Exit weak positions
- Reduce overall exposure
- Raise cash levels
- Protect capital
### Strong Bearish (Score -4 to -6)
**Characteristics:**
- Price trading below all major EMAs
- EMAs aligned in bearish order (21 < 50 < 100)
- Strong downward momentum
**Action:**
- Exit weak stocks immediately
- Minimal to no long exposure
- Preserve capital
- Wait for market conditions to improve
---
## Best Practices
### Usage Tips
1. **Timeframe Selection**
- Works on all timeframes
- Higher timeframes (daily, weekly) provide more reliable signals
- Lower timeframes (intraday) may generate more frequent signals but with higher noise
2. **Combine with Other Analysis**
- Use as a component of a comprehensive trading strategy
- Complement with support/resistance levels
- Consider volume and other momentum indicators
- Factor in fundamental analysis for longer-term positions
3. **Position Sizing**
- Treat investment level recommendations as guidelines, not rigid rules
- Adjust based on your risk tolerance and account size
- Consider your overall portfolio allocation
4. **Risk Management**
- Always use stop losses regardless of indicator reading
- Don't ignore risk management during "Strong Bullish" periods
- The indicator shows trend, not specific entry/exit points
### Limitations
- **Lagging Nature**: EMAs are lagging indicators, so signals may come after trend changes have begun
- **Whipsaw Risk**: In choppy, sideways markets, the indicator may generate mixed signals
- **Not a Standalone System**: Should be used as part of a broader trading strategy
- **No Predictive Power**: Shows current conditions, not future direction
- **Market Context**: May need adjustment during extreme market conditions or unusual volatility
---
## Technical Details
### EMA Calculations
The indicator uses three standard Exponential Moving Averages:
- **EMA 21**: Short-term trend (approximately 1 month of trading days)
- **EMA 50**: Medium-term trend (approximately 2.5 months)
- **EMA 100**: Long-term trend (approximately 5 months)
EMAs give more weight to recent prices compared to Simple Moving Averages (SMAs), making them more responsive to price changes.
### Update Frequency
- The indicator recalculates on every bar close
- Real-time updates during the current bar formation
- Table displays the most recent completed bar data
### Performance
- Lightweight indicator with minimal computational overhead
- Suitable for use with multiple charts simultaneously
- No historical data storage required beyond standard EMA calculations
---
## Frequently Asked Questions
**Q: Can I change the EMA periods (21, 50, 100)?**
A: The current version uses fixed EMA periods. Modifying these would require editing the Pine Script code directly.
**Q: Does this indicator work on all assets?**
A: Yes, it works on stocks, forex, cryptocurrencies, commodities, and indices - any asset with price data.
**Q: Can I use this for day trading?**
A: Yes, but it's designed for swing trading and position trading. For day trading, consider using lower timeframes and being aware of increased signal noise.
**Q: What if the score keeps changing?**
A: Frequent score changes indicate a choppy or transitional market. Consider waiting for a more stable reading before taking action.
**Q: Should I exit ALL positions when score is negative?**
A: The recommendation is to "Exit Weak Stocks" - focus on underperforming positions. Strong stocks may still be held with appropriate stop losses.
**Q: Can I get alerts based on score changes?**
A: The current version doesn't include alerts, but this functionality could be added with Pine Script modifications.
---
## Version History
**Version 1.0**
- Initial release
- 6-condition scoring system
- Investment level recommendations
- Customizable table position and size
- Overlay on main chart
---
## Support & Feedback
For questions, suggestions, or issues with the indicator:
- Review this documentation thoroughly
- Test the indicator on historical data before live trading
- Adjust settings to match your chart layout preferences
- Always paper trade new strategies before risking real capital
---
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, trading advice, or any other type of advice. Trading and investing involve substantial risk of loss. Past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before making investment decisions.
Gold/Silver Ratio with Supply ZonesGold/Silver Ratio with Supply Zones
Overview
Professional-grade indicator that tracks the Gold/Silver Ratio in real-time
Identifies potential market imbalances and rotation opportunities between precious metals
Features customizable threshold bands, moving averages, and automated trading signals
Built on Pine Script v6 for maximum stability and performance
Key Features
Real-Time Ratio Calculation : Automatically calculates Gold/Silver ratio using OANDA:XAUUSD and OANDA:XAGUSD price feeds
Dynamic Threshold Zones : Visual bands showing when silver or gold may be undervalued relative to each other
Moving Average Overlay : 20-period SMA to identify trend direction and momentum
Automated Buy Signals : Triangle markers appear when ratio reaches extreme levels
Live Information Table : Displays current ratio, moving average, individual metal prices, and market interpretation
Custom Alerts : Set notifications when ratio crosses your defined thresholds
Color-Coded Zones : Green zones indicate gold undervaluation, red zones indicate silver undervaluation
Trading Applications
Mean Reversion Strategy : Enter silver positions when ratio exceeds 90, enter gold when ratio falls below 70
Rotation Trading : Switch between metals based on relative value signals
Portfolio Rebalancing : Identify optimal times to adjust precious metals allocation
Divergence Analysis : Compare ratio behavior against individual metal price action
Default Settings
High Threshold : 90.0 (Silver undervalued zone)
Low Threshold : 70.0 (Gold undervalued zone)
Moving Average : 20-period SMA
Historical Reference : 80:1 ratio marked as long-term mean
How to Interpret
Ratio Above 90 : Silver is undervalued relative to gold - consider increasing silver exposure
Ratio Below 70 : Gold is undervalued relative to silver - consider increasing gold exposure
Ratio Between 70-90 : Neutral range - no clear relative value advantage
Rising Ratio : Gold outperforming silver
Falling Ratio : Silver outperforming gold
Signal Logic
Green Triangle (Bottom) : Ratio crosses above high threshold → Buy Silver Signal
Red Triangle (Top) : Ratio crosses below low threshold → Buy Gold Signal
MA Crossovers : Use 20-period MA for trend confirmation and entry timing
Visual Elements
Blue Line : Current gold/silver ratio value
Orange Line : 20-period moving average smoothing
Red Shaded Zone : Area where gold is relatively expensive
Green Shaded Zone : Area where gold is relatively cheap
Gray Dotted Line : Historical mean at 80:1
Info Table : Real-time statistics and market interpretation
Best Practices
Use on daily timeframe or higher for most reliable signals
Combine with volume analysis and individual metal technicals
Monitor Federal Reserve policy and USD strength as macro context
Consider industrial demand factors for silver (solar, EV, electronics)
Watch safe-haven flows during economic uncertainty for gold
Customization Options
Adjust threshold levels based on your preferred lookback period
Modify moving average length to suit your trading timeframe
Toggle bands on/off for cleaner chart visualization
Change data source tickers if using different brokers (FXCM, FOREXCOM, etc.)
Alert Conditions
Silver Undervalued Alert : Triggers when ratio crosses above your high threshold
Gold Undervalued Alert : Triggers when ratio crosses below your low threshold
Receive notifications via TradingView mobile app , email , or webhook
Who This Is For
Precious metals traders seeking relative value opportunities
Portfolio managers balancing gold and silver allocations
Macro traders using metals as inflation hedges
Swing traders capitalizing on mean reversion patterns
Long-term investors optimizing entry points
Important Notes
This indicator tracks price ratios , not physical supply data
COMEX warehouse stocks are not directly available in TradingView
Ratio analysis assumes historical mean reversion tendencies
Always combine with fundamental analysis and risk management
Past performance does not guarantee future results
Data Sources
Gold Price : OANDA:XAUUSD (spot gold in US dollars)
Silver Price : OANDA:XAGUSD (spot silver in US dollars)
Update Frequency : Real-time during market hours
Historical Data : Full TradingView historical coverage available






















