A curated collection of modular, production-ready Pine Script v6 indicators and strategies for TradingView. Designed for active traders, swing traders, and technical analysts seeking clean charts, synchronized volume-spread classification, automated multi-timeframe key levels, RSI divergence detection, and regime-hedged scalping strategies without cluttering the screen.
- Featured Indicators & Strategies
- Installation Guide
- TradingView Limits & Best Practices
- Repository Structure
- License & Disclaimer
Combines multi-period moving averages, VWAP, and synchronized PVSRA volume classification into a single unified script.
- Synchronized Volume Analysis: Computes PVSRA (Price Volume Spread Analysis) once to drive both the price-chart candle coloring and the lower volume pane bars, so they can't drift apart.
- Volume Classification Modes:
- Climax (Green/Red): Volume β₯ 2.0Γ average, or the highest volume Γ spread bar in the lookback.
- Above-Average (Blue/Violet): Volume β₯ 1.5Γ average.
- Regular (Gray): Normal trading activity.
- Dynamic Vector Zones (off by default): Order-flow supply (bearish vector) and demand (bullish vector) boxes with close or wick mitigation and a per-side zone cap.
- Moving Average Suite: 6 configurable EMAs (10, 21, 50, 100, 200, 800), 3 SMAs (50, 100, 200), session VWAP, and independent EMA (10/21) and SMA (50/200) golden / death cross labels.
- Integrated Alerts: EMA and SMA crosses, price crossing VWAP, and bullish / bearish vector candles.
π Detailed Documentation: ema_pvsr_master.description.md
Multi-timeframe Fibonacci and Camarilla pivot points combined with session and higher-timeframe (HTF) key levels and smart label merging.
- Advanced Pivot System:
- Selectable calculations: Fibonacci or Camarilla (default). Camarilla uses a shifted mapping (R3 = H4, the breakout level), so it won't line up with TradingView's built-in.
- Multi-timeframe support: Auto, Hourly, Daily, Weekly, Monthly, Quarterly, Yearly, Biyearly, Triyearly, Quinquennial.
- Historical lookback control to respect TradingView drawing budgets, and per-level close-cross or touch alerts.
- Key Levels:
- Asia Session: High, Low and 50% of a configurable session (default 16:00β18:00 New York, the "Asia Box"), tracked live or as the last completed session.
- Monday Range: Live Monday High, Low, and Open.
- Daily: Today's Open, Previous Day High/Low/50% (PDH/PDL).
- Weekly: Current Week High/Low/50% (live), Previous Week High/Low/50% (PWH/PWL).
- Monthly & Yearly: Live developing and previous period extremes and midpoints, plus the current year open.
- Smart Level Merging: Levels within a configurable tick tolerance collapse into a single line with concatenated labels (e.g.,
PDH | CW High) to prevent overlapping line clutter. - Budget-Optimized: Redraws on the last bar to stay inside TradingView's 500-line / 500-label object limits.
π Detailed Documentation: pivots_and_key_levels_master.description.md
A hardened fork of TradingView's built-in Divergence Indicator, detecting regular and hidden RSI divergences with filtering and confirmation controls the built-in lacks.
- v2: Bar-close confirmation, optional true-swing-extreme price comparison, minimum RSI delta filter, RSI zone filter for regular divergences, optional divergence lines on the price chart, and a dynamic webhook-ready
alert()alongside per-type alert conditions.- π Documentation: rsi_divergence_mp_v2 README.md
- v3: Everything in v2, plus early signals that print after a shorter right lookback (default 2 bars instead of 5), β held / β failed outcome markers, a hit-rate table, and early / failed alerts.
- π Documentation: rsi_divergence_mp_v3 README.md
The two master scripts split into standalone indicators, for when you only want one piece on the chart or need the full object budget for it.
| Script | Split out of | What it does |
|---|---|---|
| ema_sma_.pine | EMA & PVSR Master | 6 EMAs, 3 SMAs, VWAP, golden/death cross labels |
| pvsr_candles_.pine | EMA & PVSR Master | PVSRA candle coloring + vector candle alerts |
| pvsr_volume_.pine | EMA & PVSR Master | PVSRA-colored volume columns, volume MA, threshold lines (own pane) |
| pvsr_vector_zones_.pine | EMA & PVSR Master | Supply/demand boxes from vector candles |
| pivots_.pine | Pivots + Key Levels Master | Fibonacci / Camarilla pivots with alerts |
| key_levels_.pine | Pivots + Key Levels Master | Asia session, Monday range, D/W/M/Y levels with smart merging |
Important
The three standalone PVSR scripts each carry their own copy of the classification inputs. They only agree with each other if those inputs are set identically in all three. The master script doesn't have this problem.
The master scripts' documentation applies to their split-out versions.
A regime-hedged pair of Pine Script v6 strategies engineered for 5m and 15m Bitcoin trading, complete with built-in R-multiple performance analytics tables.
-
Camarilla Range Bounce Scalper:
- Mean-Reversion Thesis: Fades touches of Camarilla S3 (long) and R3 (short) during low-volatility/ranging market conditions, targeting the central pivot (PP) and opposite boundaries with stops beyond S4/R4.
- Textbook Camarilla: Unlike the Pivots + Key Levels indicator, this strategy uses standard levels (R3 = H3). The indicator's R3 is this strategy's R4.
- Regime Filters: ADX max threshold (< 22), price containment within S3/R3 over lookback window, optional BB width percentile filter, and RSI extreme confirmation.
- Scale-Out Mechanics: Takes 50% TP1 at central pivot (PP), moves stop to breakeven, and lets TP2 run to opposite R3/S3 level.
- π Detailed Strategy Guide: camarilla_range_bounce.description.md
-
EMA 9/21 Pullback Continuation:
- Trend-Following Thesis: Arms on a pullback to the 9 EMA inside an established 9/21 trend, then enters on the resumption candle.
- Regime Filters: High ADX requirement (> 22), 9/21 EMA separation spacing, and higher-timeframe EMA direction alignment (1H for 5m chart / 4H for 15m chart).
- Runner Exits: Chandelier trailing stop (default), slow EMA trail, or fixed R-multiple target to preserve multi-R trend outliers.
- π Detailed Strategy Guide: ema_pullback_continuation.description.md
-
Honest R-Multiple Analytics: Both strategies show on-chart tables tracking net R, win rate, and trade counts per position (scale-outs aren't double-counted), sliced by ADX regime, UTC session (Asia / London / NY / Late), and direction.
Liquidity sweep and mean-reversion strategy specifically designed for Bitcoin perpetual contracts during the post-US close / early Asian session.
- Asia Range Sweep & Reclaim v1:
- Core Thesis: Exploits liquidity sweeps that occur in the thin-orderbook vacuum following the US cash close. Identifies the "Asia Box" (16:00β18:00 ET), detects false breakouts / stop sweeps during the "Power Window" (18:00β20:00 ET), and enters when price reclaims back inside the range.
- Timezone-Safe Anchoring: Built with America/New_York (US DST) and Asia/Tokyo anchoring to prevent DST seasonal drift.
- Precision Filters: Minimum/maximum ATR sweep penetration thresholds (0.15β1.50 ATR), zero-lag box-anchored divergence engine (six oscillators), Tokyo lunch filter (11:30β12:30 JST), optional volume / prior-day level / DXY filters, and risk-bounded position sizing.
- π Detailed Strategy Guide: asia_sweep_strategy_guide.md
- π Interactive Visual Playbook: btc_asia_sweep_playbook.html
- π Manual NZ-schedule Playbook: Asia Range Sweep v3.md. A discretionary, UTC-anchored checklist for trading the setup by hand from New Zealand. Its times are separate from the script's defaults.
Tip
The Asia Session key level in the Pivots + Key Levels indicator defaults to the same 16:00β18:00 ET window, so you can see the Asia Box on any chart without running the strategy.
Follow these steps to add any indicator or strategy from this repository to your TradingView chart:
- Open TradingView and navigate to your chart.
- At the bottom of the screen, open the Pine Editor tab.
- Click Open -> New Indicator (or New Strategy for strategy scripts).
- Copy the entire raw code from the desired
.pinefile:- ema_pvsr_master.pine
- pivots_and_key_levels_master_.pine
- rsi_divergence_mp_v2.pine or rsi_divergence_mp_v3.pine
- Any script in individual_scripts/
- camarilla_range_bounce.pine (strategy)
- ema_pullback_continuation.pine (strategy)
- midnight_pickle_asia_sweep_v1.pine (strategy)
- Paste the code into the Pine Editor.
- Click Save and give the script a name.
- Click Add to Chart.
Tip
Volume Pane Placement (EMA & PVSR Master):
The EMA & PVSR script is configured with overlay=false so the volume histogram renders in its own pane below the chart while moving averages and candle coloring are forced onto the main price scale via force_overlay=true. If the volume pane lands directly on the price chart upon adding, right-click the indicator name in the legend and select Move to -> New pane below.
- Object Budget (500 Lines / 500 Labels / 500 Boxes): TradingView caps each script at 500 lines, 500 labels, and 500 boxes. The scripts here stay well within these limits at default settings. In Pivots + Key Levels, the pivots and key levels share one budget; with a large pivot lookback, the oldest drawings roll off. Use the split-out scripts if you need the full budget for each.
- Bar Replay Behavior:
The current week, month, and year levels in Pivots + Key Levels (and
key_levels_.pine) are only correct on a live realtime bar. In Bar Replay they show the previous period's extremes. Asia Session, Monday Range, and all "previous period" levels are unaffected. - Strategy Settings: Commission (0.045%) and slippage (2 ticks) are set in each strategy's code. Check they survived in Properties before judging a backtest, and leave slippage non-zero.
- Execution Engine: All scripts are written in Pine Script v6.
βββ README.md # Repository overview and quick start guide
βββ AGENTS.md # Instructions for AI coding agents (source of truth)
βββ CLAUDE.md # Pointer to AGENTS.md for Claude Code
βββ LICENSE # Mozilla Public License 2.0
βββ .gitignore # Standard Git ignore configuration
βββ lead-image.png # Main repository header preview image
βββ Master Suite Indicators/ # Core indicator suite
β βββ ema_pvsr_master.pine # EMA & PVSR Master indicator
β βββ ema_pvsr_master.description.md # EMA & PVSR Master documentation
β βββ pivots_and_key_levels_master_.pine # Pivots + Key Levels Master indicator
β βββ pivots_and_key_levels_master.description.md # Pivots + Key Levels documentation
β βββ rsi_divergence_mp_v2.pine # RSI Divergence MP v2 indicator
β βββ rsi_divergence_mp_v2 README.md # RSI Divergence MP v2 documentation
β βββ rsi_divergence_mp_v3.pine # RSI Divergence MP v3 (early signals)
β βββ rsi_divergence_mp_v3 README.md # RSI Divergence MP v3 documentation
βββ individual_scripts/ # Master scripts split into standalone indicators
β βββ ema_sma_.pine # EMAs, SMAs, VWAP, cross labels
β βββ pvsr_candles_.pine # PVSRA candle coloring
β βββ pvsr_volume_.pine # PVSRA volume pane
β βββ pvsr_vector_zones_.pine # PVSRA supply/demand zones
β βββ pivots_.pine # Fibonacci / Camarilla pivots
β βββ key_levels_.pine # Asia, Monday, D/W/M/Y key levels
βββ scalping_strategies/ # BTC scalping strategies
βββ camarilla_range_bounce.pine # Camarilla Range Bounce mean-reversion strategy
βββ camarilla_range_bounce.description.md # Camarilla Range Bounce strategy guide
βββ ema_pullback_continuation.pine # EMA 9/21 Pullback Continuation trend strategy
βββ ema_pullback_continuation.description.md # EMA 9/21 Pullback Continuation strategy guide
βββ btc_asia_sweep/ # BTC Asia session range sweep & reclaim
βββ midnight_pickle_asia_sweep_v1.pine # Asia Range Sweep & Reclaim v1 strategy
βββ asia_sweep_strategy_guide.md # Strategy and timezone guide for the script
βββ btc_asia_sweep_playbook.html # Interactive visual strategy playbook
βββ Asia Range Sweep v3.md # Manual NZ-schedule trading playbook
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0). You are free to use, modify, and distribute this software in accordance with the terms of the MPL-2.0 license.
These scripts are provided for educational and informational purposes only. Nothing contained herein constitutes investment, financial, or trading advice. Trading financial markets involves substantial risk of loss. Always conduct your own research and risk management before executing trades.
