Maiko Range Scalper (Sideways BB + RSI) โ v4 cleanPurpose
Itโs a range scalping strategy for crypto. It tries to take small, repeatable trades inside a sideways market: buy near the bottom of the range, sell near the middle/top (and the reverse for shorts).
Core idea (two timeframes)
Define the trading range on a higher timeframe (HTF)
You choose the HTF (e.g., 15m or 1h).
The script finds the highest high and lowest low over a lookback window (e.g., last 96 HTF candles) โ these become HTF Resistance and HTF Support.
It also calculates the midline (average of support/resistance).
Trade signals on your lower timeframe (LTF)
You run the strategy on a fast chart (e.g., 1m or 5m).
Entries are only allowed inside the HTF range.
Entry logic (mean reversion)
Indicators on the LTF:
Bollinger Bands (length & std dev configurable).
RSI (length & thresholds configurable).
Optional VWAP proximity filter (price must be within X% of VWAP).
Long setup:
Price touches/under-cuts the lower Bollinger band AND RSI โค threshold (default 30) AND price is inside the HTF range (and passes VWAP filter if enabled).
Short setup:
Price touches/exceeds the upper Bollinger band AND RSI โฅ threshold (default 70) AND price is inside the HTF range (and passes VWAP filter if enabled).
Exits and risk
Stop-loss: placed just outside the HTF range with a configurable buffer %:
Long SL = HTF Support ร (1 โ buffer).
Short SL = HTF Resistance ร (1 + buffer).
Take-profit (selectable):
Mid band (the Bollinger basis) โ conservative, faster exits.
Opposite band / HTF boundary โ more aggressive, higher RR but more give-backs.
Position sizing
A simple cap: maximum position size = percent of account equity (e.g., 20%).
The script calculates quantity from that cap and current price.
Plots youโll see on the chart
HTF Resistance (red) and HTF Support (green) via plot().
HTF Midline (gray dashed) drawn with a line.new() object (because plot() cannot do dashed).
Bollinger basis/upper/lower on the LTF.
Optional VWAP line (only shown if you enable the filter).
Signal markers (green triangle up for Long setups, red triangle down for Short setups).
Alerts
Two alertconditions:
โLong Setupโ โ when a long entry condition appears.
โShort Setupโ โ when a short entry condition appears.
Create alerts from these to get notified in real time.
How to use it (quick start)
Add to a 1m or 5m chart of a liquid coin (BTC, ETH, SOL).
Set HTF timeframe (start with 1h) and lookback (e.g., 96 = ~4 days on 1h).
Keep default Bollinger/RSI first; tune later.
Choose TP mode:
โMid bandโ for quick scalps.
โOpposite band/Rangeโ if the range is very clean and you want bigger targets.
Set SL buffer (0.15โ0.30% is common; adjust for volatility).
Set Max position % to control size (e.g., 20%).
(Optional) Enable VWAP filter to skip stretched moves.
When it works best
Clearly sideways markets with visible support/resistance on the HTF.
High-liquidity pairs where spreads/fees are small relative to your scalp target.
Limitations & safety notes
True breakouts will invalidate mean-reversion logicโyour SL outside the range is there to cut losses fast.
Fees can eat into small scalpsโprefer limit orders, rebates, and liquid pairs.
Backtest results vary by exchange data; always forward-test on small size.
If you want, I can:
Add an ATR-based stop/target option.
Provide a study-only version (signals/alerts, no trading engine).
Pre-set risk to your โฌ5,000 plan (e.g., ~0.5% max loss/trade) with calculated qty.
Cari skrip untuk "support resistance"
Swing Z | Zillennial Technologies Inc.Swing Z by Zillennial Technologies Inc. is an advanced algorithmic framework built specifically for cryptocurrency markets. It integrates multiple layers of technical analysis into a single decision-support tool, generating buy and sell signals only when several independent confirmations align.
Core Concept
Swing Z fuses trend structure, momentum oscillators, volatility signals, and price action tools to capture high-probability trading opportunities in volatile crypto environments.
Trend Structure (EMA 9, 21, 50, 200)
Short-term EMAs (9 & 21) detect immediate momentum shifts.
Longer-term EMAs (50 & 200) define the broader trend and dynamic support/resistance.
Momentum & Confirmation Layer
RSI measures relative strength and market conditions.
MACD crossovers confirm momentum shifts and trend continuations.
Volatility & Market Pressure
TTM Squeeze highlights compression zones likely to precede breakouts.
Volume analysis confirms conviction behind directional moves.
VWAP (Volume Weighted Average Price) establishes intraday value zones and institutional benchmarks.
Price Action Filters
Fibonacci retracements are integrated to identify key reversal and continuation levels.
Signals are produced only when multiple conditions agree, reducing noise and improving reliability in fast-moving crypto markets.
Features
Tailored for cryptocurrency trading across major pairs (BTC, ETH, and altcoins).
Works effectively on swing and trend-based timeframes (1Hโ1D).
Combines trend, momentum, volatility, and price action into a single framework.
Generates clear Buy/Sell markers and integrates with TradingView alerts.
How to Use
Apply to a clean chart for the clearest visualization.
Use Swing Z as a swing trading tool, aligning entries with both trend structure and momentum confirmation.
Combine with your own stop-loss, take-profit, and position sizing rules.
Avoid application on non-standard chart types such as Renko, Heikin Ashi, or Point & Figure, which may distort results.
Disclaimer
Swing Z is designed as a decision-support tool, not financial advice.
All backtesting should use realistic risk, commission, and slippage assumptions.
Past results do not guarantee future performance.
Signals do not repaint but may adjust as new data develops in real-time.
Why Swing Z is original & useful:
Swing Z unifies EMA trend structure, RSI, MACD, TTM Squeeze, VWAP, Fibonacci retracements, and volume analysis into a single algorithmic framework. This multi-confirmation approach improves accuracy by requiring consensus across trend, momentum, volatility, and price action โ a design made specifically for the challenges and volatility of cryptocurrency markets.
Swing Z โ Crypto Trading Algorithm | Zillennial Technologies IncSwing Z by Zillennial Technologies Inc. is an advanced algorithmic framework built specifically for cryptocurrency markets. It integrates multiple layers of technical analysis into a single decision-support tool, generating buy and sell signals only when several independent confirmations align.
Core Concept
Swing Z fuses trend structure, momentum oscillators, volatility signals, and price action tools to capture high-probability trading opportunities in volatile crypto environments.
Trend Structure (EMA 9, 21, 50, 200)
Short-term EMAs (9 & 21) detect immediate momentum shifts.
Longer-term EMAs (50 & 200) define the broader trend and dynamic support/resistance.
Momentum & Confirmation Layer
RSI measures relative strength and market conditions.
MACD crossovers confirm momentum shifts and trend continuations.
Volatility & Market Pressure
TTM Squeeze highlights compression zones likely to precede breakouts.
Volume analysis confirms conviction behind directional moves.
VWAP (Volume Weighted Average Price) establishes intraday value zones and institutional benchmarks.
Price Action Filters
Fibonacci retracements are integrated to identify key reversal and continuation levels.
Signals are produced only when multiple conditions agree, reducing noise and improving reliability in fast-moving crypto markets.
Features
Tailored for cryptocurrency trading across major pairs (BTC, ETH, and altcoins).
Works effectively on swing and trend-based timeframes (1Hโ1D).
Combines trend, momentum, volatility, and price action into a single framework.
Generates clear Buy/Sell markers and integrates with TradingView alerts.
How to Use
Apply to a clean chart for the clearest visualization.
Use Swing Z as a swing trading tool, aligning entries with both trend structure and momentum confirmation.
Combine with your own stop-loss, take-profit, and position sizing rules.
Avoid application on non-standard chart types such as Renko, Heikin Ashi, or Point & Figure, which may distort results.
Disclaimer
Swing Z is designed as a decision-support tool, not financial advice.
All backtesting should use realistic risk, commission, and slippage assumptions.
Past results do not guarantee future performance.
Signals do not repaint but may adjust as new data develops in real-time.
Why Swing Z is original & useful:
Swing Z unifies EMA trend structure, RSI, MACD, TTM Squeeze, VWAP, Fibonacci retracements, and volume analysis into a single algorithmic framework. This multi-confirmation approach improves accuracy by requiring consensus across trend, momentum, volatility, and price action โ a design made specifically for the challenges and volatility of cryptocurrency markets.
Smart Money Precision Structure [BullByte]Smart Money Precision Structure
Advanced Market Structure Analysis Using Institutional Order Flow Concepts
---
OVERVIEW
Smart Money Precision Structure (SMPS) is a comprehensive market analysis indicator that combines six analytical frameworks to identify high-probability market structure patterns. The indicator uses multi-dimensional scoring algorithms to evaluate market conditions through institutional order flow concepts, providing traders with professional-grade market analysis.
---
PURPOSE AND ORIGINALITY
Why This Indicator Was Developed
โข Addresses the gap between retail and institutional analysis methods
โข Consolidates multiple analysis techniques that professionals use separately
โข Automates complex market structure evaluation into actionable insights
โข Eliminates the need for multiple indicators by providing comprehensive analysis
What Makes SMPS Original
โข Six-Layer Confluence System - Unique combination of market regime, structure, volume flow, momentum, price action, and adaptive filtering
โข Institutional Pattern Recognition - Identifies smart money accumulation and distribution patterns
โข Adaptive Intelligence - Parameters automatically adjust based on detected market conditions
โข Real-Time Market Scoring - Proprietary algorithm rates market quality from 0-100%
โข Structure Break Detection - Advanced pivot analysis identifies trend reversals early
---
HOW IT WORKS - TECHNICAL METHODOLOGY
1. Market Regime Analysis Engine
The indicator evaluates five core market dimensions:
โข Volatility Score - Measures current volatility against 50-period historical baseline
โข Trend Score - Analyzes alignment between 8, 21, and 50-period EMAs
โข Momentum Score - Combines RSI divergence with MACD signal alignment
โข Structure Score - Evaluates pivot point formation clarity
โข Efficiency Score - Calculates directional movement efficiency ratio
These scores combine to classify markets into five regimes:
โข TRENDING - Strong directional movement with aligned indicators
โข RANGING - Sideways movement with mixed directional signals
โข VOLATILE - Elevated volatility with unpredictable price swings
โข QUIET - Low volatility consolidation periods
โข TRANSITIONAL - Market shifting between different regimes
2. Market Structure Analysis
Advanced pivot point analysis identifies:
โข Higher Highs and Higher Lows for bullish structure
โข Lower Highs and Lower Lows for bearish structure
โข Structure breaks when established patterns fail
โข Dynamic support and resistance from recent pivot points
โข Key level proximity detection using ATR-based buffers
3. Volume Flow Decoding
Institutional activity detection through:
โข Volume surge identification when volume exceeds 2x average
โข Buy versus sell pressure analysis using price-volume correlation
โข Flow strength measurement through directional volume consistency
โข Divergence detection between volume and price movements
โข Institutional threshold alerts when unusual volume patterns emerge
4. Multi-Period Momentum Synthesis
Weighted momentum calculation across four timeframes:
โข 1-period momentum weighted at 40%
โข 3-period momentum weighted at 30%
โข 5-period momentum weighted at 20%
โข 8-period momentum weighted at 10%
Result smoothed with 6-period EMA for noise reduction.
5. Price Action Quality Assessment
Each bar evaluated for:
โข Range quality relative to 20-period average
โข Body-to-range ratio for directional conviction
โข Wick analysis for rejection pattern identification
โข Pattern recognition including engulfing and hammer formations
โข Sequential price movement analysis
6. Adaptive Parameter System
Parameters automatically adjust based on detected regime:
โข Trending markets reduce sensitivity and confirmation requirements
โข Volatile markets increase filtering and require additional confirmations
โข Ranging markets maintain neutral settings
โข Transitional markets use moderate adjustments
---
COMPLETE SETTINGS GUIDE
Section 1: Core Analysis Settings
Analysis Sensitivity (0.3-2.0)
โข Default: 1.0
โข Lower values require stronger price movements
โข Higher values detect more subtle patterns
โข Scalpers use 0.8-1.2, swing traders use 1.5-2.0
Noise Reduction Level (2-7)
โข Default: 4
โข Controls filtering of false patterns
โข Higher values reduce pattern frequency
โข Increase in volatile markets
Minimum Move % (0.05-0.50)
โข Default: 0.15%
โข Sets minimum price movement threshold
โข Adjust based on instrument volatility
โข Forex: 0.05-0.10%, Stocks: 0.15-0.25%, Crypto: 0.20-0.50%
High Confirmation Mode
โข Default: True (Enabled)
โข Requires all technical conditions to align
โข Reduces frequency but increases reliability
โข Disable for more aggressive pattern detection
Section 2: Market Regime Detection
Enable Regime Analysis
โข Default: True (Enabled)
โข Activates market environment evaluation
โข Essential for adaptive features
โข Keep enabled for best results
Regime Analysis Period (20-100)
โข Default: 50 bars
โข Determines regime calculation lookback
โข Shorter for responsive, longer for stable
โข Scalping: 20-30, Swing: 75-100
Minimum Market Clarity (0.2-0.8)
โข Default: 0.4
โข Quality threshold for pattern generation
โข Higher values require clearer conditions
โข Lower for more patterns, higher for quality
Adaptive Parameter Adjustment
โข Default: True (Enabled)
โข Enables automatic parameter optimization
โข Adjusts based on market regime
โข Highly recommended to keep enabled
Section 3: Market Structure Analysis
Enable Structure Validation
โข Default: True (Enabled)
โข Validates patterns against support/resistance
โข Confirms trend structure alignment
โข Essential for reliability
Structure Analysis Period (15-50)
โข Default: 30 bars
โข Period for structure pattern analysis
โข Affects support/resistance calculation
โข Match to your trading timeframe
Minimum Structure Alignment (0.3-0.8)
โข Default: 0.5
โข Required structure score for valid patterns
โข Higher values need stronger structure
โข Balance with desired frequency
Section 4: Analysis Configuration
Minimum Strength Level (3-5)
โข Default: 4
โข Minimum confirmations for pattern display
โข 5 = Maximum reliability, 3 = More patterns
โข Beginners should use 4-5
Required Technical Confirmations (4-6)
โข Default: 5
โข Number of aligned technical factors
โข Higher = fewer but better patterns
โข Works with High Confirmation Mode
Pattern Separation (3-20 bars)
โข Default: 8 bars
โข Minimum bars between patterns
โข Prevents clustering and overtrading
โข Increase for cleaner charts
Section 5: Technical Filters
Momentum Validation
โข Default: True (Enabled)
โข Requires momentum alignment
โข Filters counter-trend patterns
โข Essential for trend following
Volume Confluence Analysis
โข Default: True (Enabled)
โข Requires volume confirmation
โข Identifies institutional participation
โข Critical for reliability
Trend Direction Filter
โข Default: True (Enabled)
โข Only shows patterns with trend
โข Reduces counter-trend signals
โข Disable for reversal hunting
Section 6: Volume Flow Analysis
Institutional Activity Threshold (1.2-3.5)
โข Default: 2.0
โข Multiplier for unusual volume detection
โข Lower finds more institutional activity
โข Stock: 2.0-2.5, Forex: 1.5-2.0, Crypto: 2.5-3.5
Volume Surge Multiplier (1.8-4.5)
โข Default: 2.5
โข Defines significant volume increases
โข Adjust per instrument characteristics
โข Higher for stocks, lower for forex
Volume Flow Period (12-35)
โข Default: 18 bars
โข Smoothing for volume analysis
โข Shorter = responsive, longer = smooth
โข Match to timeframe used
Section 7: Analysis Frequency Control
Maximum Analysis Points Per Hour (1-5)
โข Default: 3
โข Limits pattern frequency
โข Prevents overtrading
โข Scalpers: 4-5, Swing traders: 1-2
Section 8: Target Level Configuration
Target Calculation Method
โข Default: Market Adaptive
โข Three modes available:
- Fixed: Uses set point distances
- Dynamic: ATR-based calculations
- Market Adaptive: Structure-based levels
Minimum Target/Risk Ratio (1.0-3.0)
โข Default: 1.5
โข Minimum acceptable reward vs risk
โข Higher filters lower probability setups
โข Professional standard: 1.5-2.0
Fixed Mode Settings:
โข Fixed Target Distance: 50 points default
โข Fixed Invalidation Distance: 30 points default
โข Use for consistent instruments
Dynamic Mode Settings:
โข Dynamic Target Multiplier: 1.8x ATR default
โข Dynamic Invalidation Multiplier: 1.0x ATR default
โข Adapts to volatility automatically
Market Adaptive Settings:
โข Use Structure Levels: True (default)
โข Structure Level Buffer: 0.1% default
โข Places levels at actual support/resistance
Section 9: Visual Display Settings
Color Theme Options
โข Professional (Teal/Red)
- Bullish: Teal (#26a69a)
- Bearish: Red (#ef5350)
- Neutral: Gray (#78909c)
- Best for: Traditional traders, clean appearance
โข Dark (Neon Green/Pink)
- Bullish: Neon Green (#00ff88)
- Bearish: Hot Pink (#ff0044)
- Neutral: Dark Gray (#333333)
- Best for: Dark theme users, high contrast
โข Light (Green/Red Classic)
- Bullish: Green (#4caf50)
- Bearish: Red (#f44336)
- Neutral: Light Gray (#9e9e9e)
- Best for: Light backgrounds, traditional colors
โข Vibrant (Cyan/Magenta)
- Bullish: Cyan (#00ffff)
- Bearish: Magenta (#ff00ff)
- Neutral: Medium Gray (#888888)
- Best for: High visibility, modern appearance
Dashboard Position
โข Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Left, Middle Right
โข Default: Top Right
โข Choose based on chart layout preference
Dashboard Size
โข Full: Complete information display (desktop)
โข Mobile: Compact view for small screens
โข Default: Full
Analysis Display Style
โข Arrows : Simple directional markers
โข Labels : Detailed text information
โข Zones : Colored areas showing pattern regions
โข Default: Labels (most informative)
Display Options:
โข Display Analysis Strength: Shows star rating
โข Display Target Levels: Shows target/invalidation lines
โข Display Market Regime: Shows regime in pattern labels
---
HOW TO USE SMPS - DETAILED GUIDE
Understanding the Dashboard
Top Row - Header
โข SMPS Dashboard title
โข VALUE column: Current readings
โข STATUS column: Condition assessments
Market Regime Row
โข Shows: TRENDING, RANGING, VOLATILE, QUIET, or TRANSITIONAL
โข Color coding: Green = Favorable, Red = Caution
โข Status: FAVORABLE or CAUTION trading conditions
Market Score Row
โข Percentage from 0-100%
โข Above 60% = Strong conditions
โข 40-60% = Moderate conditions
โข Below 40% = Weak conditions
Structure Row
โข Direction: BULLISH, BEARISH, or NEUTRAL
โข Status: INTACT or BREAK
โข Orange BREAK indicates structure failure
Volume Flow Row
โข Direction: BUYING or SELLING
โข Intensity: STRONG or WEAK
โข Color indicates dominant pressure
Momentum Row
โข Numerical momentum value
โข Positive = Upward pressure
โข Negative = Downward pressure
Volume Status Row
โข INST = Institutional activity detected
โข HIGH = Above average volume
โข NORM = Normal volume levels
Adaptive Mode Row
โข ACTIVE = Parameters adjusting
โข STATIC = Fixed parameters
โข Shows required confirmations
Analysis Level Row
โข Minimum strength level setting
โข Pattern separation in bars
Market State Row
โข Current analysis: BULLISH, BEARISH, NEUTRAL
โข Shows analysis price level when active
T:R Ratio Row
โข Current target to risk ratio
โข GOOD = Meets minimum requirement
โข LOW = Below minimum threshold
Strength Row
โข BULL or BEAR dominance
โข Numerical strength value 0-100
Price Row
โข Current price
โข Percentage change
Last Analysis Row
โข Previous pattern direction
โข Bars since last pattern
Reading Pattern Signals
Bullish Structure Pattern
โข Upward triangle or "Bullish Structure" label
โข Star rating shows strength (โ
โ
โ
โ
โ
= strongest)
โข Green line = potential target level
โข Red dashed line = invalidation level
โข Appears below price bars
Bearish Structure Pattern
โข Downward triangle or "Bearish Structure" label
โข Star rating indicates reliability
โข Green line = potential target level
โข Red dashed line = invalidation level
โข Appears above price bars
Pattern Strength Interpretation
โข โ
โ
โ
โ
โ
= 6 confirmations (exceptional)
โข โ
โ
โ
โ
โ = 5 confirmations (strong)
โข โ
โ
โ
โโ = 4 confirmations (moderate)
โข โ
โ
โโโ = 3 confirmations (minimum)
โข Below minimum = filtered out
Visual Elements on Chart
Lines and Levels:
โข Gray Line = 21 EMA trend reference
โข Green Stepline = Dynamic support level
โข Red Stepline = Dynamic resistance level
โข Green Solid Line = Active target level
โข Red Dashed Line = Active invalidation level
Pattern Markers:
โข Triangles = Arrow display mode
โข Text Labels = Label display mode
โข Colored Boxes = Zone display mode
Target Completion Labels:
โข "Target" = Price reached target level
โข "Invalid" = Pattern invalidated by price
---
RECOMMENDED USAGE BY TIMEFRAME
1-Minute Charts (Scalping)
โข Sensitivity: 0.8-1.2
โข Noise Reduction: 3-4
โข Pattern Separation: 3-5 bars
โข High Confirmation: Optional
โข Best for: Quick intraday moves
5-Minute Charts (Precision Intraday)
โข Sensitivity: 1.0 (default)
โข Noise Reduction: 4 (default)
โข Pattern Separation: 8 bars
โข High Confirmation: Enabled
โข Best for: Day trading
15-Minute Charts (Short Swing)
โข Sensitivity: 1.0-1.5
โข Noise Reduction: 4-5
โข Pattern Separation: 10-12 bars
โข High Confirmation: Enabled
โข Best for: Intraday swings
30-Minute to 1-Hour (Position Trading)
โข Sensitivity: 1.5-2.0
โข Noise Reduction: 5-7
โข Pattern Separation: 15-20 bars
โข Regime Period: 75-100
โข Best for: Multi-day positions
Daily Charts (Swing Trading)
โข Sensitivity: 1.8-2.0
โข Noise Reduction: 6-7
โข Pattern Separation: 20 bars
โข All filters enabled
โข Best for: Long-term analysis
---
MARKET-SPECIFIC SETTINGS
Forex Pairs
โข Minimum Move: 0.05-0.10%
โข Institutional Threshold: 1.5-2.0
โข Volume Surge: 1.8-2.2
โข Target Mode: Dynamic or Market Adaptive
Stock Indices (ES, NQ, YM)
โข Minimum Move: 0.10-0.15%
โข Institutional Threshold: 2.0-2.5
โข Volume Surge: 2.5-3.0
โข Target Mode: Market Adaptive
Individual Stocks
โข Minimum Move: 0.15-0.25%
โข Institutional Threshold: 2.0-2.5
โข Volume Surge: 2.5-3.5
โข Target Mode: Dynamic
Cryptocurrency
โข Minimum Move: 0.20-0.50%
โข Institutional Threshold: 2.5-3.5
โข Volume Surge: 3.0-4.5
โข Target Mode: Dynamic
โข Increase noise reduction
---
PRACTICAL APPLICATION EXAMPLES
Example 1: Strong Trending Market
Dashboard Reading:
โข Market Regime: TRENDING
โข Market Score: 75%
โข Structure: BULLISH, INTACT
โข Volume Flow: BUYING, STRONG
โข Momentum: +0.45
Interpretation:
โข Strong uptrend environment
โข Institutional buying present
โข Look for bullish patterns as continuation
โข Higher probability of success
โข Consider using lower sensitivity
Example 2: Range-Bound Conditions
Dashboard Reading:
โข Market Regime: RANGING
โข Market Score: 35%
โข Structure: NEUTRAL
โข Volume Flow: SELLING, WEAK
โข Momentum: -0.05
Interpretation:
โข No clear direction
โข Low opportunity environment
โข Patterns are less reliable
โข Consider waiting for regime change
โข Or switch to a range-trading approach
Example 3: Structure Break Alert
Dashboard Reading:
โข Previous: BULLISH structure
โข Current: Structure BREAK
โข Volume: INST flag active
โข Momentum: Shifting negative
Interpretation:
โข Trend reversal potentially beginning
โข Institutional participation detected
โข Watch for bearish pattern confirmation
โข Adjust bias accordingly
โข Increase caution on long positions
Example 4: Volatile Market
Dashboard Reading:
โข Market Regime: VOLATILE
โข Market Score: 45%
โข Adaptive Mode: ACTIVE
โข Confirmations: Increased to 6
Interpretation:
โข Choppy conditions
โข Parameters auto-adjusted
โข Fewer but higher quality patterns
โข Wider stops may be needed
โข Consider reducing position size
Below are a few chart examples of the Smart Money Precision Structure (SMPS) indicator in action.
โข Example 1 โ Bullish Structure Detection on SOLUSD 5m
โข Example 2 โ Bearish Structure Detected with Strong Confluence on SOLUSD 5m
---
TROUBLESHOOTING GUIDE
No Patterns Appearing
Check these settings:
โข High Confirmation Mode may be too restrictive
โข Minimum Strength Level may be too high
โข Market Clarity threshold may be too high
โข Regime filter may be blocking patterns
โข Try increasing sensitivity
Too Many Patterns
Adjust these settings:
โข Enable High Confirmation Mode
โข Increase Minimum Strength Level to 5
โข Increase Pattern Separation
โข Reduce Sensitivity below 1.0
โข Enable all technical filters
Dashboard Shows "CAUTION"
This indicates:
โข Market conditions are unfavorable
โข Regime is RANGING or QUIET
โข Market score is low
โข Consider waiting for better conditions
โข Or adjust expectations accordingly
Patterns Not Reaching Targets
Consider:
โข Market may be choppy
โข Volatility may have changed
โข Try Dynamic target mode
โข Reduce target/risk ratio requirement
โข Check if regime is VOLATILE
---
ALERTS CONFIGURATION
Alert Message Format
Alerts include:
โข Pattern type (Bullish/Bearish)
โข Strength rating
โข Market regime
โข Analysis price level
โข Target and invalidation levels
โข Strength percentage
โข Target/Risk ratio
โข Educational disclaimer
Setting Up Alerts
โข Click Alert button on TradingView
โข Select SMPS indicator
โข Choose alert frequency
โข Customize message if desired
โข Alerts fire on pattern detection
---
DATA WINDOW INFORMATION
The Data Window displays:
โข Market Regime Score (0-100)
โข Market Structure Bias (-1 to +1)
โข Bullish Strength (0-100)
โข Bearish Strength (0-100)
โข Bull Target/Risk Ratio
โข Bear Target/Risk Ratio
โข Relative Volume
โข Momentum Value
โข Volume Flow Strength
โข Bull Confirmations Count
โข Bear Confirmations Count
---
BEST PRACTICES AND TIPS
For Beginners
โข Start with default settings
โข Use High Confirmation Mode
โข Focus on TRENDING regime only
โข Paper trade first
โข Learn one timeframe thoroughly
For Intermediate Users
โข Experiment with sensitivity settings
โข Try different target modes
โข Use multiple timeframes
โข Combine with price action analysis
โข Track pattern success rate
For Advanced Users
โข Customize per instrument
โข Create setting templates
โข Use regime information for bias
โข Combine with other indicators
โข Develop systematic rules
---
IMPORTANT DISCLAIMERS
โข This indicator is for educational and informational purposes only
โข Not financial advice or a trading system
โข Past performance does not guarantee future results
โข Trading involves substantial risk of loss
โข Always use appropriate risk management
โข Verify patterns with additional analysis
โข The author is not a registered investment advisor
โข No liability accepted for trading losses
---
VERSION NOTES
Version 1.0.0 - Initial Release
โข Six-layer confluence system
โข Adaptive parameter technology
โข Institutional volume detection
โข Market regime classification
โข Structure break identification
โข Real-time dashboard
โข Multiple display modes
โข Comprehensive settings
## My Final Thoughts
Smart Money Precision Structure represents an advanced approach to market analysis, bringing institutional-grade techniques to retail traders through intelligent automation and multi-dimensional evaluation. By combining six analytical frameworks with adaptive parameter adjustment, SMPS provides comprehensive market intelligence that single indicators cannot achieve.
The indicator serves as an educational tool for understanding how professional traders analyze markets, while providing practical pattern detection for those seeking to improve their technical analysis. Remember that all trading involves risk, and this tool should be used as part of a complete analysis approach, not as a standalone trading system.
- BullByte
Beta Zones [MMT]Beta Zones
Overview
The Beta Zones indicator is a multi-timeframe analysis tool designed to identify and visualize price ranges (zones) across different timeframes on a TradingView chart. It draws boxes to represent high and low price levels for each enabled timeframe, helping traders spot key support and resistance zones, track price movements, and assess market signals relative to these zones. The indicator is highly customizable, allowing users to toggle timeframes, adjust colors, and control historical visibility.
Features
Multi-Timeframe Support : Tracks up to five user-defined timeframes (default: 15m, 1H, 4H, 1D, 1W) to display price zones.
Dynamic Price Boxes : Draws boxes on the chart to represent the high and low prices for each timeframe, updating dynamically as new bars form.
Signal Indicators : Provides directional signals (โฒ, โผ, โ) based on the previous close relative to the current box's top and bottom.
Customizable Display : Includes options to show or hide historical boxes, adjust box colors, and configure a summary table.
Summary Table : Displays a table with timeframe status, price range, and signal information for quick reference.
Settings
Timeframes
Enable/Disable : Toggle each timeframe (e.g., 15m, 1H, 4H, 1D, 1W) to display or hide its respective zones.
Timeframe Selection : Choose custom timeframes for each of the five slots.
Color Customization : Set unique fill and border colors for each timeframe's boxes (default colors: green, blue, orange, purple, red).
Display
Max Historical Boxes : Limit the number of historical boxes per timeframe (default: 1, max: 50).
Show History : Toggle visibility of historical boxes (default: false, showing only the latest box).
Min Box Height : Ensures boxes have a minimum height in ticks (default: 1.0, currently hardcoded).
Table
Show Table : Enable or disable the summary table (default: true).
Background Color : Customize the table's background color.
Header Color : Set the color for the table's header row.
Text Color : Adjust the text color for table content.
Table Columns
Timeframe : Displays the selected timeframe (e.g., 15m, 1H).
Color : Shows the color associated with the timeframe's boxes.
Status : Indicates if the timeframe is "Active" (valid and lower than the chart's timeframe), "Invalid" (enabled but not lower), or "Disabled".
Range : Shows the price range (high - low) of the current box.
Signal : Displays โฒ (price above box), โผ (price below box), or โ (price within box) based on the previous close.
How to Use
Add to Chart : Apply the indicator to your TradingView chart.
Configure Timeframes : Enable desired timeframes and adjust their settings (e.g., 15m, 1H) to match your trading strategy.
Analyze Zones : Use the boxes to identify key price levels for support, resistance, or breakout opportunities.
Monitor Signals : Check the table's "Signal" column to gauge price direction relative to each timeframe's zone.
Customize Appearance : Adjust colors and historical box visibility to suit your preferences.
Ideal For
Swing Traders : Identify key price zones across multiple timeframes for entry/exit points.
Day Traders : Monitor short-term price movements relative to higher timeframe zones.
Technical Analysts : Combine with other indicators to confirm support/resistance levels.
Polynomial Regression HeatmapPolynomial Regression Heatmap โ Advanced Trend & Volatility Visualizer
Overview
The Polynomial Regression Heatmap is a sophisticated trading tool designed for traders who require a clear and precise understanding of market trends and volatility. By applying a second-degree polynomial regression to price data, the indicator generates a smooth trend curve, augmented with adaptive volatility bands and a dynamic heatmap. This framework allows users to instantly recognize trend direction, potential reversals, and areas of market strength or weakness, translating complex price action into a visually intuitive map.
Unlike static trend indicators, the Polynomial Regression Heatmap adapts to changing market conditions. Its visual designโincluding color-coded candles, regression bands, optional polynomial channels, and breakout markersโensures that price behavior is easy to interpret. This makes it suitable for scalping, swing trading, and longer-term strategies across multiple asset classes.
How It Works
The core of the indicator relies on fitting a second-degree polynomial to a defined lookback period of price data. This regression curve captures the non-linear nature of market movements, revealing the true trajectory of price beyond the distortions of noise or short-term volatility.
Adaptive upper and lower bands are constructed using ATR-based scaling, surrounding the regression line to reflect periods of high and low volatility. When price moves toward or beyond these bands, it signals areas of potential overextension or support/resistance.
The heatmap colors each candle based on its relative position within the bands. Green shades indicate proximity to the upper band, red shades indicate proximity to the lower band, and neutral tones represent mid-range positioning. This continuous gradient visualization provides immediate feedback on trend strength, market balance, and potential turning points.
Optional polynomial channels can be overlaid around the regression curve. These three-line channels are based on regression residuals and a fixed width multiplier, offering additional reference points for analyzing price deviations, trend continuation, and reversion zones.
Signals and Breakouts
The Polynomial Regression Heatmap includes statistical pivot-based signals to highlight actionable price movements:
Buy Signals โ A triangular marker appears below the candle when a pivot low occurs below the lower regression band.
Sell Signals โ A triangular marker appears above the candle when a pivot high occurs above the upper regression band.
These markers identify significant deviations from the regression curve while accounting for volatility, providing high-quality visual cues for potential entry points.
The indicator ensures clarity by spacing markers vertically using ATR-based calculations, preventing overlap during periods of high volatility. Users can rely on these signals in combination with heatmap intensity and regression slope for contextual confirmation.
Interpretation
Trend Analysis :
The slope of the polynomial regression line represents trend direction. A rising curve indicates bullish bias, a falling curve indicates bearish bias, and a flat curve indicates consolidation.
Steeper slopes suggest stronger momentum, while gradual slopes indicate more moderate trend conditions.
Volatility Assessment :
Band width provides an instant visual measure of market volatility. Narrow bands correspond to low volatility and potential consolidation, whereas wide bands indicate higher volatility and significant price swings.
Heatmap Coloring :
Candle colors visually represent price position within the bands. This allows traders to quickly identify zones of bullish or bearish pressure without performing complex calculations.
Channel Analysis (Optional) :
The polynomial channel defines zones for evaluating potential overextensions or retracements. Price interacting with these lines may suggest areas where mean-reversion or trend continuation is likely.
Breakout Signals :
Buy and Sell markers highlight pivot points relative to the regression and volatility bands. These are statistical signals, not arbitrary triggers, and should be interpreted in context with trend slope, band width, and heatmap intensity.
Strategy Integration
The Polynomial Regression Heatmap supports multiple trading approaches:
Trend Following โ Enter trades in the direction of the regression slope while using the heatmap for momentum confirmation.
Pullback Entries โ Use breakouts or deviations from the regression bands as low-risk entry points during trend continuation.
Mean Reversion โ Price reaching outer channel boundaries can indicate potential reversal or retracement opportunities.
Multi-Timeframe Alignment โ Overlay on higher and lower timeframes to filter noise and improve entry timing.
Stop-loss levels can be set just beyond the opposing regression band, while take-profit targets can be informed by the distance between the bands or the curvature of the polynomial line.
Advanced Techniques
For traders seeking greater precision:
Combine the Polynomial Regression Heatmap with volume, momentum, or volatility indicators to validate signals.
Observe the width and slope of the regression bands over time to anticipate expanding or contracting volatility.
Track sequences of breakout signals in conjunction with heatmap intensity for systematic trade management.
Adjusting regression length allows customization for different assets or timeframes, balancing responsiveness and smoothing. The combination of polynomial curve, adaptive bands, heatmap, and optional channels provides a comprehensive statistical framework for informed decision-making.
Inputs and Customization
Regression Length โ Determines the number of bars used for polynomial fitting. Shorter lengths increase responsiveness; longer lengths improve smoothing.
Show Bands โ Toggle visibility of the ATR-based regression bands.
Show Channel โ Enable or disable the polynomial channel overlay.
Color Settings โ Customize bullish, bearish, neutral, and accent colors for clarity and visual preference.
All other internal parameters are fixed to ensure consistent statistical behavior and minimize potential misconfiguration.
Why Use Polynomial Regression Heatmap
The Polynomial Regression Heatmap transforms complex price action into a clear, actionable visual framework. By combining non-linear trend mapping, adaptive volatility bands, heatmap visualization, and breakout signals, it provides a multi-dimensional perspective that is both quantitative and intuitive.
This indicator allows traders to focus on execution, interpret market structure at a glance, and evaluate trend strength, overextensions, and potential reversals in real time. Its design is compatible with scalping, swing trading, and long-term strategies, providing a robust tool for disciplined, data-driven trading.
Master Candle# Master Candle Indicator
## Overview
The Master Candle Indicator identifies and highlights significant price consolidation patterns where multiple candles trade within the high-low range of a single "master" candle. This technical analysis tool helps traders spot potential breakout zones and key support/resistance levels.
## What is a Master Candle?
A Master Candle is a candlestick that contains 4 or more subsequent candles completely within its high-low range. These formations often indicate:
- Market consolidation phases
- Potential breakout areas
- Strong support and resistance levels
- Areas of price compression before significant moves
## Features
โ
**Automatic Detection**: Scans historical data to identify Master Candle patterns
โ
**Visual Highlighting**: Draws colored boxes around detected Master Candles
โ
**Customizable Parameters**: Adjust minimum candles required (2-20)
โ
**Candle Counter**: Shows exact number of candles contained within each Master Candle
โ
**Performance Optimized**: Efficient lookback system with memory management
โ
**Clean Interface**: Non-intrusive visual design that doesn't clutter charts
## How to Use
1. Add the indicator to your chart
2. Adjust the "Minimum candles inside" parameter (default: 4)
3. Set the lookback period for historical scanning (default: 50)
4. Master Candles will be automatically highlighted with colored boxes
5. Use these levels as potential support/resistance zones for your trading strategy
## Settings
- **Minimum candles inside**: Set how many candles must be contained (2-20)
- **Lookback period**: How far back to scan for patterns (10-200 bars)
## Educational Purpose
This indicator is designed for educational and analysis purposes. It helps traders:
- Understand market consolidation patterns
- Identify potential breakout zones
- Recognize key support and resistance areas
- Improve market structure analysis skills
## Technical Details
- Compatible with all timeframes
- Works on any trading instrument
- Optimized for performance with automatic memory management
- Uses historical data analysis for pattern detection
## Important Notes
- This indicator is for educational and analytical purposes only
- Past patterns do not guarantee future results
- Always combine with other analysis tools
- Practice proper risk management in your trading
- Not financial advice - for educational use only
[blackcat] L1 Value Trend IndicatorOVERVIEW
The L1 Value Trend Indicator is a sophisticated technical analysis tool designed for TradingView users seeking advanced market trend identification and trading signals. This comprehensive indicator combines multiple analytical techniques to provide traders with a holistic view of market dynamics, helping identify potential entry and exit points through various signal mechanisms. ๐ It features a main Value Trend line along with a lagged version, golden cross and dead cross signals, and multiple technical indicators including RSI, Williams %R, Stochastic %K/D, and Relative Strength calculations. The indicator also includes reference levels for support and resistance analysis, making it a versatile tool for both short-term and long-term trading strategies. โ
FEATURES
๐ Primary Value Trend Line: Calculates a smoothed value trend using a combination of SMA and custom smoothing techniques
๐ Value Trend Lag: Implements a lagged version of the main trend line for cross-over analysis
๐ Golden Cross & Dead Cross Signals: Identifies buy/sell opportunities when the main trend line crosses its lagged version
๐ธ Multi-Indicator Integration: Combines multiple technical analysis tools for comprehensive market view
๐ RSI Calculations: Includes 6-period, 7-period, and 13-period RSI calculations for momentum analysis
๐ Williams %R: Provides overbought/oversold conditions using the Williams %R formula
๐ Stochastic Oscillator: Implements both Stochastic %K and %D calculations for momentum confirmation
๐ Relative Strength: Calculates relative strength based on highest highs and current price
โ
Visual Labels: Displays BUY and SELL labels on chart when crossover conditions are met
๐ฃ Alert Conditions: Provides automated alert conditions for golden cross and dead cross events
๐ Reference Levels: Plots entry (25) and exit (75) reference lines for support/resistance analysis
HOW TO USE
Copy the Script: Copy the complete Pine Script code from the original file
Open TradingView: Navigate to TradingView website or application
Access Pine Editor: Go to the Pine Script editor (usually found in the chart toolbar)
Paste Code: Paste the copied script into the editor
Save Script: Save the script with a descriptive name like " L1 Value Trend Indicator"
Select Chart: Choose the chart where you want to apply the indicator
Add Indicator: Apply the indicator to your chart
Configure Parameters: Adjust input parameters to customize behavior
Monitor Signals: Watch for golden cross (BUY) and dead cross (SELL) signals
Use Reference Levels: Monitor entry (25) and exit (75) lines for support/resistance levels
LIMITATIONS
โ ๏ธ Potential Repainting: The script may repaint due to lookahead bias in some calculations
๐ Lookahead Bias: Some calculations may reference future values, potentially causing repainting issues
๐ Parameter Sensitivity: Results may vary significantly with different parameter settings
๐ Computational Complexity: May impact chart performance with heavy calculations on large datasets
๐ Resource Usage: Requires significant processing power for multiple indicator calculations
๐ Data Sensitivity: Results may be affected by data quality and market conditions
NOTES
๐ Signal Timing: Cross-over signals may lag behind actual price movements
๐ Parameter Optimization: Optimal parameters may vary by market conditions and asset type
๐ Market Conditions: Performance may vary significantly across different market environments
๐ Multi-Indicator: Combine signals with other technical indicators for confirmation
๐ Timeframe Analysis: Use multiple timeframes for enhanced signal accuracy
๐ Volume Analysis: Incorporate volume data for additional confirmation
๐ Strategy Integration: Consider using this indicator as part of a broader trading strategy
๐ Risk Management: Use signals as part of a comprehensive risk management approach
๐ Backtesting: Test parameter combinations with historical data before live trading
THANKS
๐ Original Creator: blackcat1402 creates the L1 Value Trend Indicator
๐ Community Contributions: Recognition to TradingView community for continuous improvements and contributions
๐ Collaborative Development: Appreciation for collaborative efforts in enhancing technical analysis tools
๐ TradingView Community: Special thanks to TradingView community members for their ongoing support and feedback
๐ Educational Resources: Recognition of educational resources that helped in understanding technical analysis principles
Fractals + FVG [Combined]ะะฒััะฝะพ, ะพัั ะฒะฐััะฐะฝั ะพะฟะธัั ะฐะฝะณะปัะนััะบะพั, ัะบะธะน ะผะพะถะฝะฐ ะฒะธะบะพัะธััะฐัะธ ะดะปั ะฟัะฑะปัะบะฐััั ัะฝะดะธะบะฐัะพัะฐ ะฒ TradingView.
Description
This script combines two powerful and widely-used trading concepts into a single, comprehensive indicator: Bill Williams Fractals with dynamic support/resistance lines and Fair Value Gaps (FVG) based on the popular logic from LuxAlgo.
The goal is to provide a cleaner chart by merging two essential tools, allowing traders to analyze market structure and imbalances simultaneously.
Features
1. Williams Fractals with Invalidation Lines
This part of the indicator identifies classic Bill Williams fractals and enhances them with a unique visualization feature.
Fractal Detection: Automatically identifies both bullish (bottom) and bearish (top) fractals. You can choose between a 3-bar or 5-bar pattern in the settings.
Dynamic S/R Lines: A horizontal line is automatically drawn from every confirmed fractal, acting as a potential support or resistance level.
Automatic Invalidation: A line is considered "invalidated" or breached when the body of a candle closes past it. When this happens, the line stops extending, changes its color to the "invalidated" color, and remains on the chart as a historical reference. This provides a clear, objective signal that a level has been broken.
Customization: You can fully customize the colors for the support, resistance, and invalidated lines to match your chart theme.
2. Fair Value Gaps (FVG) / Imbalance
This module incorporates the robust FVG detection logic from LuxAlgo to automatically identify and display market imbalances.
FVG Detection: Highlights bullish and bearish Fair Value Gaps on the chart with colored boxes, representing inefficiencies in price delivery.
Automatic Mitigation: The FVG boxes are automatically removed from the chart once the price has "mitigated" or filled the gap, keeping your workspace clean and focused on active imbalances.
Multi-Timeframe (MTF): You can set the indicator to find and display FVGs from a higher timeframe directly on your current chart.
Dashboard: An optional on-screen dashboard provides a quick summary of the total count of bullish/bearish FVGs and the percentage that have been mitigated.
Full Customization: Control the colors of FVG boxes, extend their length, and configure other visual style settings.
How to Use
Fractal Lines: Use the active support and resistance lines as key levels for potential bounces or breaks. A line's invalidation can serve as confirmation of a shift in market structure.
FVG Zones: Fair Value Gaps often act as "magnets" for price. Use these zones as potential targets for your trades or as areas of interest for entries when price retraces to fill the imbalance.
Combined Strategy: The true power of this indicator comes from combining both concepts. For example, a bullish FVG forming near a key fractal support level can create a high-probability confluence zone for a long entry. Similarly, a break and invalidation of a fractal resistance line might signal that price is heading towards the next bearish FVG above.
This indicator is a tool for analysis and should be used in conjunction with your own trading strategy and risk management rules.
Smart Money SignalsSmart Money Signals โ Market Flow & Structure Visualizer
Overview
Smart Money Signals is a precision trading tool designed for traders who want to see market structure and momentum flow in real time. By detecting pivots, momentum imbalances, and dynamic support/resistance levels, the indicator transforms raw price action into a clear visual narrative of where capital is entering and exiting the market.
Instead of lagging averages or cluttered signals, Smart Money Signals highlights the moments that matter mostโwhere bullish and bearish flows are confirmed, where support or resistance breaks, and where momentum zones show the true battleground between buyers and sellers. Its adaptive design makes it equally effective for scalpers seeking sharp entries, swing traders tracking reversals, and longer-term traders looking for confirmation of bias.
How It Works
The engine behind Smart Money Signals relies on swing detection and a configurable sensitivity filter. By monitoring directional momentum across recent bars, the system identifies bullish pivots (where downside exhaustion flips into strength) and bearish pivots (where upward thrust collapses into weakness).
When price confirms a pivot, the indicator draws flow lines to mark the breakout and labels them as either continuation or reversal events, depending on existing market bias. Momentum zones are automatically plotted, highlighting the critical areas where buyers defended price or sellers pressed it lower.
Dynamic support and resistance levels extend forward in time, updating live as price develops. These zones change color when broken, visually signaling whether structure has held or failed. Gradient background shading further emphasizes moments of extreme momentum, such as overbought or oversold surges, so that traders instantly see when market pressure intensifies.
Signals and Market Flows
Smart Money Signals provides visual cues that are both intuitive and actionable:
๐ Bullish Flow Signals appear when price breaks above a confirmed pivot, signaling continuation or reversal into strength.
๐ Bearish Flow Signals appear when price breaks below a confirmed pivot, indicating continuation or reversal into weakness.
Momentum Zones highlight the defended areas between pivots, giving traders a visual map of where structure is strongest.
Dynamic Support & Resistance lines extend across the chart, shifting from defense to failure when broken, ensuring that the most relevant levels are always visible.
Break Signals mark the exact bar where key levels give way, confirming structural violations in real time.
By filtering out noise and focusing on meaningful flow events, the system helps traders avoid overreaction and focus only on high-probability structural shifts.
Strategy Integration
Smart Money Signals is versatile across trading styles:
Trend Continuation : Enter in the direction of flow signals, using dynamic zones as both confirmation and stop-loss placement.
Reversal Trading : Watch for pivots tagged as reversal points, where market bias flips and new structure is created.
Momentum Zone Entries : Use the automatically drawn zones to identify low-risk entries on pullbacks or retests.
Bias Alignment : The integrated dashboard reveals the current market biasโbullish, bearish, or neutralโhelping traders stay aligned with the dominant flow.
Stop-losses can be positioned beyond the dynamic zone on the opposite side, while take-profits may be guided by the width of zones or momentum-driven extensions. On higher timeframes, the indicator provides context for macro structure, while lower timeframes allow for tactical entry refinement.
Advanced Techniques
Traders seeking deeper precision can combine Smart Money Signals with volume or order flow tools to validate pivots and zone defenses. Monitoring the sequence of bullish and bearish flows helps identify trend maturity, while analyzing the success rate of pivots in the analytics panel builds a data-driven approach to confidence in signals.
Adjusting swing period and sensitivity allows the indicator to adapt to different market conditions, from volatile crypto pairs to steady forex majors. The flexible visual themesโCyber, Ocean, Sunset, Matrixโensure readability across setups, while gradient shading keeps the chart intuitive even under fast-moving conditions.
Why Use Smart Money Signals
Markets are driven by liquidity, momentum, and structure. Smart Money Signals uncovers these forces by translating price action into a clear visual map of flow. It shows:
Where structure was built.
Where it was defended.
Where it was broken.
And where momentum is likely to carry next.
By combining flow detection, dynamic zones, and a live analytics dashboard, the indicator provides traders with a complete framework for reading price action in real time.
Whether you trade crypto, forex, or indices, Smart Money Signals adapts seamlessly to any asset class, giving you clarity, precision, and confidence to execute without second-guessing.
Advanced Volume Profile Pro Delta + POC + VAH/VAL# Advanced Volume Profile Pro - Delta + POC + VAH/VAL Analysis System
## WHAT THIS SCRIPT DOES
This script creates a comprehensive volume profile analysis system that combines traditional volume-at-price distribution with delta volume calculations, Point of Control (POC) identification, and Value Area (VAH/VAL) analysis. Unlike standard volume indicators that show only total volume over time, this script analyzes volume distribution across price levels and estimates buying vs selling pressure using multiple calculation methods to provide deeper market structure insights.
## WHY THIS COMBINATION IS ORIGINAL AND USEFUL
**The Problem Solved:** Traditional volume indicators show when volume occurs but not where price finds acceptance or rejection. Standalone volume profiles lack directional bias information, while basic delta calculations don't provide structural context. Traders need to understand both volume distribution AND directional sentiment at key price levels.
**The Solution:** This script implements an integrated approach that:
- Maps volume distribution across price levels using configurable row density
- Estimates delta (buying vs selling pressure) using three different methodologies
- Identifies Point of Control (highest volume price level) for key support/resistance
- Calculates Value Area boundaries where 70% of volume traded
- Provides real-time alerts for key level interactions and volume imbalances
**Unique Features:**
1. **Developing POC Visualization**: Real-time tracking of Point of Control migration throughout the session via blue dotted trail, revealing institutional accumulation/distribution patterns before they complete
2. **Multi-Method Delta Calculation**: Price Action-based, Bid/Ask estimation, and Cumulative methods for different market conditions
3. **Adaptive Timeframe System**: Auto-adjusts calculation parameters based on chart timeframe for optimal performance
4. **Flexible Profile Types**: N Bars Back (precise control), Days Back (calendar-based), and Session-based analysis modes
5. **Advanced Imbalance Detection**: Identifies and highlights significant buying/selling imbalances with configurable thresholds
6. **Comprehensive Alert System**: Monitors POC touches, Value Area entry/exit, and major volume imbalances
## HOW THE SCRIPT WORKS TECHNICALLY
### Core Volume Profile Methodology:
**1. Price Level Distribution:**
- Divides price range into user-defined rows (10-50 configurable)
- Calculates row height: `(Highest Price - Lowest Price) / Number of Rows`
- Distributes each bar's volume across price levels it touched proportionally
**2. Delta Volume Calculation Methods:**
**Price Action Method:**
```
Price Range = High - Low
Buy Pressure = (Close - Low) / Price Range
Sell Pressure = (High - Close) / Price Range
Buy Volume = Total Volume ร Buy Pressure
Sell Volume = Total Volume ร Sell Pressure
Delta = Buy Volume - Sell Volume
```
**Bid/Ask Estimation Method:**
```
Average Price = (High + Low + Close) / 3
Buy Volume = Close > Average ? Volume ร 0.6 : Volume ร 0.4
Sell Volume = Total Volume - Buy Volume
```
**Cumulative Method:**
```
Buy Volume = Close > Open ? Volume : Volume ร 0.3
Sell Volume = Close โค Open ? Volume : Volume ร 0.3
```
**3. Point of Control (POC) Identification:**
- Scans all price levels to find maximum volume concentration
- POC represents the price level with highest trading activity
- Acts as significant support/resistance level
- **Developing POC Feature**: Tracks POC evolution in real-time via blue dotted trail, showing how institutional interest migrates throughout the session. Upward POC migration indicates accumulation patterns, downward migration suggests distribution, providing early trend signals before price confirmation.
**4. Value Area Calculation:**
- Starts from POC and expands up/down to encompass 70% of total volume
- VAH (Value Area High): Upper boundary of value area
- VAL (Value Area Low): Lower boundary of value area
- Expansion algorithm prioritizes direction with higher volume
**5. Adaptive Range Selection:**
Based on profile type and timeframe optimization:
- **N Bars Back**: Fixed lookback period with performance optimization (20-500 bars)
- **Days Back**: Calendar-based analysis with automatic timeframe adjustment (1-365 days)
- **Session**: Current trading session or custom session times
### Performance Optimization Features:
- **Sampling Algorithm**: Reduces calculation load on large datasets while maintaining accuracy
- **Memory Management**: Clears previous drawings to prevent performance degradation
- **Safety Constraints**: Prevents excessive memory usage with configurable limits
## HOW TO USE THIS SCRIPT
### Initial Setup:
1. **Profile Configuration**: Select profile type based on trading style:
- N Bars Back: Precise control over data range
- Days Back: Intuitive calendar-based analysis
- Session: Real-time session development
2. **Row Density**: Set number of rows (30 default) - more rows = higher resolution, slower performance
3. **Delta Method**: Choose calculation method based on market type:
- Price Action: Best for trending markets
- Bid/Ask Estimate: Good for ranging markets
- Cumulative: Smoothed approach for volatile markets
4. **Visual Settings**: Configure colors, position (left/right), and display options
### Reading the Profile:
**Volume Bars:**
- **Length**: Represents relative volume at that price level
- **Color**: Green = net buying pressure, Red = net selling pressure
- **Intensity**: Darker colors indicate volume imbalances above threshold
**Key Levels:**
- **POC (Blue Line)**: Highest volume price - major support/resistance
- **VAH (Purple Dashed)**: Value Area High - upper boundary of fair value
- **VAL (Orange Dashed)**: Value Area Low - lower boundary of fair value
- **Value Area Fill**: Shaded region showing main trading range
**Developing POC Trail:**
- **Blue Dotted Lines**: Show real-time POC evolution throughout the session
- **Migration Patterns**: Upward trail indicates bullish accumulation, downward trail suggests bearish distribution
- **Early Signals**: POC movement often precedes price movement, providing advance warning of institutional activity
- **Institutional Footprints**: Reveals where smart money concentrated volume before final POC establishment
### Trading Applications:
**Support/Resistance Analysis:**
- POC acts as magnetic price level - expect reactions
- VAH/VAL provide intermediate support/resistance levels
- Profile edges show areas of low volume acceptance
**Developing POC Analysis:**
- **Upward Migration**: POC moving higher = institutional accumulation, bullish bias
- **Downward Migration**: POC moving lower = institutional distribution, bearish bias
- **Stable POC**: Tight clustering = balanced market, range-bound conditions
- **Early Trend Detection**: POC direction change often precedes price breakouts
**Entry Strategies:**
- Buy at VAL with POC as target (in uptrends)
- Sell at VAH with POC as target (in downtrends)
- Breakout plays above/below profile extremes
**Volume Imbalance Trading:**
- Strong buying imbalance (>60% threshold) suggests continued upward pressure
- Strong selling imbalance suggests continued downward pressure
- Imbalances near key levels provide high-probability setups
**Multi-Timeframe Context:**
- Use higher timeframe profiles for major levels
- Lower timeframe profiles for precise entries
- Session profiles for intraday trading structure
## SCRIPT SETTINGS EXPLANATION
### Volume Profile Settings:
- **Profile Type**: Determines data range for calculation
- N Bars Back: Exact number of bars (20-500 range)
- Days Back: Calendar days with timeframe adaptation (1-365 days)
- Session: Trading session-based (intraday focus)
- **Number of Rows**: Profile resolution (10-50 range)
- **Profile Width**: Visual width as chart percentage (10-50%)
- **Value Area %**: Volume percentage for VA calculation (50-90%, 70% standard)
- **Auto-Adjust**: Automatically optimizes for different timeframes
### Delta Volume Settings:
- **Show Delta Volume**: Enable/disable delta calculations
- **Delta Calculation Method**: Choose methodology based on market conditions
- **Highlight Imbalances**: Visual emphasis for significant volume imbalances
- **Imbalance Threshold**: Percentage for imbalance detection (50-90%)
### Session Settings:
- **Session Type**: Daily, Weekly, Monthly, or Custom periods
- **Custom Session Time**: Define specific trading hours
- **Previous Sessions**: Number of historical sessions to display
### Days Back Settings:
- **Lookback Days**: Number of calendar days to analyze (1-365)
- **Automatic Calculation**: Script automatically converts days to bars based on timeframe:
- Intraday: Accounts for 6.5 trading hours per day
- Daily: 1 bar per day
- Weekly/Monthly: Proportional adjustment
### N Bars Back Settings:
- **Lookback Bars**: Exact number of bars to analyze (20-500)
- **Precise Control**: Best for systematic analysis and backtesting
### Visual Customization:
- **Colors**: Bullish (green), Bearish (red), and level colors
- **Profile Position**: Left or Right side of chart
- **Profile Offset**: Distance from current price action
- **Labels**: Show/hide level labels and values
- **Smooth Profile Bars**: Enhanced visual appearance
### Alert Configuration:
- **POC Touch**: Alerts when price interacts with Point of Control
- **VA Entry/Exit**: Alerts for Value Area boundary interactions
- **Major Imbalance**: Alerts for significant volume imbalances
## VISUAL FEATURES
### Profile Display:
- **Horizontal Bars**: Volume distribution across price levels
- **Color Coding**: Delta-based coloring for directional bias
- **Smooth Rendering**: Optional smoothing for cleaner appearance
- **Transparency**: Configurable opacity for chart readability
### Level Lines:
- **POC**: Solid blue line with optional label
- **VAH/VAL**: Dashed colored lines with value displays
- **Extension**: Lines extend across relevant time periods
- **Value Area Fill**: Optional shaded region between VAH/VAL
### Information Table:
- **Current Values**: Real-time POC, VAH, VAL prices
- **VA Range**: Value Area width calculation
- **Positioning**: Multiple table positions available
- **Text Sizing**: Adjustable for different screen sizes
## IMPORTANT USAGE NOTES
**Realistic Expectations:**
- Volume profile analysis provides structural context, not trading signals
- Delta calculations are estimations based on price action, not actual order flow
- Past volume distribution does not guarantee future price behavior
- Combine with other analysis methods for comprehensive market view
**Best Practices:**
- Use appropriate profile types for your trading style:
- Day Trading: Session or Days Back (1-5 days)
- Swing Trading: Days Back (10-30 days) or N Bars Back
- Position Trading: Days Back (60-180 days)
- Consider market context (trending vs ranging conditions)
- Verify key levels with additional technical analysis
- Monitor profile development for changing market structure
**Performance Considerations:**
- Higher row counts increase calculation complexity
- Large lookback periods may affect chart performance
- Auto-adjust feature optimizes for most use cases
- Consider using session profiles for intraday efficiency
**Limitations:**
- Delta calculations are estimations, not actual transaction data
- Profile accuracy depends on available price/volume history
- Effectiveness varies across different instruments and market conditions
- Requires understanding of volume profile concepts for optimal use
**Data Requirements:**
- Requires volume data for accurate calculations
- Works best on liquid instruments with consistent volume
- May be less effective on very low volume or exotic instruments
This script serves as a comprehensive volume analysis tool for traders who need detailed market structure information with integrated directional bias analysis and real-time POC development tracking for informed trading decisions.
MA Suite | Lyro RSMA Suite | Lyro RS
Overview
The MA Suite is a versatile moving average visualization tool designed for traders who demand clarity, flexibility, and actionable market signals. With support for over 16 different moving average types, built-in trend detection, dynamic coloring, and optional support/resistance & rejection markers, it transforms the humble MA into a fully-featured decision-making aid.
Key Features
Multi-Type Moving Averages
Choose from 16 MA calculations including SMA, EMA, WMA, VWMA, HMA, LSMA, FRAMA, KAMA, JMA, T3, and more.
Tailor responsiveness vs. smoothness to your strategy.
Trend Logic Modes
Source Above MA โ Colors and signals are based on price position relative to the MA.
Rising MA โ Colors and signals are determined by MA slope direction.
Support & Resistance Markers
Plots โฒ for potential support touches.
Plots โผ for potential resistance touches when price interacts with the MA.
Rejection Signals
Flags bullish rejection when price bounces upward after an MA test.
Flags bearish rejection when price reverses downward after an MA test.
Plotted directly on the chart as labeled markers.
Customizable Color Palettes
Select from Classic, Mystic, Accented, or Royal themes.
Define custom bullish/bearish colors for complete visual control.
Glow & Styling Effects
Multi-layer glow lines around the MA enhance visibility.
Keeps charts clean while improving clarity.
How It Works
MA Calculation โ Applies the chosen MA type to your selected price source.
Trend Coloring โ Colors switch based on price position or MA slope logic.
Support/Resistance Detection โ Identifies MA โtouchโ events with โฒ or โผ markers.
Rejection Logic โ Detects reversals after MA touches, adding bullish/bearish labels.
Practical Use
Trend Following โ In โSource Above MAโ mode, use color changes and crossovers to confirm bias.
Dynamic S/R โ Use โฒ / โผ markers to identify support or resistance in trending or ranging markets.
Reversal Opportunities โ Monitor rejection labels for potential turning points against prevailing trend.
Customization
Select MA type and length to fine-tune indicator behavior.
Switch between trend modes for different trading styles.
Enable or disable S/R and rejection markers.
Personalize visuals with palette selection or custom colors.
โ ๏ธDisclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Anchored VWAP by Fin VirajSimple Anchored VWAP with Directional Colors
๐ Overview
A clean and efficient Anchored VWAP (Volume Weighted Average Price) indicator with dynamic directional coloring. This indicator provides traders with a reliable reference point for price action analysis based on volume-weighted calculations from specific anchor points.
โจ Key Features
๐ฏ Multiple Anchor Types
Session: Anchors to daily trading session start
Day: Resets at the beginning of each trading day
Week: Weekly anchor points for swing trading
Month: Monthly anchors for longer-term analysis
Manual Date: Set custom anchor date for specific events
๐ Directional Color System
๐ข Green: Price above VWAP with upward momentum
๐ด Red: Price below VWAP with downward momentum
๐ต Blue: Neutral/transitional conditions
๐ Standard Deviation Bands
Customizable multipliers (default: 1.0 and 2.0)
Toggle on/off as needed
Support and resistance levels based on statistical deviation
Filled area between bands for better visualization
๐ง Settings & Customization
Input Parameters
Anchor Type: Choose from 5 different anchor methods
Manual Anchor Date: Set specific date for manual anchoring
Reset Anchor Point: Manual reset button
Show Standard Deviation Bands: Toggle bands visibility
Band Multipliers: Adjust band distance (1ฯ and 2ฯ)
VWAP Line Width: Customize line thickness (1-4)
Color Customization
Bullish Color: Customize uptrend color
Bearish Color: Customize downtrend color
Neutral Color: Customize neutral state color
Band Color: Customize standard deviation bands color
๐ How to Use
For Day Trading
Set anchor type to "Session" or "Day"
Use VWAP as dynamic support/resistance
Green color = bullish bias, Red color = bearish bias
For Swing Trading
Set anchor type to "Week" or "Month"
Longer-term VWAP acts as major S/R level
Standard deviation bands show potential reversal zones
For Event-Based Analysis
Set anchor type to "Manual Date"
Choose significant event date (earnings, news, etc.)
Analyze price behavior relative to that anchor point
๐จ Visual Interpretation
VWAP Line Colors
Bright Green: Strong bullish momentum (price above rising VWAP)
Bright Red: Strong bearish momentum (price below falling VWAP)
Blue: Neutral conditions or transitional phase
Standard Deviation Bands
Upper Bands: Potential resistance levels
Lower Bands: Potential support levels
Band Touches: Often indicate reversal or continuation points
๐ก Trading Applications
Support & Resistance
VWAP acts as dynamic support in uptrends
VWAP acts as dynamic resistance in downtrends
Standard deviation bands provide additional S/R levels
Trend Analysis
Price consistently above VWAP = bullish trend
Price consistently below VWAP = bearish trend
Color changes help identify trend shifts
Entry & Exit Points
Use VWAP reclaims for potential long entries
Use VWAP breaks for potential short entries
Standard deviation bands for profit-taking levels
โ๏ธ Technical Details
Pine Script Version: v6
Overlay: Yes (plots on price chart)
Calculation: Volume-weighted average price from anchor point
Standard Deviation: Statistical measure of price dispersion
Performance: Optimized for real-time calculation
๐ Anchor Reset Logic
The indicator automatically resets based on selected anchor type:
Session/Day: Resets at market open
Week: Resets at week start
Month: Resets at month start
Manual: Resets from chosen date
Manual Reset: Override button for immediate reset
๐ Best Practices
Choose appropriate timeframe for your anchor type
Combine with volume analysis for better confirmation
Use multiple timeframes for comprehensive analysis
Consider market context when interpreting signals
Test on demo before live trading
โ ๏ธ Disclaimer
This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management before making trading decisions.
Key Levels & Session Highs/Lows by OdegosProfessional multi-timeframe support and resistance level indicator that automatically tracks and displays key price levels across different trading sessions and timeframes.
๐ฏ What it shows:
Session Open - Daily market open reference line
Asia & London Sessions - High/low levels from major trading sessions
Previous Day - Yesterday's actual high and low levels
Weekly & Monthly - Higher timeframe support/resistance levels
โก Smart Features:
Auto-combines overlapping levels with merged labels
Break detection - Lines stop when price breaks through (optional)
Timezone support - Works with any global timezone
Universal colors - Optimized for both light and dark chart themes
Clean interface - Organized settings with intuitive dropdowns
๐ ๏ธ Fully Customizable:
Individual show/hide toggles for each level type
Custom colors, line styles, and widths
Adjustable label text and positioning
Global text color override option
Perfect for day traders, swing traders, and anyone who relies on key support/resistance levels for market analysis.
Dynamic OHLC levels(Day/Week/Month/6M/Year)+Open MarkerThis indicator automatically displays the Open, High, Low, and Close (OHLC) levels from the previous trading period directly on your chart. It's a versatile tool for identifying key support and resistance zones based on historical price action. The indicator offers a unique "Auto" mode that intelligently selects the most relevant time frame (Daily, Weekly, Monthly, 6M, or Yearly) based on your current chart's time frame. Alternatively, you can choose a specific time frame in "Manual" mode.
The indicator is designed to provide traders with clear visual cues for important price levels, helping them make more informed trading decisions. It's a valuable resource for both intraday and swing traders, as these levels often act as significant psychological barriers and turning points in the market.
Key Benefits ๐ฏ
Identifies Key Levels Instantly: Automatically plots crucial support and resistance levels from the previous session, saving you time and effort.
Adaptable & Versatile: The "Auto" mode intelligently adjusts to your chart's time frame, ensuring you always see the most relevant OHLC levels.
Customizable: You have full control over which levels to display (High, Low, Open, Close), their colors, line styles, and thickness.
Visual Clarity: The option to highlight the area between the previous high and low provides a clear visual representation of the past session's range.
Multi-Session Support: It supports both Regular Trading Hours (RTH) and Extended Trading Hours (ETH), with a configurable timezone, making it globally applicable.
Core Features โจ
Dynamic Timeframe Selection:
Auto Mode: Automatically displays previous Day OHLC on intraday charts (e.g., 1-hour), previous Week OHLC on daily charts, and so on.
Manual Mode: Allows you to explicitly choose between previous Day, Week, Month, 6-Month, or Year OHLC levels.
Customizable Visuals:
Show Previous High: Plots the highest price of the previous period.
Show Previous Low: Plots the lowest price of the previous period.
Show Previous Open: Plots the opening price of the previous period.
Show Previous Close: Plots the closing price of the previous period.
Show Current Open Marker Line: A separate line that marks the open of the current period.
Highlight Area: Fills the space between the previous high and low with a customizable color.
Global Trading Support:
Session Mode: Choose to display levels based on Regular Trading Hours, Extended Hours, or both.
Timezone Selection: Configure the session timezone to align with major markets like New York, London, Tokyo, or Kolkata.
Line Styling: Adjust the line thickness, style (Solid, Dashed, Dotted), and transparency for each level to match your chart's aesthetics.
Labels: Toggle on/off text labels that clearly identify each plotted level (e.g., "PDH" for Previous Day High).
Who is this indicator for? ๐ค
This indicator is a powerful tool for a wide range of traders looking to incorporate historical price action into their analysis.
Intraday Traders: Can use the previous Daily OHLC levels to identify potential support/resistance for breakouts and reversals during the trading day.
Swing Traders: Can leverage the previous Weekly, Monthly, or Yearly OHLC levels on higher time frames to spot long-term trend continuation or reversal points.
Day Traders: Use the Previous Daily High/Low to frame the day's trading range and identify key levels for potential mean-reversion trades.
Technical Analysts: Those who rely on key levels and price action will find this indicator invaluable for their analysis.
This indicator simplifies a crucial part of technical analysis, providing a clean, customizable, and adaptive way to visualize and trade off of historical price levels.
VHX EMA 135/315๐ EMA 135/315 Cross Strategy โ Your Trend Compass with Smart Confirmations
๐ Core Idea
The EMA 135/315 Cross strategy is a trend-following system.
It tracks two moving averages:
EMA 135 โ the โfastโ line that reacts to short-term price moves
EMA 315 โ the โslowโ line that reacts to the bigger trend
When the fast EMA crosses above the slow EMA โ market momentum is turning up โ BUY signal ๐ข
When the fast EMA crosses below the slow EMA โ momentum is turning down โ SELL signal ๐ด
This gives you a clear entry trigger โ no guessing, no overcomplication.
โจ On Your Chart
BUY/SELL Arrows
๐ข Green arrow = bullish cross โ trend turning up
๐ด Red arrow = bearish cross โ trend turning down
Trend Info Panel (Top Left)
Current Trend: BUY / SELL / Neutral
Last Cross: how many bars ago it happened
EMA Gap in %: measures the strength of the trend
Status: โApproachingโ if EMAs are getting close โ possible cross soon
Automatic TP/SL Levels
๐ TP line (+2% from entry)
๐ SL line (โ0.5% from entry)
Saves time โ you instantly see your target and protection
EMA Distance Meter
Big % gap = strong trend momentum ๐
Small % gap = weak or sideways market โ ๏ธ
Real-Time Alerts
You get notified when a cross happens, even if youโre away from the screen
๐ง The Logic Behind It
The EMA 135 reacts faster โ it reflects short-term momentum
The EMA 315 moves slower โ it reflects the main trend
When the fast EMA overtakes the slow EMA: short-term strength now aligns with the long-term trend โ higher probability of a sustained move
The gap % tells you how strong the alignment is โ large gap = cleaner moves, small gap = market in transition
โApproachingโ status warns that the EMAs are converging, which often happens before a reversal
๐ Boosting the Strategy with Volume Analysis
The EMA cross is a strong trigger, but volume confirms the quality of the move:
High Volume + Cross โ more reliable signal, as strong market participation is pushing the trend
Low Volume + Cross โ caution, the move might be weak or a false breakout
๐ก Tip:
Check the volume histogram or a volume-based indicator (e.g., Volume Profile, OBV).
On a BUY signal: volume should spike above the recent average.
On a SELL signal: watch for strong selling volume bars.
๐ Adding Support & Resistance for Precision
Support and resistance levels help filter out bad trades and optimize entries:
Best BUY setups:
EMA 135 crosses above EMA 315 near a known support zone
Bonus if volume confirms the move
Avoid buying directly into a strong resistance
Best SELL setups:
EMA 135 crosses below EMA 315 near a known resistance zone
Bonus if selling volume is strong
Avoid selling directly into a major support
๐ก Use tools like horizontal lines, previous highs/lows, and Volume Profile nodes to spot these zones.
๐ Best Usage Practices
Timeframes
Lower timeframes (1mโ5m) โ more signals, but more noise โ best for scalping with extra filters
Always Combine With Confirmation
EMA Cross = Trigger
Volume spike = Confirmation
S/R zone in your favor = High-probability setup
Manage Risk
Start with the built-in TP/SL
Adjust SL if volatility is higher than usual
Consider trailing stop once price moves in your favor
Avoid Sideways Markets
If EMA gap % is very small and crosses happen often โ stand aside until a clear direction forms
Use Alerts
Set alerts for BUY & SELL crosses so you never miss a setup
In short:
This isnโt just an EMA cross indicator โ itโs a trend system with built-in risk management, strength measurement, and pre-trade preparation. Combine it with volume confirmation and smart use of support/resistance, and you turn a simple signal into a high-probability trading edge.
Hann Window FIR Filter Ribbon [BigBeluga]๐ต OVERVIEW
The Hann Window FIR Filter Ribbon is a trend-following visualization tool based on a family of FIR filters using the Hann window function. It plots a smooth and dynamic ribbon formed by six Hann filters of progressively increasing length. Gradient coloring and filled bands reveal trend direction and compression/expansion behavior. When short-term trend shifts occur (via filter crossover), it automatically anchors visual support/resistance zones at the nearest swing highs or lows.
๐ต CONCEPTS
Hann FIR Filter: A finite impulse response filter that uses a Hann (cosine-based) window for weighting past price values, resulting in a non-lag, ultra-smooth output.
hannFilter(length)=>
var float hann = na // Final filter output
float filt = 0
float coef = 0
for i = 1 to length
weight = 1 - math.cos(2 * math.pi * i / (length + 1))
filt += price * weight
coef += weight
hann := coef != 0 ? filt / coef : na
Ribbon Stack: The indicator plots 6 Hann FIR filters with increasing lengths, creating a smooth "ribbon" that adapts to price shifts and visually encodes volatility.
Gradient Coloring: Line colors and fill opacity between layers are dynamically adjusted based on the distance between the filters, showing momentum expansion or contraction.
Dynamic Swing Zones: When the shortest filter crosses its nearest neighbor, a swing high/low is located, and a triangle-style level is anchored and projected to the right.
Self-Extending Levels: These dynamic levels persist and extend until invalidated or replaced by a new opposite trend break.
๐ต FEATURES
Plots 6 Hann FIR filters with increasing lengths (controlled by Ribbon Size input).
Automatically colors each filter and the fill between them with smooth gradient transitions.
Detects trend shifts via filter crossover and anchors visual resistance (red) or support (green) zones.
Support/resistance zones are triangle-style bands built around recent swing highs/lows.
Levels auto-extend right and adapt in real time until invalidated by price action.
Ribbon responds smoothly to price and shows contraction or expansion behavior clearly.
No lag in crossover detection thanks to FIR architecture.
Adjustable sensitivity via Length and Ribbon Size inputs.
๐ต HOW TO USE
Use the ribbon gradient as a visual trend strength and smooth direction cue.
Watch for crossover of shortest filters as early trend change signals.
Monitor support/resistance zones as potential high-probability reaction points.
Combine with other tools like momentum or volume to confirm trend breaks.
Adjust ribbon thickness and length to suit your trading timeframe and volatility preference.
๐ต CONCLUSION
Hann Window FIR Filter Ribbon blends digital signal processing with trading logic to deliver a visually refined, non-lagging trend tool. The adaptive ribbon offers insight into momentum compression and release, while swing-based levels give structure to potential reversals. Ideal for traders who seek smooth trend detection with intelligent, auto-adaptive zone plotting.
Adaptive Market Profile โ Auto Detect & Dynamic Activity ZonesAdaptive Market Profile is an advanced indicator that automatically detects and displays the most relevant trend channel and market profile for any asset and timeframe. Unlike standard regression channel tools, this script uses a fully adaptive approach to identify the optimal period, providing you with the channel that best fits the current market dynamics. The calculation is based on maximizing the statistical significance of the trend using Pearsonโs R coefficient, ensuring that the most relevant trend is always selected.
Within the selected channel, the indicator generates a dynamic market profile, breaking the price range into configurable zones and displaying the most active areas based on volume or the number of touches. This allows you to instantly identify high-activity price levels and potential support/resistance zones. The โmost active linesโ are plotted in real-time and always stay parallel to the channel, dynamically adapting to market structure.
Key features:
- Automatic detection of the optimal regression period: The script scans a wide range of lengths and selects the channel that statistically represents the strongest trend.
- Dynamic market profile: Visualizes the distribution of volume or price touches inside the trend channel, with customizable section count.
- Most active zones: Highlights the most traded or touched price levels as dynamic, parallel lines for precise support/resistance reading.
- Manual override: Optionally, users can select their own channel period for full control.
- Supports both linear and logarithmic charts: Simple toggle to match your chart scaling.
Use cases:
- Trend following and channel trading strategies.
- Quick identification of dynamic support/resistance and liquidity zones.
- Objective selection of the most statistically significant trend channel, without manual guesswork.
- Suitable for all assets and timeframes (crypto, stocks, forex, futures).
Originality:
This script goes beyond basic regression channels by integrating dynamic profile analysis and fully adaptive period detection, offering a comprehensive tool for modern technical analysts. The combination of trend detection, market profile, and activity zone mapping is unique and not available in TradingView built-ins.
Instructions:
Add Adaptive Market Profile to your chart. By default, the script automatically detects the optimal channel period and displays the corresponding regression channel with dynamic profile and activity zones. If you prefer manual control, disable โAuto trend channel periodโ and set your preferred period. Adjust profile settings as needed for your asset and timeframe.
For questions, suggestions, or further customization, contact Julien Eche (@Julien_Eche) directly on TradingView.
Lorentzian Key Support and Resistance Level Detector [mishy]๐งฎ Lorentzian Key S/R Levels Detector
Advanced Support & Resistance Detection Using Mathematical Clustering
The Problem
Traditional S/R indicators fail because they're either subjective (manual lines), rigid (fixed pivots), or break when price spikes occur. Most importantly, they don't tell you where prices actually spend time, just where they touched briefly.
The Solution: Lorentzian Distance Clustering
This indicator introduces a novel approach by using Lorentzian distance instead of traditional Euclidean distance for clustering. This is groundbreaking for financial data analysis.
Data Points Clustering:
๐ฌ Why Euclidean Distance Fails in Trading
Traditional K-means uses Euclidean distance:
โข Formula: distance = (price_A - price_B)ยฒ
โข Problem: Squaring amplifies differences exponentially
โข Real impact: One 5% price spike has 25x more influence than a 1% move
โข Result: Clusters get pulled toward outliers, missing real support/resistance zones
Example scenario:
Prices: โ flash spike
Euclidean: Centroid gets dragged toward 150
Actual S/R zone: Around 100 (where prices actually trade)
โก Lorentzian Distance: The Game Changer
Our approach uses Lorentzian distance:
โข Formula: distance = log(1 + (price_difference)ยฒ / ฯยฒ)
โข Breakthrough: Logarithmic compression keeps outliers in check
โข Real impact: Large moves still matter, but don't dominate
โข Result: Clusters focus on where prices actually spend time
Same example with Lorentzian:
Prices: โ flash spike
Lorentzian: Centroid stays near 100 (real trading zone)
Outlier (150): Acknowledged but not dominant
๐ง Adaptive Intelligence
The ฯ parameter isn't fixed,it's calculated from market disturbance/entropy:
โข High volatility: ฯ increases, making algorithm more tolerant of large moves
โข Low volatility: ฯ decreases, making algorithm more sensitive to small changes
โข Self-calibrating: Adapts to any instrument or market condition automatically
Why this matters: Traditional methods treat a 2% move the same whether it's in a calm or volatile market. Lorentzian adapts the sensitivity based on current market behavior.
๐ฏ Automatic K-Selection (Elbow Method)
Instead of guessing how many S/R levels to draw, the indicator:
โข Tests 2-6 clusters and calculates WCSS (tightness measure)
โข Finds the "elbow" - where adding more clusters stops helping much
โข Uses sharpness calculation to pick the optimal number automatically
Result: Perfect balance between detail and clarity.
How It Works
1. Collect recent closing prices
2. Calculate entropy to adapt to current market volatility
3. Cluster prices using Lorentzian K-means algorithm
4. Auto-select optimal cluster count via statistical analysis
5. Draw levels at cluster centers with deviation bands
๐ Manual K-Selection Guide (Using WCSS & Sharpness Analysis)
When you disable auto-selection, use both WCSS and Sharpness metrics from the analysis table to choose manually:
What WCSS tells you:
โข Lower WCSS = tighter clusters = better S/R levels
โข Higher WCSS = scattered clusters = weaker levels
What Sharpness tells you:
โข Higher positive values = optimal elbow point = best K choice
โข Lower/negative values = poor elbow definition = avoid this K
โข Measures the "sharpness" of the WCSS curve drop-off
Decision strategy using both metrics:
K=2: WCSS = 150.42 | Sharpness = - | Selected =
K=3: WCSS = 89.15 | Sharpness = 22.04 | Selected = โ โ Best choice
K=4: WCSS = 76.23 | Sharpness = 1.89 | Selected =
K=5: WCSS = 73.91 | Sharpness = 1.43 | Selected =
Quick decision rules:
โข Pick K with highest positive Sharpness (indicates optimal elbow)
โข Confirm with significant WCSS drop (30%+ reduction is good)
โข Avoid K values with negative or very low Sharpness (<1.0)
โข K=3 above shows: Big WCSS drop (41%) + High Sharpness (22.04) = Perfect choice
Why this works:
The algorithm finds the "elbow" where adding more clusters stops being useful. High Sharpness pinpoints this elbow mathematically, while WCSS confirms the clustering quality.
Elbow Method Visualization:
Traditional clustering problems:
โ Price spikes distort results
โ Fixed parameters don't adapt
โ Manual tuning is subjective
โ No way to validate choices
Lorentzian solution:
โ๏ธ Outlier-resistant distance metric
โ๏ธ Entropy-based adaptation to volatility
โ๏ธ Automatic optimal K selection
โ๏ธ Statistical validation via WCSS & Sharpness
Features
Visual:
โข Color-coded levels (red=highest resistance, green=lowest support)
โข Optional deviation bands showing cluster spread
โข Strength scores on labels: Each cluster shows a reliability score.
โข Higher scores (0.8+) = very strong S/R levels with tight price clustering
โข Lower scores (0.6-0.7) = weaker levels, use with caution
โข Based on cluster tightness and data point density
โข Clean line extensions and labels
Analytics:
โข WCSS analysis table showing why K was chosen
โข Cluster metrics and statistics
โข Real-time entropy monitoring
Control:
โข Auto/manual K selection toggle
โข Customizable sample size (20-500 bars)
โข Show/hide bands and metrics tables
The Result
You get mathematically validated S/R levels that focus on where prices actually cluster, not where they randomly spiked. The algorithm adapts to market conditions and removes guesswork from level selection.
Best for: Traders who want objective, data-driven S/R levels without manual chart analysis.
Credits: This script is for educational purposes and is inspired by the work of @ThinkLogicAI and an amazing mentor @DskyzInvestments . It demonstrates how Lorentzian geometrical concepts can be applied not only in ML classification but also quite elegantly in clustering.
Dual Session ORB S/R Lines Pro by Yendor_BShort description:
Clean opening-range breakout support/resistance lines for London and US sessions with confirmed breakout labels and alert-ready signals. UTC-based, adjustable start point, customizable styling, minimal clutter.
Detailed description:
What it does:
Captures the Opening Range (default first 15 minutes) for London and New York (US) sessions in UTC, plots the high and low as support/resistance lines, and marks confirmed breakouts when price closes beyond those levels. Lines can begin at either the range end or session start and persist for the configured session length.
Key Features:
ORB defined over the first N minutes after session open (configurable, default 15).
Two sessions: London and US (New York) with separate start times.
High/low support & resistance lines per session:
Selectable start point: Range End or Session Start.
Independently customizable color, width, and style (solid/dashed/dotted) for each high and low.
Confirmed breakout labels: only on the first candle that closes beyond the ORB high or low after the range completes (prior close must be inside).
Alerts and alertconditions for breakout long/short per session, usable in TradingViewโs alert dialog.
Fully UTC-based. Works on any timeframe; 1-minute or 5-minute recommended for precision.
Minimal visual clutter; no persistent shaded boxes in this version.
Inputs explained:
ORB Duration (minutes): Length of the opening range used to calculate session high and low.
Session Length (hours): How long the S/R lines remain active (typically full session).
London / US Start (UTC): Session open times in UTC.
Line Start Point: Choose whether the lines begin at the range end or at the session start.
High/Low Styling: Independent color, thickness, and style for each sessionโs high and low.
Breakout Labels: Toggle one-time confirmed breakout annotations.
Alerts: Enable breakout alert messages.
Example workflows:
Monitor the first 15 minutes of the London session.
After the range, wait for a candle to close beyond the high or low for a confirmed breakout.
Use the label or alert to trigger entry logic (retest, continuation, etc.).
Repeat for the US session; compare overlaps for higher conviction.
Alert setup:
Open the Alerts panel. Choose one of the built-in alertconditions: London Breakout Long, London Breakout Short, US Breakout Long, US Breakout Short. Set frequency to Once Per Bar Close. Customize notification/webhook payload if automating.
Preset suggestions:
Standard London ORB: 15 minute range, lines from range end, green high / lime low.
Standard US ORB: 15 minute range, lines from range end, blue high / aqua low.
Overlap Bias: Both sessions active, lines start from session start, differentiated styles.
Tips & best practices:
Combine with external volume or volatility filters to reduce false breakouts. Use on correlated pairs to observe consistent session structure. Treat broken ORB levels as flipped support/resistance on revisit. Prefer confirmed closes beyond lines rather than wick touches.
Limitations / disclaimer:
Provides structural visualization and breakout signaling; does not guarantee profitability. Always apply proper risk management and confirm with additional context. Backtest settings before live use.
Tags:
#ORB #OpeningRangeBreakout #SessionTrading #LondonSession #NewYorkSession #SupportResistance #Breakout #Intraday #Pinev6 #TradingView #Forex #TrendStructure #Alerts #USD #EURUSD #TradingSignals #UTCBased #PriceAction #MarketStructure #IntradayBreakouts
Dynamic S/R System - Pivot + ChannelDynamic S/R System - Pivot + Channel
A comprehensive Support & Resistance indicator combining dual methodologies for institutional-grade price level analysis
๐ CORE FEATURES
Dual Detection System
โข Pivot-Based Levels - Historical turning points with intelligent touch counting
โข Dynamic Channel S/R - Trend-aware linear regression boundaries
โข Smart Level Management - Auto-merges similar levels, removes weak/outdated ones
Volume Integration
โข Multi-timeframe volume analysis using EMA oscillator and spike detection
โข Volume confirmation for all breakout signals to filter false moves
โข Real-time volume status (Normal/High/Spike) in live information panel
Intelligent Touch Counting
โข Automatic level validation through touch frequency analysis
โข Strength classification with visual differentiation (colors/thickness)
โข Level labels showing exact touch count (S3, R5, etc.)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐จ VISUAL ELEMENTS
Line System
Solid Lines: Pivot-based S/R levels
Dashed Lines: Dynamic channel boundaries
Color Coding:
โข ๐ต Blue/๐ด Red: Standard support/resistance
โข ๐ Orange: Strong levels (multiple touches)
โข ๐ฃ Purple: Channel S/R levels
Signal Labels
โข "B" - Pivot S/R breakout with volume confirmation
โข "CB" - Channel boundary breakout
โข "Bull/Bear Wick" - False breakout detection (wick rejections)
Information Panel
Real-time analysis displays:
โข Total resistance/support levels detected
โข Closest S/R levels to current price
โข Volume status and position relative to levels
โข Current market position assessment
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
KEY ADVANTAGES
Multi-Method Validation
Combines historical pivot analysis with dynamic trend channels for comprehensive market view
False Breakout Protection
โข Volume confirmation requirements
โข Wick analysis to identify failed attempts
โข Multiple validation criteria before signal generation
Adaptive Level Management
โข Automatically updates as new pivots form
โข Removes outdated/weak levels
โข Maintains clean, relevant level display
Institutional-Grade Analysis
โข Touch counting reveals institutional respect levels
โข Volume integration shows smart money activity
โข Strength classification identifies high-probability zones
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โฐ OPTIMAL USE CASES
Best Timeframes
โข Daily - Primary recommendation for swing trading
โข 4-Hour - Intraday analysis and entries
โข Weekly - Long-term position planning
Ideal Markets
โข Crypto pairs (especially ETH/BTC, BTC/USD)
โข Forex majors with good volume data
โข Large-cap stocks with institutional participation
Trading Applications
โข Entry/exit planning around key S/R levels
โข Breakout confirmation with volume validation
โข Risk management using nearest S/R for stops
โข Trend analysis through channel dynamics
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ CONFIGURATION GUIDELINES
Conservative Setup (Higher Confidence)
Min Pivot Strength: 3-4
Volume Threshold: 25-30%
Max Levels: 6-8
Aggressive Setup (More Signals)
Min Pivot Strength: 2
Volume Threshold: 15-20%
Max Levels: 10-12
๐ ALERT SYSTEM
Breakout Alerts
โข Resistance/Support breaks with volume confirmation
โข Channel boundary violations
โข Approaching strong S/R levels
Advanced Notifications
โข Strong level approaches (within 0.5% of price)
โข False breakout detection
โข Volume spike confirmations
๐ TRADING STRATEGY GUIDE
Entry Strategy
1. Wait for price to approach identified S/R level
2. Confirm with volume analysis (spike/high volume preferred)
3. Watch for wick formations indicating rejection
4. Enter on confirmed breakout with volume or bounce with rejection
Risk Management
โข Use nearest S/R level for stop placement
โข Scale position size based on level strength (touch count)
โข Monitor volume confirmation for exit signals
Market Context
โข Combine with higher timeframe trend analysis
โข Consider overall market sentiment and volatility
โข Use channel direction for bias confirmation
Transform complex S/R analysis into actionable trading intelligence with institutional-level insights for professional trading decisions.
Midnight 30min High/LowMidnight 30min High/Low โ Overnight Liquidity Range Tracker
Capture the Overnight Session: A Strategic Level Identification Tool from Professional Trading Methodology
This indicator captures the high and low prices during the critical 30-minute midnight session (12:00-12:30 AM EST) and projects these levels forward as key support and resistance zones. These overnight ranges often contain significant liquidity and serve as crucial reference points for intraday price action, representing areas where institutional activity may have established important levels.
๐ What This Script Does:
Identifies Critical Overnight Session Levels
- Automatically detects the 12:00-12:30 AM EST session window
- Captures the highest and lowest prices during this 30-minute period
- Projects these levels forward for multiple trading days
Creates Dynamic Support/Resistance Zones
- Extends midnight high/low levels as horizontal lines with customizable projection periods
- Fills the area between high and low to create a visual trading range
- Updates automatically each trading day with new overnight levels
Provides Clear Visual Reference Points
- Optional session start markers (โ) highlight when the midnight session begins
- Color-coded lines distinguish between high and low levels
- Transparent fill area creates an easy-to-identify trading zone
Real-Time Level Tracking
- Updates levels in real-time during the active midnight session
- Maintains historical levels for reference and backtesting
- Compatible with data window for precise level values
โ๏ธ Customization Options:
Extend Days (1-30):** Control how many days forward the levels are projected (default: 5 days)
High Line Color:** Customize the midnight high line color (default: blue)
Low Line Color:** Customize the midnight low line color (default: orange)
Fill Color:** Adjust the transparency and color of the range area (default: light aqua, 80% transparency)
Show Session Markers:** Toggle yellow session start indicators on/off (default: enabled)
๐ก How to Use:
Deploy on lower timeframes (1m-15m) for precise level identification and reaction monitoring**
Watch for key price interactions:
- Rejection at midnight high levels (potential resistance)
- Bounce from midnight low levels (potential support)
- Range-bound trading between the high and low levels
Combine with liquidity concepts:
- Monitor for stop hunts above/below these levels
- Look for false breakouts that snap back into the range
- Use as confluence with other ICT concepts like FVGs and Order Blocks
Strategic Applications:
- Range trading between midnight levels
- Breakout confirmation when price closes decisively outside the range
- Support/resistance validation for entry and exit planning
๐ Combine With These Tools for Complete Market Structure Analysis:
โ
First FVG โ Opening Range Fair Value Gap Detector.
โ
ICT Turtle Soup (Liquidity Reversal)โ Spot stop hunts and false breakout scenarios
โ
ICT Macro Zones (Grey Box Version)- It tracks real-time highs and lows for each Silver Bullet session
โ
ICT SMC Liquidity Grabs and OBs- Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
Together, these tools create a comprehensive Smart Money Concepts (SMC) framework โ helping traders identify, anticipate, and capitalize on institutional-level price movements with precision and confidence during critical overnight sessions.
Previous Day OHLC# Previous Day OHLC Levels Indicator
## Overview
The Previous Day OHLC indicator is a simple yet powerful tool that plots the Open, High, Low, and Close levels from previous trading sessions. This indicator helps traders identify key support and resistance levels based on historical price action, making it easier to spot potential reversal zones and breakout levels.
## Key Features
### ๐ **Previous Day OHLC Levels**
- Displays the Open, High, Low, and Close prices from 1-5 days ago
- Lines automatically extend to the right for easy visualization
- Updates daily to show the most relevant levels
### ๐จ **Fully Customizable Styling**
- **Individual Line Colors**: Choose unique colors for each OHLC level
- **Line Styles**: Select from Solid, Dashed, or Dotted lines for each level
- **Line Width**: Adjust thickness from 1-4 pixels for better visibility
- **Price Labels**: Display actual price values on each line with customizable sizing
### โ๏ธ **Flexible Settings**
- **Lookback Period**: Choose to display levels from 1-5 days ago (maximum safety limit)
- **Label Control**: Toggle price labels on/off and adjust their size
- **Performance Optimized**: Clean code that won't slow down your charts
## How to Use
1. **Add to Chart**: Apply the indicator to any timeframe chart
2. **Customize Settings**: Adjust colors, styles, and lookback period to your preference
3. **Identify Levels**: Use the plotted lines as potential support/resistance zones
4. **Trade Setup**: Look for price reactions at these key levels for entry/exit signals
## Best Practices
- **Day Trading**: Use 1-day lookback for intraday support/resistance
- **Swing Trading**: Extend lookback to 2-5 days for broader context
- **Multi-Timeframe**: Combine with other timeframe analysis for confirmation
- **Risk Management**: Use these levels for stop-loss and take-profit placement
## Color Coding (Default)
- **Open**: Blue - Starting price of the previous session
- **High**: Green - Highest price reached
- **Low**: Red - Lowest price reached
- **Close**: Orange - Final price of the session
## Why This Indicator Works
Previous day OHLC levels are among the most watched price points by professional traders. These levels often act as:
- **Support/Resistance**: Price tends to react at these historical levels
- **Breakout Confirmation**: Strong moves beyond these levels can signal trend continuation
- **Reversal Zones**: Price often bounces from these key levels
- **Psychological Levels**: Market participants remember these important price points
## Technical Specifications
- **Pine Script Version**: v6
- **Overlay**: Yes (plots directly on price chart)
- **Performance**: Optimized for smooth chart operation
- **Compatibility**: Works on all timeframes and instruments
Perfect for traders of all experience levels who want to incorporate previous day levels into their technical analysis toolkit!