PROTECTED SOURCE SCRIPT
已更新

APS - Sweeps & BOS

1 294
This indicator identifies pivot highs and lows, detects liquidity sweeps, and marks Break of Structure (BOS).

Key Features:
1) Pivot Detection :
The script uses configurable left and right bar parameters to identify significant pivot highs and lows, marking them with "X" labels on the chart. These pivots represent potential areas where price may react.

2) Sweep Detection :
A sweep occurs when price temporarily moves beyond a previous pivot level but closes back inside, suggesting a liquidity grab or stop hunt. The indicator draws horizontal lines connecting the original pivot to the sweep location and labels these events. Sweeps often precede reversals as they collect liquidity before moving in the opposite direction.

3) Break of Structure (BOS) :
BOS events are marked when price closes beyond a previous pivot level, indicating a potential shift in market structure. Bullish BOS occurs when price closes above a pivot high, while Bearish BOS occurs when price closes below a pivot low. These can signal continuation moves or trend changes.

4) Previous Day High/Low (PDH/PDL):
The indicator tracks the previous session's high and low (based on 6 PM ET session breaks, which auto-adjusts for DST) and displays whether these levels have been breached. It also calculates and displays a 50% equilibrium line between PDH and PDL.

5) Higher Timeframe Context :
A table in the top-right corner shows whether the higher timeframe close is in premium (above equilibrium) or discount (below equilibrium) territory. The HTF automatically adjusts based on your current timeframe.

6) Customization Options:
Adjustable pivot sensitivity (left/right bars)
Configurable sweep lookback period
Customizable colors, line styles, and label sizes for all elements
Toggle visibility for any component
Optional alerts for sweeps and BOS events

How to Use:
Sweeps near support/resistance often indicate liquidity grabs before reversals
BOS events can confirm directional bias changes
Use PDH/PDL levels as reference points for intraday trading
Consider HTF context when taking trades (discount zones for longs, premium zones for shorts)

Important Notes:

This indicator is designed for educational purposes and market analysis. Past patterns do not guarantee future results. Please follow proper risk management. https://www.tradingview.com/x/SJaTbeVV/
發行說明
Added color customization to
bearish BOS
bullish BOS
bearish Sweep
bullish Sweep
發行說明
Update : Alerts not working has been fixed now for BOS and Sweeps.
發行說明
Quality of life changes to UI
發行說明
Bug fixes
發行說明
Added Zigzag support :

-Toggle to show/hide the zig zag.
-Adjustable swing length (default: 10).
-Customizable color and line width.
- Filters out minor price fluctuations which the BOS & Sweeps do not.

How it works:

- The zig zag operates independently from the sweep/BOS detection
- It uses its own swing length parameter (separate from the pivot detection)
- Lines are drawn dynamically and updated in real-time
- The zig zag helps visualize the overall market structure while the sweeps and BOS markers show specific trading opportunities.
發行說明
Added New Features :
1) Orderblock detection, plotting and mitigation
2) Rejection block detection, plotting and mitigation

Please note by default , the mitigated OBs and RBJs shall stop extending after 10 bars on current timeframe. This setting is user configurable and can be changed.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。