OPEN-SOURCE SCRIPT
Stock Expansion Pullback Signal

Stock Expansion Pullback Signal
This indicator highlights pullback opportunities that occur after strong expansion candles confirmed by volatility and momentum.
Concept:
1. Expansion Detection:
Candle range exceeds ATR × multiplier
Strong body structure (momentum candle)
RSI confirms directional momentum
2. Pullback Phase:
Price retraces into:
EMA fast/slow zone
OR a defined VWAP proximity band
3. Signal:
A signal prints when pullback conditions occur within a configurable number of bars after the expansion.
Features:
• ATR-based expansion filter
• RSI momentum confirmation
• EMA structure context
• VWAP proximity detection
• Adjustable expansion validity window
• Alert-ready conditions
Notes:
Designed for intraday and swing environments.
Works across stocks, indices, crypto, and forex.
Signals are informational and do not guarantee outcomes.
Always forward test before live application.
This indicator highlights pullback opportunities that occur after strong expansion candles confirmed by volatility and momentum.
Concept:
1. Expansion Detection:
Candle range exceeds ATR × multiplier
Strong body structure (momentum candle)
RSI confirms directional momentum
2. Pullback Phase:
Price retraces into:
EMA fast/slow zone
OR a defined VWAP proximity band
3. Signal:
A signal prints when pullback conditions occur within a configurable number of bars after the expansion.
Features:
• ATR-based expansion filter
• RSI momentum confirmation
• EMA structure context
• VWAP proximity detection
• Adjustable expansion validity window
• Alert-ready conditions
Notes:
Designed for intraday and swing environments.
Works across stocks, indices, crypto, and forex.
Signals are informational and do not guarantee outcomes.
Always forward test before live application.
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.