INVITE-ONLY SCRIPT
更新済

Strategy Selector 101

78
Strategy Selector 101 v6 - Multi-Strategy Trading System
--------------------
Overview
Strategy Selector 101 v6 is a comprehensive trading framework that consolidates three distinct systematic trading methodologies into a single, efficient indicator. Each strategy operates independently with its own logic, timeframe restrictions, and visual components. This is not a simple mashup of standard indicators - it's a complete trading system built around proprietary trend detection, multi-timeframe analysis, and dynamic support/resistance calculations.

Why This Tool Exists

Traditional traders often run 5-10 separate indicators simultaneously, creating chart clutter and processing overhead. Strategy Selector solves this by:

- Consolidating complete trading systems into one optimized codebase
- Enforcing proper strategy isolation - only one active at a time prevents conflicting signals
- Reducing computational load through shared calculations where strategies overlap
- Maintaining strategy-specific timeframe restrictions to prevent misuse on unsuitable intervals
- Providing a systematic framework that eliminates discretionary decision-making

Each strategy represents months of development, back testing, and refinement for specific market conditions and trader profiles.

The Three Strategies
--------------------
Strategy 1: Smart River Only (All Timeframes)
Purpose: Pure trend detection and market structure visualization

Core Methodology:
- Proprietary cloud-based trend calculation using exponential moving averages with custom smoothing
- Dynamic market state detection (uptrend, downtrend, or alert/transition state)
- Break-of-Structure (BOS) identification using swing-point analysis
- Daily trend persistence display that updates only at daily candle close (prevents intraday noise)
- Parabolic SAR-based trend filter to identify potential trend exhaustion zones

What Makes It Unique:
Unlike standard moving average clouds, Smart River uses a multi-layered calculation that weighs recent price action while incorporating longer-term momentum. The "alert state" (grey zone) identifies periods of trend uncertainty - critical for avoiding false signals during consolidation. The BOS arrows mark confirmed structural breaks, not just price crosses.

User Controls:
- Alert state visualization colour and transparency
- Daily trend table toggle
- BOS arrow toggle
- Trend filter toggle (PSAR-based)

Strategy 2: DS1 (Daily & 4H Only)
Purpose: Multi-timeframe support/resistance framework with trend context

Core Methodology:
- Previous Month High/Low (PMHL): Historical resistance/support zones from completed monthly candles, plotted forward with configurable lookback periods
- Daily Swing Points: Fractal-based swing high/low identification on daily timeframe using custom pattern recognition
- Smart River Daily Integration: Incorporates the trend detection logic from Strategy 1, providing daily trend context for support/resistance validity
- Independent River Calculations: DS1 uses its own Smart River instance with different transparency settings optimized for 4H visualization

What Makes It Unique:
DS1 combines completed historical levels (PMHL) with dynamic swing structure (Daily Swing Points) and trend context (Smart River). This three-layer approach identifies when price is approaching key levels during favourable trend conditions. The timeframe restriction to Daily/4H prevents misuse on lower timeframes where these levels become less relevant.

The monthly lookback period allows traders to see how current price action relates to historical resistance/support zones, while the daily swing points identify more recent structural boundaries.

User Controls:
- PMHL line visibility, colours, width, and lookback periods
- Swing point colour customization
- Smart River alert state colour and transparency
- Daily trend table toggle

Timeframe Restriction: This strategy is disabled on timeframes other than Daily and 4H to maintain proper context for the calculations.

Strategy 3: Dx4 (Daily & 4H Only)
Purpose: Advanced multi-timeframe S/R system with session timing and volatility-based levels

Core Methodology:

Component 1 - Time Key (4H Only):
- Session marker system identifying key trading times during London/New York overlap periods
- Displayed as bottom-centre table showing current session status
- Critical for strategies that incorporate time-of-day edge

Component 2 - Daily SR with Trend:
- Previous Day High/Low (PDH/PDL) plotted as dynamic support/resistance lines
- ATR-based volatility bands using multi-period calculations around key daily anchor points
- Resistance zones coloured based on Smart River trend direction (bullish/bearish)
- Support/resistance fills between PDH/PDL and ATR levels show trend context
- Configurable lookback period for historical daily levels

Component 3 - PMWHL & ATR:
- Monthly: Previous Month High/Low extending forward as major S/R zones
- Weekly: Previous Week High/Low for intermediate-term structure
- Weekly ATR Bands: Volatility-based support/resistance using multi-period ATR calculations around key weekly anchor points
- All levels update dynamically at period close (monthly/weekly)
- Independent lookback controls for monthly vs weekly levels

What Makes It Unique:
Dx4 is a complete multi-timeframe support/resistance framework that answers the question: "Where are the key levels, how volatile is price action, and what's the trend direction?"

The innovation is in the layering and trend integration:
1. Previous period levels (daily, weekly, monthly) provide static boundaries
2. ATR-based bands adapt to current volatility, preventing static level failures in high-volatility periods
3. Shared Smart River trend colours all resistance zones, showing whether you're trading with or against the broader trend
4. Time Key adds session awareness - critical because market behaviour differs significantly at 6AM vs 2PM

This isn't just "previous high/low + ATR" - it's a systematic approach to multi-timeframe analysis that shows how current price relates to historical structure, adapts to volatility, and maintains trend awareness.

User Controls:
- Time Key visibility toggle
- Daily SR lookback period
- PMWHL lookback periods (separate for monthly vs weekly)
- ATR lookback period
- Independent toggles for each component (PDH/PDL, ATR bands, monthly levels, weekly levels, weekly ATR)

