SMC Market Structure + MTF Liquidity PRO STATS [MaB] SMC Market Structure + MTF Liquidity PRO STATS (INVITE-ONLY)
This is NOT a simple pivot detector or a mashup of existing indicators. It's a proprietary state machine algorithm specifically designed for Smart Money Concepts (SMC) traders.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ WHY THIS IS DIFFERENT - THE METHODOLOGY
Most market structure indicators on TradingView use pivot detection (e.g., "highest high of last X bars"). This approach creates two major problems:
1. No validation - a pivot is marked immediately, often leading to false signals
2. Repainting - pivots shift as new bars form
This indicator uses a state machine approach instead:
The algorithm processes each bar through distinct states:
• Monitoring - Tracking price movement after confirmed swing point
• Candidate - Potential swing detected, awaiting validation
• Validating - Checking confirmation criteria (candle count + pullback %)
• Confirmed - Swing point validated and locked
• Breakout - Monitoring for structure break or continuation
Each swing high/low must pass THREE validation checks before confirmation:
1. Minimum candles elapsed (default: 6)
2. Required pullback percentage met (default: 10% of range)
3. Breakout threshold exceeded (default: 5%, auto-reduced to 0.001% on large legs >2.5x avg)
This eliminates repainting - a confirmed point stays confirmed. The info table shows real-time validation progress: "Validating... 4/6 candles, 7.2%/10% pullback".
Liquidity Detection Method:
The algorithm detects Fair Value Gaps (FVG) using chain analysis:
1. Identifies consecutive FVG candles
2. Tracks price behavior after detection
3. Classifies zones based on validation timing
Two distinct zone types:
• Imbalances (validated zones) - FVG detected, then swing point confirmed → genuine institutional interest
• Inducements (invalidated zones) - FVG detected but invalidated before confirmation → liquidity trap
This distinction helps identify high-probability reaction zones vs. false signals.
Why Market Structure is Essential for Liquidity Classification:
This is NOT a simple combination of two separate indicators (structure + liquidity). The market structure validation state is REQUIRED to classify liquidity zones correctly.
Here's why they must be integrated:
A Fair Value Gap alone tells you nothing about its quality. The same FVG can be either:
• A genuine imbalance (institutional interest)
• OR a liquidity trap (inducement)
The classification depends entirely on WHEN the swing point gets confirmed:
Scenario A - IMBALANCE:
1. FVG forms at bar 100
2. Price retraces
3. Structure validation completes at bar 105 (swing confirmed)
4. FVG is classified as IMBALANCE → price respected the zone, structure confirmed it
Scenario B - INDUCEMENT:
1. FVG forms at bar 100
2. Price immediately reverses through the FVG
3. FVG gets invalidated at bar 102 (before structure confirmation)
4. FVG is classified as INDUCEMENT → liquidity trap, price didn't respect it
Without the state machine tracking structure validation timing, you cannot make this distinction. The liquidity detection algorithm queries the market structure state continuously to determine zone classification.
This is why market structure and liquidity must be deeply integrated in the same indicator - they are not independent features combined together, but interdependent components of the same analytical framework.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 PROPRIETARY FEATURES (WHY INVITE-ONLY)
1. Multi-Timeframe (MTF) Integration
Overlays higher timeframe FVG zones directly on your chart using request.security() with custom pure functions. This required extensive development to handle state-free detection while maintaining accuracy across timeframe switches.
2. Advanced Trend Statistics
Statistical analysis engine that calculates:
• Continuation Rate - Probability of Break of Structure (BOS) after pullback
Formula: (Total BOS) / (BOS + Reversals) × 100
Helps identify trending vs choppy market conditions
• Streak Analysis - Tracks consecutive continuations before reversal
Compares current streak to historical average (separate for uptrend/downtrend)
Color-coded risk assessment (green: below avg, yellow: at avg, red: above avg)
• Extension Ratios - Measures momentum strength using σ-filtered averages
Calculates how much new highs/lows exceed previous relative to pullback zone
Filters outliers using standard deviation to provide clean averages
These metrics required custom pattern recognition algorithms to identify valid retest zones and measure extensions accurately.
3. Adaptive Breakout Detection
Dynamic threshold adjustment based on leg amplitude:
• Normal legs: use standard threshold (1-5%)
• Large legs (>2.5x avg): threshold auto-reduced to 0.001%
This prevents missed breakouts on strong directional moves while maintaining noise filtering on typical price action.
4. Zone Size Intelligence
Proprietary filtering system that:
• Tracks historical zone sizes (separate arrays for TF and MTF)
• Calculates rolling averages (last 50 zones)
• Filters abnormally small zones (default: <15% of avg rejected)
• Prevents chart clutter from micro-FVGs
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 WHAT YOU GET
Market Structure Tracking:
• Automatic swing high/low labeling (H1, H2... L1, L2...)
• Real-time validation progress in info table
• Instant structure updates on timeframe switch
• No repainting - confirmed points are locked
Liquidity Zones (Current TF):
• Imbalance zones (green/red) - validated institutional interest
• Inducement zones (orange/blue) - liquidity traps
• Automatic lifecycle tracking (active vs touched zones)
• Configurable retracement % to mark zones as touched
Multi-Timeframe Zones:
• Higher TF FVG overlay (e.g., Daily zones on 4H chart)
• Distinct colors (purple/fuchsia) for easy identification
• Separate size filtering for MTF zones
• Confluence detection between timeframes
Trend Analysis Table:
• Continuation Rate with color-coded thresholds
• Current Streak vs historical average
• Streak Average UP/DN (trend persistence)
• Extension UP/DN (momentum strength)
• All metrics update in real-time
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ CONFIGURATION
Market Structure:
• Min Confirmation Candles (1-100, default: 6)
• Required Pullback % (1-50%, default: 10%)
• Breakout Threshold (0-20%, default: 5%)
Liquidity Zones:
• Zone Size Tolerance (10-99%, default: 85%) - strictness of size filter
• Zone Retracement % (0-100%, default: 0%) - touch sensitivity
• Inactive Zones Transparency (50-99%, default: 90%)
• Individual color controls for each zone type
Multi-Timeframe:
• MTF Timeframe selector
• Separate colors for MTF demand/supply zones
• Independent size filtering
Display:
• Toggle Market Structure Table
• Toggle Trend Analysis Table
• Dark/Light theme
• Replay Mode for TradingView bar replay
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHO BENEFITS
• SMC/ICT Traders - Automate structure markup and FVG identification
• Multi-Timeframe Analysts - See higher TF liquidity without chart switching
• Strategy Developers - Use trend statistics to refine entry/exit rules
• Learners - Understand market structure through real-time validation display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 IMPORTANT NOTES
• Use on higher timeframes (4H, Daily) for cleaner structure
• Enable Replay Mode when using TradingView bar replay
• This is an analysis tool, not a signal generator
• Combine with your own strategy and risk management
• The free lite version "Market Structure HighLow + Liquidity " on my profile lacks MTF and trend statistics
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY CLOSED-SOURCE & INVITE-ONLY
The custom algorithms include:
• State machine transition logic with 5+ states
• Custom pattern recognition for retest zones
• Statistical analysis with outlier filtering
• Adaptive threshold calculations
• Multi-timeframe pure function architecture
These represent months of development, testing, and refinement. The invite-only model allows me to:
• Provide dedicated support to users
• Gather feedback for continuous improvement
• Maintain the quality and exclusivity of the tool
This is not a simple combination of built-in indicators or public code. The logic and algorithms were developed from scratch - this does not use or combine existing public indicators like RSI, MA, Bollinger Bands, MACD, or community scripts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, trading advice, or any other sort of advice.
Past performance is not indicative of future results. Trading involves substantial risk of loss and is not suitable for every investor. You should carefully consider your investment objectives, level of experience, and risk appetite before making any investment decisions.
The developer assumes no responsibility for any losses or damages resulting from the use of this indicator. Always do your own research and consult with a qualified financial advisor before making any trading decisions.
Statistics
SITI LEMAN SR MTFSiti Leman Support and Resistance MTF
A multi-timeframe support and resistance indicator that automatically detects key price levels using pivot-based analysis, featuring zone strength tracking and automatic zone expiration.
Features:
Core Features:
- Multi-Timeframe Detection - Analyze S&R from Chart, 15M, 1H, 4H, Daily, or Weekly timeframes
- Dynamic Zones - Automatically drawn support/resistance zones with adjustable margins
- Manipulation Detection - Identifies liquidity sweep zones above resistance and below support
- Smart Signals - Breakouts, Tests, Retests, and Rejection signals with volume confirmation
- False Breakout Filter - Optional filter to avoid signals from failed breakouts
- Swing Labels - Higher Highs, Lower Highs, Higher Lows, Lower Lows with volume data
- Status Table - Real-time display of current bias, resistance, support levels, and zone strength
- Alerts - Built-in alerts for all signal types and high volume spikes
New Features:
- Zone Strength Tracking - Zones become more visible with each test/retest, helping identify the most significant levels
- Zone Expiration - Old untested zones automatically fade out, reducing chart clutter
- Optional ATR-Based Zones - Experimental feature to calculate zone width using ATR instead of percentage
How It Works:
The indicator uses pivot highs/lows to identify significant price levels, then tracks price interaction with these zones. When price breaks through a level, the zone flips from resistance to support (or vice versa). Volume analysis helps confirm the significance of price rejections.
Zone strength is tracked by counting how many times a zone has been tested or retested. Stronger zones (more touches) appear more prominent on the chart. Zones that remain untested for a configurable number of bars will fade to gray, indicating they may be less relevant.
Settings Guide:
Zone Detection Settings:
- Detection Timeframe: Select which timeframe to use for pivot detection
- Detection Length: Number of bars to look back for pivot points (higher = fewer, more significant zones)
- Zone Margin: Controls the thickness of S&R zones
Zone Strength Settings:
- Show Zone Strength: Toggle visibility enhancement for frequently tested zones
- Visibility Boost Per Touch: How much more visible zones become with each touch
Zone Expiration Settings:
- Enable Zone Expiration: Toggle automatic fading of old zones
- Expire After (bars): Number of bars before untested zones start fading
- Expired Zone Transparency: How transparent expired zones become
ATR Zone Settings (Optional):
- Use ATR-Based Zone Width: Switch from percentage-based to ATR-based zone calculation
- ATR Length: Period for ATR calculation
- ATR Multiplier: Multiplier for zone width
Best Used For:
- Identifying key entry/exit zones
- Spotting potential reversals at S&R levels
- Detecting manipulation/stop hunts
- Confirming trend direction via market structure
- Finding the strongest support/resistance levels via zone strength
Trend Strength [OmegaTools]Trend Strength is a quantitative regime oscillator designed to measure directional pressure and trend quality by blending price structure, return-dependence, realized intrabar expansion, and volume participation into a single normalized signal. The goal is not to predict, but to classify market state: when price action is in an expansionary/distributionary phase versus when it is in a contractionary/accumulation phase, so you can align execution and risk with the prevailing environment.
Core concept and methodology
The indicator aggregates four components computed on stable rolling windows and mapped into comparable ranges:
1. Price location / structural positioning (100-bar range)
A normalized price-location metric (position of close within the rolling high–low range) is transformed into a non-linear “strength” profile. This emphasizes meaningful departures from the middle of the range and penalizes indecision, producing a structure-aware contribution rather than a raw oscillator.
2. Return-dependence / directional persistence (100 bars)
A correlation term measures the relationship between the current return (close − close ) and the prior price level (close ). This helps detect environments where movement is more persistent or more mean-reverting, providing a statistical component that complements pure price-location signals.
3. Realized expansion / volatility proxy (50-bar accumulation, 300-bar normalization)
Intrabar expansion is approximated via the absolute candle body relative to the full range, aggregated over a short window to represent realized “effort” and then normalized over a longer window. This captures whether price is moving with meaningful body expansion versus compressing and stalling.
4. Volume participation (11-bar accumulation, 300-bar normalization)
A rolling volume sum is normalized over a longer window to quantify participation. This helps separate “thin” moves from moves supported by broader activity, without relying on exchange-specific volume assumptions.
The final oscillator is a weighted blend of these four normalized components, scaled for readability. The output is intentionally centered around two actionable regimes rather than a symmetric overbought/oversold framework.
How to read the oscillator
Trend Strength is designed around two main thresholds:
- Distribution / Expansion regime (oscillator above 0)
When the oscillator is above 0, the market is classified as being in a higher-pressure expansion regime. This often corresponds to directional continuation potential, stronger impulse behavior, and reduced suitability for tight mean-reversion tactics.
- Accumulation / Contraction regime (oscillator below −1.3)
When the oscillator is below −1.3, the market is classified as being in a contraction/accumulation regime. This frequently corresponds to compression, rotation, and lower directional efficiency, where breakouts may be more fragile and mean-reversion tactics may be more appropriate (depending on instrument and session conditions).
Values between 0 and −1.3 are treated as transitional/neutral, where the market is not clearly committing to either regime.
Continuous Mode vs Standard Mode
Trend Strength includes an optional Continuous Mode to improve interpretability during regime transitions:
- Standard Mode colors only when the oscillator is firmly in one of the two regimes (above 0 or below −1.3). Neutral zones remain uncolored, keeping the display conservative.
- Continuous Mode adds persistence logic: once a regime is confirmed, intermediate values are rendered with a lighter shade of the last confirmed regime until the opposite regime is confirmed. This reduces visual noise, helps maintain a consistent directional bias framework, and is particularly useful for intraday execution and session trend management.
Visual design and bar coloring
The oscillator line is color-coded:
- Purple: distribution / expansion regime
- Orange: accumulation / contraction regime
Neutral/transitional values are displayed in grey (or lightly shaded in Continuous Mode based on last confirmed regime).
Optionally, the indicator can color price bars using the same regime logic, allowing rapid at-a-glance regime recognition directly on the chart.
Practical use cases
- Regime filter for strategies: enable trend-following logic only in expansion regimes; enable mean-reversion or range logic in contraction regimes.
- Risk adjustment: increase/decrease position sizing or tighten/widen stops based on regime classification.
- Confirmation layer: combine with structure tools (market structure, VWAP, key levels) to validate whether conditions support continuation or imply compression.
- Session management: identify when a session is behaving as a trend day versus a rotational day, improving trade selection and reducing overtrading.
Notes
Trend Strength is a regime classifier and contextual tool. It does not guarantee future direction and should be integrated into a complete decision process (risk management, market structure, session context, and instrument-specific behavior).
© OmegaTools
Sigmoid Allocation Indicator & DashboardTL;DR This sigmoid-based allocation indicator tells you percentage of your portfolio to invest based on how much the market has dropped.
Market at all-time high? → Stay defensive, invest less (e.g., 30%)
Market crashed hard? → Get aggressive, invest more (e.g., 100%)
The "sigmoid" part just means the transition between these two extremes follows a smooth S-shaped curve.
Description
This indicator is a sigmoid-based allocation system that dynamically adjusts a portfolio exposure based on market drawdown.
It compares multiple steepness curves (K values) to find your optimal risk profile for leveraged ETF strategies, but it can also be used to scale in-out from stocks, crypto and to understand whether to use leverage or not.
The Sigmoid Allocation Dashboard helps you to dynamically adjust a portfolio allocation based on how much a market has dropped from its all-time high.
I've implemented it using a sigmoid (S-curve) function, that dynamically calculates the optimal allocation percentages. Depending on the market conditions, the S curves transition between defensive and aggressive allocations.
The Math Behind It (if you are a geek like me)
This indicator uses the sigmoid function to create smooth S-curve transitions:
α(D) = α_min + (α_max - α_min) × σ(k × (D - D_mid))
Where:
σ(x) = 1 / (1 + e^(-x)) ← Standard sigmoid function
You can also check it here:
// Sigmoid function: σ(x) = 1 / (1 + e^(-x))
sigmoid(float x) =>
1.0 / (1.0 + math.exp(-x))
// Alpha calculation: α(D) = α_min + (α_max - α_min) × σ(k × (D - D_mid))
calcAlpha(float drawdown, float k, float a_min, float a_max, float d_midpoint) =>
sig_input = k * (drawdown - d_midpoint) / 100.0
a_min + (a_max - a_min) * sigmoid(sig_input)
User parameters (you can tweak this):
Allocation Min (%): Your baseline allocation when markets are at ATH (default: 30%)
Allocation Max (%): Your maximum allocation during deep drawdowns (default: 100%)
D_mid (%): The drawdown level where you want to be at the midpoint (default: 25%)
Why do I like sigmoid and not a linear line?
Unlike linear models, the sigmoid creates "floors" and "ceilings" for your allocation. It transitions smoothly, no sudden jumps, and you never exceed your defined min/max bounds.
Understand the K Values (Steepness)
The K parameter controls how quickly your allocation shifts from defensive to aggressive.
Lower K (for example K=5) will give you a gradual transition, but at 0% drawdown you are already at a 46% allocation.
A higher like (like K=40) will give you a sharp transition, but at 0% drawdown you are close to the minimum allocation. On the other hand, a higher K will give close to 100% allocation when the markets are at new lows.
The example below illustrates this well, then the S&P 500 reached new lows in October 2022:
Different K values will affect the sigmoid curves (and you allocations differently). The chart below illustrates well how K affects the sigmoid curves:
Read the Dashboard
The main dashboard shows:
Current drawdown from ATH
Allocation % for each K value
Suggested action (Defensive → MAX LONG)
Use the Reference Chart
The static reference panel shows what your allocation would be at various drawdown levels (0%, 10%, 20%, 30%, 40%, 50%), helping you plan ahead.
Identify Zones
The color-coded chart background shows:
- 🟢 Green Zone: Aggressive positioning - "Buy the Dip"
- 🟡 Yellow Zone: Transition zone - Scaling in/out
- 🔴 Red Zone: Defensive positioning - Protect ya gains
Use Cases
Use case 1: Leveraged ETF Portfolio Management (this is my main use case)
When holding leveraged ETFs like TQQQ or UPRO, volatility makes it important to:
- Reduce exposure near all-time highs (when crashes hurt most)
- Increase exposure during drawdowns (when recovery potential is highest)
Example Strategy:
- At ATH: Hold 30% TQQQ, 70% cash/bonds or other uncorrelated assets
- At 25% drawdown: Hold 65% TQQQ, 35% cash/bonds
- At 40%+ drawdown: Hold 100% TQQQ
Use case 2: Diversified Leveraged Portfolio
Compare different K values for different assets:
- Use K = 10 for broad market (QQQ/SPY exposure via TQQQ/UPRO)
- Use K = 25 for sector bets (TECL, SOXL, TMF) that you want to scale into faster
Use case 3: Systematic Rebalancing Signals
Use the alerts to trigger rebalancing:
- Alert when K3 allocation crosses above 90% (time to add)
- Alert when drawdown exceeds your D_mid threshold
- Alert when market returns to within 5% of ATH
Tips for Best Results
It works best in longer time frames
Adjust the ATR lookback window
Match your risk tolerance level
I use this for index investing and stocks and haven't tried with crypto
Thanks for using the indicator and let me know if you have any feedback :)
- Henrique Centieiro
Anchor Pulse WaveAnchor Pulse Wave – Median Anchor Overlay (MAO) with Real Deviation Strength (RDS) Confluence built-in.
This overlay companion to the Median Anchor Oscillator (MAO) brings mean-reversion gravity to life. It plots the rolling median as a customizable anchor line, surrounded by translucent, one-sided pulse bands that "breathe" based on Real Deviation Strength (RDS) – smoothed absolute deviation intensity.
"Possibly the simplest yet most robust open-source overlay for mean-reversion — median gravity + real deviation strength pulsing in real time."
Core Visuals:
• Median Anchor Line – dynamic fair-value centerline (custom color)
• Pulse Wave Bands – translucent fill (custom color & base transparency) thickens/opaques on strong deviation (high RDS), thins/fades on strength crack → intuitive "highlight" for conviction shifts
• One-sided design: upper band for positive stretches, lower for negative
Signals & Confluence:
• Exhaustion arrows/labels (Bull Exh ↑ Long / Bear Exh ↓ Short) only fire on pivot + RDS strength crack → cleaner, high-quality signals
• Re-Entry labels flag gravity pullback zones
• Best used with MAO subchart: confirm highlights with divergence (e.g., MAO higher lows on price lower lows for bullish setups)
Built-in Alerts:
• Strong Bull Exh (Long) – crack + pivot (low-risk long)
• Strong Bear Exh (Short) – crack + pivot (low-risk short)
• Re-Entry Alert – gravity reversal in play
• Band Highlight – strength building fast (deviation conviction rising)
How to Trade:
1. Watch for band highlights (hue/thickness change – strength peaking/cracking)
2. Confirm with MAO divergence / threshold cross
3. Enter on confluence → hold through solid phases, exit on opposite re-entry
Why this works: Pure median + MAD math (outlier-resistant), RDS adds real strength filtering without extra panes. Low-risk mean-reversion edge when layers align.
Got RSI or MACD for divergence? those work alright too!
Open-source Pine v6. Feedback welcome – refinements appreciated!
© RU55IANROUL3TT3 – Personal use & modification OK, credit appreciated if shared.
Links for MAO + RDS
world market Zones (IST) + Prev Day S/R + Pivot🧠 PART 1 — SESSION VOLATILITY ENGINE (SCRIPT 1)
This part does time-based market behavior mapping, not price indicators.
✅ What it Detects
All times are locked to IST (Asia/Kolkata):
Zone Purpose Why it matters
London (13:00–17:30) EU money flow Trend initiations often start here
NY (18:30–23:30) US volatility Expansion + reversals
Overlap (17:30–21:30) Highest liquidity window Breakouts + fakeouts
EIA (Wed 20:30–21:30) Crude inventory release Explosive oil moves
IMPORTANT FOR ANALYSING session START SHOCK POINTS.
🧠 What this section REALLY gives you
You now see:
When liquidity enters
When algos reset
When news shock candles form
Where false breakouts happen (often at session flips)
This is behavioral timing, not lagging math.
Not suitable for:
1D+ charts (session logic loses meaning)
Assets without clear London/NY behavior
🏆 What type of trader this script is for
This is NOT indicator trading.
This is for traders who:
✔ Trade liquidity sweeps
✔ Watch session opens
✔ Understand dealer positioning
✔ Trade crude, indices, forex
It’s basically a smart money timing + institutional level combo.
HAPPY TRADING
Z-Score STDEMA BandsZ-Score STDEMA Bands is a mean-reversion and regime-strength indicator built on normalized price deviation.
The indicator converts price into a Z-Score, measuring how many standard deviations the current price is from its moving average over a configurable lookback. This makes signals comparable across assets and timeframes.
On top of the Z-Score, the script applies an EMA of the Z-Score and dynamically builds upper and lower STDEMA bands using the rolling standard deviation of the Z-Score itself. These bands adapt to volatility in deviation, not price.
How to read it:
Z-Score (orange line): Distance from mean in standard deviations.
Horizontal levels (±1, ±2, ±3): Statistical extremes and mean-reversion zones.
Green/Red bands: EMA-based dynamic deviation envelopes.
Blue bars: Strong positive deviation (bullish expansion beyond statistical expectation).
Yellow bars: Strong negative deviation (bearish expansion beyond statistical expectation).
Use cases:
Identify overextended price conditions in a normalized framework.
Detect trend strength vs. mean-reversion (expansion outside bands).
Filter trades by statistical significance, not raw price movement.
P/E Ratio (TTM)This indicator plots the trailing P/E ratio (TTM) using GAAP EPS (TTM) sourced directly from TradingView’s fundamental data. It includes valuation‑zone color coding, yearly labels, and a clean, compressed visual layout suitable for most equities.
The goal is to provide a fast, intuitive view of how expensive or cheap a stock is relative to its historical earnings power.
Note:
The indicator caps P/E values around 120 for visual clarity.
Negative P/E ratios are intentionally excluded, since P/E is undefined when EPS is negative.
You can adjust the cap or remove it entirely if you prefer a full‑range view.
This tool is especially useful for identifying periods when a company is trading at historically elevated or discounted valuation levels.
ADR Daily & Session (Asia, London, NY) Range TrackerOVERVIEW:
The Daily & Session Range Tracker provides comprehensive range analysis for daily and intraday trading sessions (Asia, London, NY) . This indicator is essential for traders who need to understand market volatility and typical price movement ranges across different trading sessions.
KEY FEATURES:
• Daily Range Tracking: Tracks the daily candle range starting from 18:00 (6 PM), aligning with the institutional trading day open
• Session-Based Analysis: Monitors Asia (18:00-02:00), London (02:00-08:00), and NY (08:00-16:00) sessions
• Statistical Analysis: Displays Current, Average, and Median ranges for each period
• Customizable Lookback: Adjustable lookback period (1-20 days) for historical range calculation
• Clean Table Display: Organized data table positioned in the bottom-right corner
HOW TO USE:
1. Add the indicator to your chart
2. Adjust the lookback period to match your trading style (default: 10 days)
3. Customize session times if trading in a different timezone
4. Use the range data to set realistic profit targets and stop losses
5. Compare current range to average/median to gauge if price has room to move
SETTINGS:
• Lookback Period: Number of days to include in average/median calculations (1-20)
• Text Color: Customize the table text color for visibility
• Session Times: Adjust session start/end times for your timezone
PERFECT FOR:
✓ Day traders monitoring session volatility
✓ Scalpers setting realistic targets based on average ranges
✓ Swing traders understanding daily movement potential
✓ Risk management and position sizing decisions
NOTE: The daily range resets at 18:00 to align with institutional daily candle open times.
SuperTargets | OptionWriter **SuperTargets | OptionWriter** is a professional SuperTrend-based trading tool designed for **index trading, scalping, and option writing**.
The indicator combines a **refined SuperTrend signal** with an **automatic target & stop-loss projection engine**, helping traders visualize risk and reward clearly on the chart.
---
🔹 Key Features
• **SuperTrend Direction Filter**
Identifies bullish and bearish trend reversals with clean line-break plotting.
• **Precise Buy & Sell Signals**
Signals are generated only on confirmed trend changes to avoid noise.
• **Automatic Trade Levels**
On every signal, the indicator plots:
* Stop Loss (SL)
* Entry Price
* Target 1, Target 2, Target 3
All levels are derived from **ATR-based volatility**, making them adaptive to market conditions.
• **Forward-Projected Targets**
All SL, Entry, and Target lines extend **15 candles into the future** for better planning and visibility.
• **Professional Visuals**
* Red zone = Risk (SL to Entry)
* Green zone = Reward (Entry to Final Target)
* Clean labels showing **price levels only**
* Dashed targets, solid entry, dotted stop-loss
• **Option-Writer Friendly Logic**
Targets are structured conservatively, ideal for **option selling, intraday scalping, and index trading** (NIFTY / BANKNIFTY / FINNIFTY).
---
🔹 Best Usage
✔ Intraday (5-min / 15-min)
✔ Index options & futures
✔ Trend-following scalps
✔ Risk-defined trades
---
⚠️ Notes
• Targets are **projection levels**, not guaranteed outcomes
• Always combine with **price action, VWAP, CPR, or market structure**
• Not a replacement for risk management
---
**Built for clarity. Designed for discipline.
SuperTargets | OptionWriter**
Statistical Edge V1Statistical Edge is an advanced trading engine designed to eliminate uncertainty and emotional bias through a strictly mathematical approach. Unlike traditional indicators that merely display past data, Statistical Edge processes price action to isolate actionable statistical edges in real-time.
🔹 Zero Repaint: Every signal is final once the candle closes. What you see on the chart is the actual historical and current reality—no cheating, no hindsight bias.
🔹 Integrated Statistics Dashboard: Instantly visualize strategy performance on any asset or timeframe (Win Rate, Profit Factor, Net Profit).
🔹 Dynamic Risk Management: Automatic display of optimized Take Profit and Stop Loss levels to maintain a favorable Risk/Reward ratio.
🔹 Customizable Alerts: Never miss an opportunity with ready-to-use alerts for buy and sell signals.
Why focus on a Statistical Edge? A trader’s worst enemy is intuition. Statistical Edge replaces "gut feeling" with raw, verifiable data. By using the built-in backtest feature, you no longer trade on hope; you trade because the numbers confirm a historical advantage.
How to get access? This script is strictly restricted to Statistical Edge community members.
To get your access: 👉 statisticaledge.bkptrading.com
Short seller Market Stats Box (NY Time)This box will give you the basic info for your stats if you are a short seller .
The tricky one is the morning push it will give you the higher high between 9:30 and 10:00 . OPP% is the difference between market open and market close.
Weekly High/Low Day StatisticsThis indicator analyzes historical price data to determine which day of the week (Monday through Friday) most frequently hosts the weekly high and low prices. It provides overall counts, percentages, and the total number of weeks analyzed. Ideal for traders studying seasonal or day-of-week patterns in markets like futures (e.g., ES1!, NQ1!) or stocks (e.g., SPY).
Key Features:
Overall Statistics: Aggregates data across all available history, including the current partial week if applicable.
High/Low Tracking: Counts how many times each day was the weekly high or low, with percentages calculated over the total weeks.
Tie Handling: Uses the first occurrence in case of price ties (e.g., if multiple days hit the same high, the earliest day is credited).
Futures-Friendly: Utilizes time_tradingday for accurate day-of-week detection on continuous contracts like ES1!, accounting for session timings in UTC.
Table Display: Results are presented in a clean, semi-transparent table in the top-right corner, with columns for counts, percentages, and a total weeks summary.
Dynamic Updates: Processes all available historical bars on daily (1D) charts, supporting deep history (e.g., back to 2001 for ES1!). Note: On intraday timeframes, historical depth may be limited by TradingView's bar constraints.
How It Works:
The script iterates through daily bars, identifying the start of each new week via ta.change(time("W")). It tracks the highest and lowest prices within each week and assigns them to the corresponding trading day. At the end of each complete week, it tallies the results. The current incomplete week is included for real-time relevance.
Percentages are calculated as: (Count / Total Weeks) * 100, rounded to one decimal place.
Usage Tips:
Recommended Timeframe: Daily (1D) for maximum historical analysis. Works on intraday charts but with shallower data.
Symbols: Best for markets trading Monday-Friday, like indices, futures, or equities. Sunday/Saturday data is ignored as it's typically non-trading.
Customization: If ties should favor the last day instead, modify the comparison operators from >/< to >=/<= in the update logic.
Performance: Efficient for large datasets; no max_bars_back needed as it avoids deep historical references.
This tool can help uncover patterns, such as whether Fridays tend to be highs in bullish markets or Mondays lows during volatility. Use it alongside other indicators for comprehensive strategy building. Feedback welcome—feel free to suggest improvements!
PerceptionThings to keep in mind :-
1. The daily close should not be on Settlement.
2. Only visible on 1 minute or above and not on seconds timeframe.
3. Use standard candlesticks and not Heikin Ashi or any thing else.
10-Straddle Strike Dashboard10-Straddle Strike Dashboard
this can be helpful in trending , sideways markets
TASC 2026.02 Portfolio Diversification█ OVERVIEW
This indicator is a simplified framework for analyzing hypothetical portfolios, based on the concepts in the February 2026 edition of the TASC Traders' Tips , "Foundational Portfolio Design, Not Stock-Picking”. It requests datasets for spread symbols that represent weighted combinations of user-selected or predefined instruments, compares the returns in the data to those of a selected benchmark, and calculates risk-related metrics.
█ CONCEPTS
One of the core concepts of portfolio design is diversification. A diversified portfolio distributes market exposure across multiple, ideally uncorrelated, instruments to reduce potential risks. Investors often diversify their portfolios by allocating capital to instruments from different classes, sectors, or regions rather than investing in only a single instrument or multiple related instruments.
As described in the article, the motivation behind creating diversified portfolios is simple:
"No single position should have the capacity to sink the entire portfolio."
This indicator estimates a portfolio's performance by requesting combined price data for spread symbols from user inputs or predefined options, and then analyzing the data's annual arithmetic returns alongside those of a specified benchmark instrument. It displays the returns of the spread and the benchmark in a table at the bottom left.
The indicator also displays the following metrics described in the article in a table at the bottom right of the pane for additional performance information:
Max drawdown: The maximum drop in the portfolio's value from a local peak.
Standard deviation: The dispersion of portfolio values relative to their mean.
Sharpe ratio: The ratio of excess returns in an investment compared to a hypothetical risk-free rate of return.
Pain index: A measure of risk based on the depth, duration, and frequency of losses. The metric in this script considers only the bars where drawdown is nonzero.
Ulcer index: A measure of downside risk based on the root mean square of drawdowns. The metric in this script considers only the bars where drawdown is nonzero.
Correlation: The Pearson correlation coefficient between the returns of the hypothetical portfolio and those of a selected benchmark.
The first five metrics are direct risk measures. The correlation metric helps assess whether the hypothetical portfolio closely follows the broader market. High correlation with a broad benchmark might indicate an elevated sensitivity to systematic risk.
█ USAGE
Users can select a combination of up to 10 symbols with specific weights to construct a hypothetical portfolio to analyze. Alternatively, users can select a predefined combination of symbols and weights based on the article's examples of optimized portfolios for different levels of risk tolerance.
The script plots the calculated returns from the selected combination and the benchmark instrument for visual comparison. It also generates tables to compare returns and display risk metrics.
Note: This indicator is intended to provide a simplified demonstration of portfolio concepts, and some metric calculations differ slightly from those in the article. The script does not produce any signals, and the calculated metrics are estimates intended for EOD timeframes such as 1D. If the hypothetical portfolio consists of instruments with different sessions, we recommend using 1W or a higher timeframe.
█ INPUTS
Benchmark: The symbol of the instrument to compare against the hypothetical portfolio.
Portfolio Type: Choose between named options for predefined portfolio configurations based on risk profiles outlined in the article. To create a custom portfolio from up to 10 symbols, select "Custom" and adjust the 10 sets of inputs below.
Risk-free rate: The hypothetical annual risk-free rate for the Sharpe ratio.
Periods per year: If not zero, the script uses the value as the number of bars per year for annualization, which affects Sharpe ratio and standard deviation metrics.
Display Toggles: The display for the returns and metrics tables can be toggled on or off.
ORB ScannerThe Orb Scanner is a cutting-edge maritime intelligence device that revolutionizes how vessels navigate and operate in complex oceanic environments. This sophisticated system integrates multiple scanning technologies into a unified platform, serving as the digital nerve center for modern maritime operations.
Sri - Indian Sector-Based MACD 📊 Sri – Indian Sector-Based MACD (Closed Source)
Sri – Indian Sector-Based MACD is a sector-relative momentum framework for Indian equities that replaces traditional stock-based MACD with a dynamic sector-index MACD engine.
Unlike standard MACD indicators that calculate momentum directly from the chart symbol, this script introduces a sector-first analytical layer, allowing traders to evaluate whether a stock’s movement is supported by its parent sector’s trend strength.
🔬 What Makes This Indicator Original
1️⃣ Automatic Sector Intelligence Engine
The script uses a rule-based NSE stock-to-sector classification system covering Banking, Finance, IT, FMCG, Pharma, Auto, Metal, Energy, Infra, Realty, Defence, Telecom, Transportation, and more.
Each listed NSE stock is mapped in real time to its corresponding official NSE sector index, creating a contextual trading environment rather than an isolated price signal.
This sector-mapping logic and index-selection flow is custom-built and proprietary, which is why the source is protected.
2️⃣ Sector-Index MACD (Not Stock MACD)
Instead of applying MACD to the chart symbol:
The indicator fetches live sector-index data
Calculates Fast MA – Slow MA on the sector index
Generates MACD, Signal, and Histogram behavior derived from sector momentum
This allows traders to answer a critical question:
“Is this stock moving WITH its sector or AGAINST it?”
This structural shift—from stock-centric to sector-centric MACD—is the core originality of the script.
3️⃣ Adaptive Multi-Timeframe MACD Logic
The indicator uses an automatic timeframe translation model:
Intraday charts dynamically reference higher-timeframe sector data
Daily, weekly, and monthly charts maintain time-consistent sector momentum
Prevents noise caused by mismatched timeframes between stocks and indices
This adaptive logic is not part of standard MACD implementations.
4️⃣ Controlled Sensitivity & Structural Smoothing
To suit different market regimes, the script includes:
Sensitivity scaling of MACD output
Zero-line offset adjustment
Optional smoothed EMA of sector MACD for trend structure clarity
These controls allow traders to tune sector momentum strength, not just direction.
5️⃣ Manual Override for Advanced Users
While sector detection is automatic, users can manually override the sector index and apply the MACD engine to:
Any NSE index
Custom symbols
Macro or inter-market studies
This makes the indicator usable beyond predefined sector logic.
6️⃣ Visual Confirmation Layer
Filled MACD vs Signal zones highlight sector acceleration vs deceleration
A compact table confirms the active sector context on the chart
Color-coded background indicates whether sector detection is valid
🎯 How Traders Should Use This Indicator
This script is not a buy/sell signal generator.
It is intended for:
Trend confirmation
Sector alignment filtering
Avoiding trades against weak or reversing sectors
Sector rotation and relative strength analysis
Best used alongside:
Price action
Volume analysis
Stock-level indicators
⚠️ Important Notes
Designed for Indian NSE equities
Sector mappings are rule-based and maintained internally
Closed-source to protect custom sector-index MACD architecture
The Charlie Method - EnhancedThe Charlie Method is a precision-engineered 15-minute confirmation tool built for disciplined traders who wait for price to come to them.
It identifies only true bullish and bearish engulfing candles, visually marking them at the moment of confirmation and delivering immediate alerts.
No repainting. No noise. No distractions.
This method is best applied at key levels, liquidity zones, and session extremes, where confirmation matters most.
Trade less. Confirm more. Execute with intent.
Regime ScoreRegime Score | Trend vs Chop Market Filter
Regime Score is a market regime detection indicator that tells you when to trade and when to stay out.
It does not predict direction.
It identifies whether the market is trend-friendly or choppy, helping you avoid low-quality trades and whipsaws.
Perfect for breakout traders, trend followers, and system traders.
Regime States
• Green (+1) → Trend-friendly environment (Enable breakout trades)
• Orange (0) → Transition / mixed regime (Reduce size or skip trades)
• Red (-1) → Choppy / hostile market (Stay flat)
Background coloring makes regime shifts easy to spot at a glance.
Designed Philosophy
• Observe-only filter
• No buy/sell signals
• No over-optimization
• Built to improve discipline and consistency
If your system performs well in trends but struggles in ranges, this indicator acts as a trade quality gate.
🚀 Final Thought
Regime Score helps you trade less, but better by aligning your strategy with the right market conditions.
If you believe market context matters more than signals, this tool belongs on your chart.
⭐ If you find it useful, consider liking or sharing to support further development.
Anchored LRL using ZigZag AnchorAnchored Linear Regression Channel - ZigZag Pivot
The Anchored Linear Regression Channel (LRL) dynamically anchors to the most recent ZigZag pivot point, providing traders with a regression-based channel that resets with each significant price swing.
HOW IT WORKS:
This indicator combines ZigZag pivot detection with linear regression analysis. When price reverses by a specified ATR multiple, a new pivot is identified. After a minimum number of bars, the linear regression channel anchors to this pivot and projects forward to the current bar, recalculating with each new bar.
KEY FEATURES:
- Dynamic anchoring to ZigZag highs and lows
- Customizable ATR-based reversal detection
- Two standard deviation channel bands (inner and outer)
- Adjustable minimum bars before anchor reset (ideal for scalping on lower timeframes)
- Separate controls for ZigZag smoothing vs. anchor reset timing
- Color-coded regression line (up/down trend)
- Optional line extension to the right
- Fully customizable colors and line widths
- Visual label marking the anchor pivot point
INPUTS:
- ATR Reversal: Multiplier for ATR-based pivot detection (default: 2.0)
- MA Length: EMA smoothing for ZigZag calculation (default: 5)
- ATR Length: Period for ATR calculation (default: 5)
- Min Bars After Pivot: Bars required before anchor resets (default: 3, reduce to 1-2 for faster scalping)
- Channel Widths: Inner (0.70) and Outer (1.00) standard deviation multiples
- Line Colors: Customizable colors for uptrend/downtrend and channel lines
- Label Colors: Customizable background and text colors
HOW TO USE:
1. Apply the indicator to your chart
2. Adjust "Min Bars After Pivot" based on your timeframe:
- 1-minute charts: Use 1-2 bars for quick scalping entries
- 5-minute+ charts: Use 3-5 bars for more confirmation
3. Watch for the regression line color to indicate trend direction
4. Use channel bands as potential support/resistance zones
5. The label shows which pivot (high/low) the channel is anchored to
BEST PRACTICES:
- Lower timeframes (1-5 min): Use lower "Min Bars After Pivot" (1-3) for faster reaction
- Higher timeframes: Use higher values (5+) for more confirmed pivots
- Combine with price action and volume for confirmation
- Adjust ATR Reversal based on instrument volatility
NOTES:
- This indicator repaints as it recalculates with each new bar
- Channel resets when a new ZigZag pivot is confirmed
- Not suitable for backtesting strategies due to dynamic nature
- Works best on liquid instruments with clear price swings
DISCLAIMER:
This indicator is for educational and informational purposes only. It does not provide trading signals or guarantees of profitability. Past performance is not indicative of future results. Always perform your own analysis and risk management.
SPY Options Targets -IV Expected MoveWhat this indicator is?
This tool turns option implied volatility into two things:
1) Expected move levels on the SPY chart for a chosen time horizon
2) Estimated option premium targets if SPY reaches those levels
It is built to answer three trading questions:
1) How far can SPY reasonably move in my holding window
2) What SPY levels should I use for profit targets or invalidation
3) If SPY hits those levels, what option price is a realistic target
What the bands mean on the SPY chart
The bands are expected move levels on the underlying, recalculated each bar from the selected option’s implied volatility.
One sigma band
The teal band is the expected one standard deviation move over the next Horizon minutes. In practice, this is a normal move zone for that holding window.
Two sigma band
The orange band is the expected two standard deviation move over the next Horizon minutes. In practice, this is a large move zone for that holding window.
How to interpret value
If price is near the middle of the bands, the market is behaving normally for that window.
If price approaches the one sigma band, the move is extended for that window.
If price approaches the two sigma band, the move is unusually large for that window and you should expect either strong continuation or sharp mean reversion depending on market context.
What the table means and how to use it
IV
Implied volatility solved from the selected option price. Higher IV widens the bands and increases option targets.
DTE
Days to expiry of the selected option. Near expiry options can change faster and IV can shift quickly.
H move 1 sigma
The projected one sigma SPY move in dollars for the selected Horizon minutes. This is the key number for planning.
Opt at plus 1 sigma and minus 1 sigma
If SPY reaches the one sigma upper band or the one sigma lower band, the indicator estimates what your selected option should be worth at that moment, assuming implied volatility does not change.
Opt at plus 2 sigma and minus 2 sigma
Same idea for the two sigma bands.
Now opt px
Current option price for reference.
.................................................................................................................
How to trade using it?
Step 1 Pick the right option input
Choose the same expiry you plan to trade and pick a liquid contract, ideally at the money or near the money. This makes the IV reading more representative of the current tape.
Step 2 Set the horizon to your holding time
If you typically hold 15 to 30 minutes, set Horizon minutes to 15 or 30.
If you typically hold 60 to 120 minutes, set it accordingly.
This matters because the bands represent expected move for that exact window.
Step 3 Use the bands to define trade planning
For a long bias
Entry is your setup. The bands are used for targets and risk.
Target 1 is the one sigma upper band.
Target 2 is the two sigma upper band if momentum supports continuation.
Invalidation can be defined as losing the mid zone and failing to reclaim, or a clear level based stop. The indicator does not choose your stop. It gives your realistic upside distance.
For a short bias
Target 1 is the one sigma lower band.
Target 2 is the two sigma lower band if momentum supports continuation.
Invalidation can be defined similarly using your structure.
Step 4 Use the option targets as profit taking levels
Once you enter an option trade, ignore random premium swings and anchor to the table.
Common approach
Take partial profit when the option approaches the plus or minus one sigma target value.
Hold a smaller runner for the plus or minus two sigma target value.
If SPY hits the one sigma band but the option is far below the table target, it usually means implied volatility is dropping. Reduce expectations or exit earlier.
If SPY hits the one sigma band and the option is above the table target, it usually means implied volatility expanded. Consider taking profits sooner because this extra premium can mean revert.
Step 5 Use it to choose strikes
Before entering, check whether your desired option profit requires SPY to travel to the two sigma band within your horizon.
If yes, that is a lower probability trade for that window.
If your plan is achievable around the one sigma band, it is typically more realistic.
..................................................................................................................
Practical examples
Scalp example
Horizon 30 minutes.
If H move 1 sigma is about 1 dollar, then expecting a 3 dollar SPY move in 30 minutes is a two to three sigma expectation and should be treated as a low probability scalp unless a news event is active.
Intraday example
Horizon 120 minutes.
If H move 1 sigma is about 2 dollars, a 2 dollar move is a reasonable target and a 4 dollar move is the stretch target.
Important limitations
Implied volatility changes
The option target prices assume IV stays constant. In real markets IV can change during the move, especially on 0DTE, around news, or during sharp selloffs. Treat option targets as a baseline estimate.
Not a standalone signal
This indicator does not generate buy or sell signals. Combine it with your entry model, structure, or momentum confirmation.
Liquidity matters
Very wide bid ask spreads can distort the inferred IV. Use liquid contracts.
Suggested defaults for SPY
Use a liquid near the money option for the current expiry.
Horizon 30 for scalps, 60 for intraday, 120 for swings.
Keep expiry time at 16:00 New York.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Options involve risk and may not be suitable for all traders.






















