SweepReversalMap
- Индикаторы
-
Shi Yuan Wang
Я разрабатываю собственные индикаторы, советники (Expert Advisors, EA), скрипты и торговые инструменты для MetaTrader 4 и MetaTrader 5, а также индикаторы для TradingView (Pine Script).
Что я могу для вас сделать: - Версия: 1.1
SweepReversalMap — Liquidity Sweep Reversal Zone Mapper
Overview
SweepReversalMap is a price-action-based custom indicator that detects "Liquidity Sweep" events and maps potential reversal zones once price reclaims the swept level. It works on any symbol and timeframe.
Core Logic
- Pivot Detection: Identifies the most recent valid swing high/low based on user-defined Swing Length.
- Sweep Trigger: When price penetrates the swing high (or low) by at least the ATR-filtered minimum penetration threshold, a candidate reversal setup is initiated.
- Reclaim Confirmation: When the close returns inside the swept level, the level is considered "reclaimed".
- Structure Break Confirmation: The close further breaks the local structure low/high, and the candle body meets the ATR-filtered minimum displacement requirement → signal confirmed.
- Expiry Rule: If confirmation is not reached within the maximum allowed bars, the candidate setup is automatically cleared.
Key Features
- Draws a Reversal Zone rectangle on the chart (configurable color)
- Marks the swept swing level with a dotted→solid trend line
- Places a "×" sweep marker at the pivot bar
- Option to show "developing" setups (semi-transparent) or confirmed-only
- Optional Alert, triggered once after the signal bar closes
- Exposes 3 hidden numeric buffers (Bearish / Bullish / Any Signal) for external EA reading via iCustom
Input Parameters
Parameter | Description | Default |
|---|---|---|
Swing Length | Bars on each side for pivot | 5 |
ATR Length | ATR period | 14 |
Min Penetration | Minimum sweep penetration (ATR multiples) | 0.0 |
Structure Length | Local structure length | 3 |
Max Confirm Bars | Maximum bars to confirm | 12 |
Min Displacement | Minimum displacement body (ATR multiples) | 0.2 |
Show Developing | Show developing setups | true |
Box Extension | Confirmed box right extension (bars) | 2 |
Max History | Historical setups kept | 80 |
Zone Color | Reversal zone color | Orange |
Level Color | Level line & marker color | Dark Red |
Alerts | Enable alerts | false |
Max History Bars | Max bars to calculate (0 = all) | 5000 |
Usage Notes
- This indicator is an analytical tool. It does not constitute trading advice and does not guarantee profitability.
- Use it in conjunction with other analysis methods and proper risk management.
- All chart objects created by the indicator are automatically cleaned up on removal.
V:wy911449
