OPEN-SOURCE SCRIPT
_mr_beach Liquidity Sweep + VWAP V2 Trend Filter, Presets

_mr_beach Liquidity Sweep + VWAP Reversal V2 (Trend Filter, Presets)
Overview
This strategy models a common institutional market behavior:
Liquidity is taken above the previous day’s high or below the previous day’s low, followed by a return toward fair value (VWAP) and a reversal in the direction of the dominant trend.
The script is designed as a TradingView Strategy for systematic backtesting and optimization.
________________________________________
Core Logic
• Liquidity Levels
o Previous Day High
o Previous Day Low
Used as typical stop-liquidity zones.
• Fair Value
o VWAP is used as confirmation that price has returned to a fair value area.
• Trend Filter
o EMA-based trend direction filter to avoid counter-trend trades.
________________________________________
Trading Rules
Trend Filter
• Long trades only when price closes above EMA.
• Short trades only when price closes below EMA.
Liquidity Sweep
• Bullish sweep: Price trades below Previous Day Low.
• Bearish sweep: Price trades above Previous Day High.
Entry Confirmation
• Long
o Sweep below Previous Day Low
o Close back above Previous Day Low
o Close above VWAP
• Short
o Sweep above Previous Day High
o Close back below Previous Day High
o Close below VWAP
________________________________________
Risk Management
• Stop Loss: ATR-based
• Take Profit: ATR-based
• Risk automatically adapts to market volatility.
• All multipliers are user-adjustable.
________________________________________
Preset Profiles
The script includes ready-to-use preset profiles:
• Index – conservative, session-based, one trade per day
• Forex – session-filtered, moderate volatility settings
• Crypto – higher volatility parameters, no session filter
• Custom – fully manual configuration
Presets control EMA length, ATR settings, SL/TP multipliers, session usage, and trade frequency.
________________________________________
Session & Trade Control
• Optional session filter (default: US regular session)
• Optional one trade per day limit to reduce overtrading and noise
________________________________________
Chart Elements
• EMA (trend direction)
• VWAP (fair value)
• Previous Day High / Low (liquidity zones)
________________________________________
Alerts
• Long setup: Liquidity sweep + VWAP reversal
• Short setup: Liquidity sweep + VWAP reversal
________________________________________
Recommended Usage
• Markets: Indices, liquid stocks, Forex majors, crypto
• Timeframes: 5m and 15m
• Parameters should be optimized per market and timeframe.
________________________________________
Disclaimer
This script is for educational and backtesting purposes only.
It does not constitute financial advice.
Performance depends on market conditions, timeframe, fees, and execution.
Tags: Liquidity, VWAP, EMA, Reversal, Sweep, Smart Money, ICT, ATR, Strategy
Overview
This strategy models a common institutional market behavior:
Liquidity is taken above the previous day’s high or below the previous day’s low, followed by a return toward fair value (VWAP) and a reversal in the direction of the dominant trend.
The script is designed as a TradingView Strategy for systematic backtesting and optimization.
________________________________________
Core Logic
• Liquidity Levels
o Previous Day High
o Previous Day Low
Used as typical stop-liquidity zones.
• Fair Value
o VWAP is used as confirmation that price has returned to a fair value area.
• Trend Filter
o EMA-based trend direction filter to avoid counter-trend trades.
________________________________________
Trading Rules
Trend Filter
• Long trades only when price closes above EMA.
• Short trades only when price closes below EMA.
Liquidity Sweep
• Bullish sweep: Price trades below Previous Day Low.
• Bearish sweep: Price trades above Previous Day High.
Entry Confirmation
• Long
o Sweep below Previous Day Low
o Close back above Previous Day Low
o Close above VWAP
• Short
o Sweep above Previous Day High
o Close back below Previous Day High
o Close below VWAP
________________________________________
Risk Management
• Stop Loss: ATR-based
• Take Profit: ATR-based
• Risk automatically adapts to market volatility.
• All multipliers are user-adjustable.
________________________________________
Preset Profiles
The script includes ready-to-use preset profiles:
• Index – conservative, session-based, one trade per day
• Forex – session-filtered, moderate volatility settings
• Crypto – higher volatility parameters, no session filter
• Custom – fully manual configuration
Presets control EMA length, ATR settings, SL/TP multipliers, session usage, and trade frequency.
________________________________________
Session & Trade Control
• Optional session filter (default: US regular session)
• Optional one trade per day limit to reduce overtrading and noise
________________________________________
Chart Elements
• EMA (trend direction)
• VWAP (fair value)
• Previous Day High / Low (liquidity zones)
________________________________________
Alerts
• Long setup: Liquidity sweep + VWAP reversal
• Short setup: Liquidity sweep + VWAP reversal
________________________________________
Recommended Usage
• Markets: Indices, liquid stocks, Forex majors, crypto
• Timeframes: 5m and 15m
• Parameters should be optimized per market and timeframe.
________________________________________
Disclaimer
This script is for educational and backtesting purposes only.
It does not constitute financial advice.
Performance depends on market conditions, timeframe, fees, and execution.
Tags: Liquidity, VWAP, EMA, Reversal, Sweep, Smart Money, ICT, ATR, Strategy
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.