OPEN-SOURCE SCRIPT
Cập nhật AVS VWAP EMA Pullback Pro

AVS VWAP EMA Pullback Pro is a trend‑following intraday system that only looks for trades when price, trend, and volatility all align.
How it works (logic)
Uses VWAP + EMAs to define trend: only longs when price is above VWAP and fast EMA > slow EMA, only shorts when price is below VWAP and fast EMA < slow EMA.
Waits for a pullback to VWAP/EMA zone, then a reclaim (for longs) or rejection (for shorts) plus RSI confirmation, so you buy dips / sell rallies instead of chasing.
Filters out chop with ADX/DMI so trades only trigger when trend strength is above a minimum threshold.
Enforces a time session (e.g., 07:00–20:00) so it avoids low‑liquidity hours.
Uses ATR‑based stop and two profit targets: partial take‑profit at TP1 and a runner to TP2, via two strategy.exit orders with different qty_percent.
How to use it (practically)
Apply it as a strategy on an intraday chart (e.g., 15m ETH/BTC) and keep the chart interval intraday so VWAP and session logic behave correctly.
In settings, start with Trading Session = 0700‑2000, Minimum ADX ≈ 18–22, and default pullback/ATR values, then use the Strategy Tester to see trades, profit factor, and drawdown.
If it overtrades or chops, tighten session window and raise ADX minimum; if it undertrades, widen the session or slightly loosen ADX / pullback thresholds.
How it works (logic)
Uses VWAP + EMAs to define trend: only longs when price is above VWAP and fast EMA > slow EMA, only shorts when price is below VWAP and fast EMA < slow EMA.
Waits for a pullback to VWAP/EMA zone, then a reclaim (for longs) or rejection (for shorts) plus RSI confirmation, so you buy dips / sell rallies instead of chasing.
Filters out chop with ADX/DMI so trades only trigger when trend strength is above a minimum threshold.
Enforces a time session (e.g., 07:00–20:00) so it avoids low‑liquidity hours.
Uses ATR‑based stop and two profit targets: partial take‑profit at TP1 and a runner to TP2, via two strategy.exit orders with different qty_percent.
How to use it (practically)
Apply it as a strategy on an intraday chart (e.g., 15m ETH/BTC) and keep the chart interval intraday so VWAP and session logic behave correctly.
In settings, start with Trading Session = 0700‑2000, Minimum ADX ≈ 18–22, and default pullback/ATR values, then use the Strategy Tester to see trades, profit factor, and drawdown.
If it overtrades or chops, tighten session window and raise ADX minimum; if it undertrades, widen the session or slightly loosen ADX / pullback thresholds.
Phát hành các Ghi chú
some updates on tables Phát hành các Ghi chú
table fixedMã 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.