Timeframe Restriction: Full strategy on 4H only. Daily timeframe shows Smart River trend but disables time-dependent components.

Shared Smart River Calculations

Strategies 1 and 3 share underlying trend calculations to improve efficiency:
- Smart River Only displays the full visual cloud and BOS arrows
- Dx4 uses the same trend logic internally to colour its support/resistance zones
- Each strategy maintains independent settings (colours, transparency, toggles)

This shared calculation reduces code duplication and processing load while maintaining visual independence.

Important Usage Rules

CRITICAL: Only enable ONE strategy at a time. Enabling multiple strategies simultaneously will cause none to function correctly due to conflicting visual overlays and calculation priorities.

Workflow:
1. Disable current strategy (uncheck its enable box)
2. Enable desired strategy (check its enable box)
3. Refresh chart if needed
4. Verify only one strategy shows "Enable" checked in settings

Timeframe Awareness:
- Smart River Only: Works on all timeframes
- DS1: Daily and 4H only (disabled on other timeframes)
- Dx4: Daily and 4H only (Time Key only on 4H)

Technical Implementation Notes

What You're Getting:
- Custom multi-timeframe security() calls with proper lookahead prevention
- Dynamic line/fill array management with automatic clean up
- Hardcoded visual settings to reduce clutter (only essential toggles exposed)
- Strategy-specific calculations that don't interfere with each other
- Proper timeframe validation and restriction enforcement

What Makes This Worth It:
This isn't three separate indicators bundled together. It's an engineered system where:
- Overlapping calculations are optimized (Smart River shared between strategies 1 & 3)
- Each strategy has been individually back tested and refined
- Timeframe restrictions prevent misuse
- Visual components are designed to work together without conflicts
- User interface exposes only the settings that matter

Educational Value

Beyond the indicators themselves, Strategy Selector demonstrates:
- Proper multi-strategy architecture in Pine Script
- Efficient calculation sharing while maintaining independence
- Multi-timeframe analysis best practices (using completed candles, not in-progress data)
- ATR-based dynamic support/resistance vs static historical levels
- Trend context integration across multiple indicator types

This tool represents a systematic approach to trading - rules-based, objective, and back testable.

Who This Is For

Ideal Users:
- Systematic traders who follow rule-based strategies
- Traders working Daily/4H timeframes on forex (developed on 28 currency pairs)
- Those who value objective entry/exit criteria over discretionary judgment
- Traders seeking to reduce chart clutter without losing analytical depth

Not For:
- Scalpers (timeframe restrictions prevent use on <1H charts)
- Traders wanting full customization of every visual element (colours/styles hardcoded for consistency)
- Those seeking indicators that provide trade signals - this shows levels and context, not entry triggers

Version History

v6 Updates:
- Removed legacy strategies (D4, D4a, R50) - streamlined to three core systems
- Optimized DS1 with independent Smart River calculations
- Added complete Dx4 strategy with Time Key, Daily SR, and PMWHL components
- Cleaned up settings panel - strategy-specific inputs grouped logically
- Improved daily trend display to update only at daily candle close (reduces false signals)

Disclaimer: This indicator provides analytical tools and does not constitute financial advice. All trading decisions remain the responsibility of the user. Past performance of any strategy does not guarantee future results. Always test on demo accounts before live trading.
リリースノート
DS1 Daily Swing Points - Display Optimization

Changed the DS1 Daily Swing Points visualization from showing the previous 3 swing highs/lows to showing only the most recent 1 swing high/low.

What Changed:
- DS1 strategy now displays only the most recent daily swing high and swing low
- Previous behaviour showed 3 historical swing points
- All other DS1 functionality remains unchanged (PMHL, Smart River Daily, trend display)

Why This Change:
This update improves chart clarity by reducing visual clutter while maintaining the essential swing structure information needed for trading decisions. The most recent swing points are the most relevant for current market context.

User Impact:
- Daily timeframe: Will see 1 swing high/low instead of 3
- No changes to settings or toggles required
- No impact on other strategies (Smart River Only, Dx4)

Technical Note:
This change affects only the visual display count. The underlying swing point calculation logic remains unchanged - only the number of displayed historical swing points was modified.
リリースノート
RELEASE NOTES - Strategy Selector 101 v6b
--------------------
Dx4 Strategy - Trend Change Arrows Added

Added visual trend change indicators to the Dx4 strategy. Small triangle arrows now appear directly on the 4H chart when a structural trend change is detected.

What Changed:

A bullish triangle arrow appears below the bar when Dx4 detects a break of structure to the upside, indicating a potential trend change from bearish to bullish.

A bearish triangle arrow appears above the bar when Dx4 detects a break of structure to the downside, indicating a potential trend change from bullish to bearish.

Arrows are hardcoded to display automatically when the Dx4 strategy is active on the 4H timeframe. No additional settings or toggles are required.

How It Works:

The arrows are generated by the Dx4 strategy's existing multi-swing break of structure detection system. Arrows only fire on confirmed trend CHANGES - not on every break of structure. This means an arrow will only appear when the trend direction switches from bullish to bearish or vice versa, keeping the chart clean and reducing visual noise.

User Impact:

- Dx4 strategy on 4H: Will now see green triangle arrows below bullish trend change bars and red triangle arrows above bearish trend change bars
- No new settings or inputs required - arrows are automatic
- No changes to Smart River Only or DS1 strategies
- No changes to any existing Dx4 components (Time Key, Daily SR, PMWHL)

Technical Note:

Arrows share the existing Dx4 trend detection calculations. No additional processing overhead introduced.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。