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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.