OPEN-SOURCE SCRIPT
Weekend Trap

Weekend Trap Indicator
A comprehensive weekend range analysis tool designed to identify and track low-liquidity weekend price movements with advanced market maker detection.
What is the Weekend Trap?
The Weekend Trap refers to price ranges established during low-liquidity weekend periods (Saturday 5:00 AM to Monday 5:00 AM Perth time) when institutional trading is minimal.
Key Features
📊 Weekend Range Detection
Automatically identifies weekend periods based on Perth timezone
Creates visual rectangles showing weekend high/low ranges
Displays 50% midline for key pivot levels
Configurable range cutoff (default: Sunday 3:00 PM)
🎯 Advanced Market Maker Detection
PVSRA-style volume analysis for institutional activity identification
4-color coding system:
🟢 Lime: 200% Bull volume (Peak volume + bullish candle)
🔴 Red: 200% Bear volume (Peak volume + bearish candle)
🔵 Blue: 150% Bull volume (Rising volume + bullish candle)
🟣 Fuchsia: 150% Bear volume (Rising volume + bearish candle)
Weighted volume calculation for better peak detection
Circles positioned above bars for clear visualization
📈 Range Analytics
Clean range labels showing:
Absolute price range
Percentage movement
Historical analysis with configurable lookback period
Current weekend tracking with real-time updates
Settings Overview
Core Settings
Weeks to Backtest (1-52): Number of completed weekends to display
Show Weekend Trap Rectangles: Toggle rectangle visibility
Use Wicks for Rectangle Height: Include wicks vs. body-only ranges
Sunday Range Cutoff Hour: When to stop updating weekend range
Visual Customization
Rectangle colors and borders
Market maker marker sizes (tiny to large)
PVSRA color scheme for different volume levels
Label display options
Market Maker Detection
Automatic PVSRA analysis during weekend periods
150% threshold: Volume ≥ 150% of 10-period average
200% threshold: Volume ≥ 200% of average OR weighted volume peak
Real-time detection with immediate visual feedback
How to Use
Add to your chart (works on any timeframe, recommended: 1H-4H)
Set your preferred lookback period (default: 4 weeks)
Observe weekend ranges and note market maker activity
Monitor volume spikes indicated by colored circles
Analysis Applications
Weekend Range Analysis
Identify price ranges during low-liquidity periods
Track historical weekend price movements
Analyze range size and frequency patterns
Market Maker Detection
Identify institutional accumulation/distribution
Spot manipulation during low-liquidity periods
Analyze volume patterns and anomalies
Historical Pattern Recognition
Weekend range comparison across multiple periods
Multiple timeframe analysis capability
Volume pattern identification
Technical Details
Timezone: Australia/Perth (GMT+8)
Weekend Period: Saturday 5:00 AM → Monday 5:00 AM
Volume Analysis: 10-period moving average baseline
Weighted Volume: Volume × (High - Low) for peak detection
Object Management: Automatic cleanup based on lookback period
Best Practices
Use on liquid markets (major forex pairs, crypto, indices)
Adjust lookback period based on analysis timeframe
Monitor during Asia-Pacific trading hours for best results
Consider fundamental events that may affect weekend gaps
Credits
Volume analysis inspired by PVSRA (Price Volume Spread Range Analysis) methodology for institutional activity detection.
This indicator is designed for educational and analysis purposes.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.