PROTECTED SOURCE SCRIPT
Trading/Range Tracker Advanced-> PROFABIGHI_CAPITAL

🌟 Overview
The Trading/Range Tracker Advanced is a sophisticated breakout trading system that combines swing-based structure detection, impulsive candle filtering, and market condition analysis. It dynamically identifies ranging versus trending environments, validates entries with EMA trend confirmation, and offers flexible execution modes including a Sniper Mode for precision entries on explosive price movements.
⚙️ Mode and Style Settings
- Trading Mode Selection: Choose between long-only, short-only, or bidirectional trading
- Trade Style Configuration: Conservative mode (single position) or Aggressive mode (multiple concurrent trades)
- Sniper Mode Toggle: Enable impulsive candle requirement for higher-probability entries or disable for relaxed entry conditions
- Execution Flexibility: Adapt strategy behavior to match market conditions and risk appetite
📊 Swing Detection Framework
- Left Bar Lookback: Configurable pivot detection for swing high and low identification
- Right Bar Confirmation: Number of bars required to validate swing structure
- Line Extension Length: Visual display duration for swing level reference lines
- Body-Based Analysis: Uses candle body highs/lows instead of wicks for cleaner structure
- Dynamic Level Updates: Swing highs and lows continuously recalculated based on price action
📈 EMA Trend Confirmation System
Basis Mode:
- Single pair of short and long EMAs for unified trend determination
- Consistent trend reading across both long and short trade directions
- Simplified decision framework with one trend reference
Advanced Mode:
- Dedicated EMA pairs for long trend detection (e.g., 12/21)
- Separate EMA pairs for short trend detection (e.g., 8/16)
- Independent validation for each direction
- Enhanced precision through direction-specific momentum analysis
EMA Exit Trigger Options:
- Intrabar: Exit signal triggers in real-time during bar formation
- Closed Bar: Exit signal only confirmed at bar close for reduced false signals
⚡ Impulsive Candle Detection
Core Requirements:
- Size Multiplier: Candle range must exceed average true range by adjustable factor
- Volume Multiplier: Trading volume must exceed average volume by configurable threshold
- Body-to-Wick Ratio: Candle body must represent minimum percentage of total range
- Volume Check Toggle: Optional volume validation (disable for tickers with unreliable volume data)
Application:
- Breakout Validation: Impulsive candles indicate strong momentum behind price moves
- Entry Window: Number of bars after impulsive breakout to allow entry if trend confirms
- Sniper Mode Filter: When enabled, entries only permitted on impulsive candle breakouts
- Visual Highlighting: Impulsive candles colored distinctly for easy identification
📊 Range/Trend Detector Integration
Market Condition Classification:
- Range Detection: Identifies sideways consolidation periods using deviation pivot analysis
- Trending Up Detection: Recognizes sustained upward momentum
- Trending Down Detection: Identifies persistent downward pressure
- Dynamic Band Display: Upper, middle, and lower bands visualize market structure
Detector Decision Filter:
- Range Mode: Only trade in ranging conditions
- Trending Mode: Only trade in trending conditions (up or down)
- Off Mode: No market condition filter applied
Visual Indicators:
- Yellow Bands: Range-bound market conditions
- Blue Bands: Trending market conditions
- Transition Labels: "L" for long trend start, "S" for short trend start, "R" for range entry
- Candle Coloring: Optional market condition-based candle coloring
🎯 Entry Signal Generation
Long Entry Requirements:
- Price breaks above last swing high
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bullish (short EMA above long EMA)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits long trades
Short Entry Requirements:
- Price breaks below last swing low
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bearish (short EMA below long EMA)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits short trades
Breakout Tracking:
- Breakout Memory: System remembers when swing levels are breached
- Entry Window Counting: Tracks bars elapsed since breakout for time-based entry limit
- Breakout Reset Logic: New swing formation invalidates previous breakout signals
🛡️ Risk Management Framework
- Risk/Reward Ratio Configuration: Adjustable profit target multiplier (default 2.2:1)
- Stop Loss Offset: Percentage buffer applied to swing levels for execution safety
- Long Stop Placement: Below last negative bar low or swing low with offset
- Short Stop Placement: Above last positive bar high or swing high with offset
- Interim Level Reference: Uses most recent opposing candle body for tighter stops
- Dynamic Target Calculation: Take profit automatically derived from entry and stop distance
📤 Exit Management Logic
Stop Loss Exit:
- Long position: price touches or crosses below stop level
- Short position: price touches or crosses above stop level
- Trade closed at loss
Take Profit Exit:
- Long position: price reaches calculated target above entry
- Short position: price reaches calculated target below entry
- Trade closed at profit
EMA Reversal Exit:
- Basis Mode: Short EMA crosses below long EMA (long exit) or above long EMA (short exit)
- Advanced Mode: Direction-specific EMA pair reversal against trade direction
- Intrabar Trigger: Exit in real-time when EMA condition met (if selected)
- Closed Bar Trigger: Exit only after bar confirms (if selected)
- Exit classification: profit if price above/below entry, loss otherwise
🎨 Visualization Features
- Entry Arrows: Green triangles below bars for long entries, red triangles above bars for short entries
- Exit Markers: Dark blue triangles for profitable exits, purple triangles for losing exits
- Swing Lines: Yellow dashed horizontal lines showing swing high (SH) and swing low (SL) levels
- Swing Labels: "SH" text label at swing highs, "SL" text label at swing lows
- Stop/Target Lines: Red dashed line for stop loss, green dashed line for take profit
- EMA Trend Lines: Color-coded moving averages (green for bullish, red for bearish, gray for inactive)
- Range/Trend Bands: Upper, middle, and lower bands colored yellow (range) or blue (trending)
- Market Condition Labels: "L", "S", or "R" labels indicating trend or range transitions
- Trade Candle Coloring: Active positions colored green (long) or red (short)
- Impulsive Candle Highlighting: Orange background color when Sniper Mode detects impulse candles
👁️ Display Customization
- Range/Trend Toggle: Show or hide market condition bands and labels
- Conditional Swing Display: Swing lines only shown when Detector Decision criteria met
- Adjustable Line Length: Control how far forward swing and stop/target lines extend
- Customizable Color Scheme: Personalize colors for EMAs, signals, lines, and candles
- Mode-Based Visibility: Long-only mode hides short signals, short-only hides long signals
🔧 Advanced Configuration
Deviation Pivot Settings:
- Deviation Multiplier: Controls sensitivity of pivot detection for range analysis
- Depth Parameter: Minimum bars considered for pivot validation
- Source Selection: Choose price source for range calculations
- Band Offset Percentage: Adjustable buffer for upper and lower trend bands
Entry Window Management:
- Bars After Breakout: Time limit for entry following impulsive swing break
- Breakout Memory Persistence: System tracks valid breakouts until swing structure resets
- Window Expiration: Entries rejected if EMA confirmation arrives too late
Average Calculation Length:
- Impulse Detection Period: Number of bars for calculating average range and volume
- ATR Reference: Uses true range for label positioning and volatility awareness
🔔 Alert System
- Long entry alerts
- Short entry alerts
- Stop loss hit alerts (combined for both directions)
- Take profit hit alerts (combined for both directions)
- Long EMA exit alerts
- Short EMA exit alerts
- Impulsive candle detection alerts
✅ Key Takeaways
- Dual Market Awareness: Combines swing breakouts with range/trend classification for context-aware trading
- Impulsive Candle Filtering: Optional Sniper Mode ensures entries only on strong momentum candles
- Flexible EMA Framework: Choose between unified Basis mode or direction-optimized Advanced mode
- Market Condition Filtering: Trade only in preferred environments (range, trending, or both)
- Entry Window Control: Time-limited entry opportunity after breakouts prevents chasing
- Multi-Layered Confirmation: Requires swing break + impulse (optional) + trend alignment + condition match
- Interim Level Refinement: Uses most recent opposing candle bodies for tighter stop placement
- Comprehensive Visual Feedback: Range bands, swing levels, impulse highlighting, and trade candles for complete market picture
- Fully Customizable: Extensive inputs for swing detection, impulse criteria, EMA configuration, risk parameters, and display options
The Trading/Range Tracker Advanced is a sophisticated breakout trading system that combines swing-based structure detection, impulsive candle filtering, and market condition analysis. It dynamically identifies ranging versus trending environments, validates entries with EMA trend confirmation, and offers flexible execution modes including a Sniper Mode for precision entries on explosive price movements.
⚙️ Mode and Style Settings
- Trading Mode Selection: Choose between long-only, short-only, or bidirectional trading
- Trade Style Configuration: Conservative mode (single position) or Aggressive mode (multiple concurrent trades)
- Sniper Mode Toggle: Enable impulsive candle requirement for higher-probability entries or disable for relaxed entry conditions
- Execution Flexibility: Adapt strategy behavior to match market conditions and risk appetite
📊 Swing Detection Framework
- Left Bar Lookback: Configurable pivot detection for swing high and low identification
- Right Bar Confirmation: Number of bars required to validate swing structure
- Line Extension Length: Visual display duration for swing level reference lines
- Body-Based Analysis: Uses candle body highs/lows instead of wicks for cleaner structure
- Dynamic Level Updates: Swing highs and lows continuously recalculated based on price action
📈 EMA Trend Confirmation System
Basis Mode:
- Single pair of short and long EMAs for unified trend determination
- Consistent trend reading across both long and short trade directions
- Simplified decision framework with one trend reference
Advanced Mode:
- Dedicated EMA pairs for long trend detection (e.g., 12/21)
- Separate EMA pairs for short trend detection (e.g., 8/16)
- Independent validation for each direction
- Enhanced precision through direction-specific momentum analysis
EMA Exit Trigger Options:
- Intrabar: Exit signal triggers in real-time during bar formation
- Closed Bar: Exit signal only confirmed at bar close for reduced false signals
⚡ Impulsive Candle Detection
Core Requirements:
- Size Multiplier: Candle range must exceed average true range by adjustable factor
- Volume Multiplier: Trading volume must exceed average volume by configurable threshold
- Body-to-Wick Ratio: Candle body must represent minimum percentage of total range
- Volume Check Toggle: Optional volume validation (disable for tickers with unreliable volume data)
Application:
- Breakout Validation: Impulsive candles indicate strong momentum behind price moves
- Entry Window: Number of bars after impulsive breakout to allow entry if trend confirms
- Sniper Mode Filter: When enabled, entries only permitted on impulsive candle breakouts
- Visual Highlighting: Impulsive candles colored distinctly for easy identification
📊 Range/Trend Detector Integration
Market Condition Classification:
- Range Detection: Identifies sideways consolidation periods using deviation pivot analysis
- Trending Up Detection: Recognizes sustained upward momentum
- Trending Down Detection: Identifies persistent downward pressure
- Dynamic Band Display: Upper, middle, and lower bands visualize market structure
Detector Decision Filter:
- Range Mode: Only trade in ranging conditions
- Trending Mode: Only trade in trending conditions (up or down)
- Off Mode: No market condition filter applied
Visual Indicators:
- Yellow Bands: Range-bound market conditions
- Blue Bands: Trending market conditions
- Transition Labels: "L" for long trend start, "S" for short trend start, "R" for range entry
- Candle Coloring: Optional market condition-based candle coloring
🎯 Entry Signal Generation
Long Entry Requirements:
- Price breaks above last swing high
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bullish (short EMA above long EMA)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits long trades
Short Entry Requirements:
- Price breaks below last swing low
- Impulsive candle present (if Sniper Mode enabled)
- EMA trend bearish (short EMA below long EMA)
- Within entry window after breakout
- Market condition matches Detector Decision filter
- Mode permits short trades
Breakout Tracking:
- Breakout Memory: System remembers when swing levels are breached
- Entry Window Counting: Tracks bars elapsed since breakout for time-based entry limit
- Breakout Reset Logic: New swing formation invalidates previous breakout signals
🛡️ Risk Management Framework
- Risk/Reward Ratio Configuration: Adjustable profit target multiplier (default 2.2:1)
- Stop Loss Offset: Percentage buffer applied to swing levels for execution safety
- Long Stop Placement: Below last negative bar low or swing low with offset
- Short Stop Placement: Above last positive bar high or swing high with offset
- Interim Level Reference: Uses most recent opposing candle body for tighter stops
- Dynamic Target Calculation: Take profit automatically derived from entry and stop distance
📤 Exit Management Logic
Stop Loss Exit:
- Long position: price touches or crosses below stop level
- Short position: price touches or crosses above stop level
- Trade closed at loss
Take Profit Exit:
- Long position: price reaches calculated target above entry
- Short position: price reaches calculated target below entry
- Trade closed at profit
EMA Reversal Exit:
- Basis Mode: Short EMA crosses below long EMA (long exit) or above long EMA (short exit)
- Advanced Mode: Direction-specific EMA pair reversal against trade direction
- Intrabar Trigger: Exit in real-time when EMA condition met (if selected)
- Closed Bar Trigger: Exit only after bar confirms (if selected)
- Exit classification: profit if price above/below entry, loss otherwise
🎨 Visualization Features
- Entry Arrows: Green triangles below bars for long entries, red triangles above bars for short entries
- Exit Markers: Dark blue triangles for profitable exits, purple triangles for losing exits
- Swing Lines: Yellow dashed horizontal lines showing swing high (SH) and swing low (SL) levels
- Swing Labels: "SH" text label at swing highs, "SL" text label at swing lows
- Stop/Target Lines: Red dashed line for stop loss, green dashed line for take profit
- EMA Trend Lines: Color-coded moving averages (green for bullish, red for bearish, gray for inactive)
- Range/Trend Bands: Upper, middle, and lower bands colored yellow (range) or blue (trending)
- Market Condition Labels: "L", "S", or "R" labels indicating trend or range transitions
- Trade Candle Coloring: Active positions colored green (long) or red (short)
- Impulsive Candle Highlighting: Orange background color when Sniper Mode detects impulse candles
👁️ Display Customization
- Range/Trend Toggle: Show or hide market condition bands and labels
- Conditional Swing Display: Swing lines only shown when Detector Decision criteria met
- Adjustable Line Length: Control how far forward swing and stop/target lines extend
- Customizable Color Scheme: Personalize colors for EMAs, signals, lines, and candles
- Mode-Based Visibility: Long-only mode hides short signals, short-only hides long signals
🔧 Advanced Configuration
Deviation Pivot Settings:
- Deviation Multiplier: Controls sensitivity of pivot detection for range analysis
- Depth Parameter: Minimum bars considered for pivot validation
- Source Selection: Choose price source for range calculations
- Band Offset Percentage: Adjustable buffer for upper and lower trend bands
Entry Window Management:
- Bars After Breakout: Time limit for entry following impulsive swing break
- Breakout Memory Persistence: System tracks valid breakouts until swing structure resets
- Window Expiration: Entries rejected if EMA confirmation arrives too late
Average Calculation Length:
- Impulse Detection Period: Number of bars for calculating average range and volume
- ATR Reference: Uses true range for label positioning and volatility awareness
🔔 Alert System
- Long entry alerts
- Short entry alerts
- Stop loss hit alerts (combined for both directions)
- Take profit hit alerts (combined for both directions)
- Long EMA exit alerts
- Short EMA exit alerts
- Impulsive candle detection alerts
✅ Key Takeaways
- Dual Market Awareness: Combines swing breakouts with range/trend classification for context-aware trading
- Impulsive Candle Filtering: Optional Sniper Mode ensures entries only on strong momentum candles
- Flexible EMA Framework: Choose between unified Basis mode or direction-optimized Advanced mode
- Market Condition Filtering: Trade only in preferred environments (range, trending, or both)
- Entry Window Control: Time-limited entry opportunity after breakouts prevents chasing
- Multi-Layered Confirmation: Requires swing break + impulse (optional) + trend alignment + condition match
- Interim Level Refinement: Uses most recent opposing candle bodies for tighter stop placement
- Comprehensive Visual Feedback: Range bands, swing levels, impulse highlighting, and trade candles for complete market picture
- Fully Customizable: Extensive inputs for swing detection, impulse criteria, EMA configuration, risk parameters, and display options
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.