SQZMOM + Donchian [jakdongjung]

This strategy is designed to capture high-probability "breakout" moves that occur after periods of low volatility. It combines the legendary Squeeze Momentum logic with a 200-period SMA trend filter and uses Donchian Channels for a robust trailing stop-loss.
The core philosophy is simple: Wait for the market to "squeeze" (compress), then enter when volatility expands in the direction of the major trend.
🛠 Key Components
Squeeze Momentum (The Engine): It compares Bollinger Bands (volatility) to Keltner Channels (average range). When Bollinger Bands are inside the Keltner Channels, the market is in a "Squeeze." We enter when the squeeze releases, indicating a surge in momentum.SMA 200 Filter (The Compass): To increase the win rate, the strategy only takes Long trades when the price is above the 200 SMA and Short trades when the price is below it.Donchian Channel (The Guard): Instead of a fixed percentage stop, we use the lowest low (for longs) or highest high (for shorts) of the last $n$ bars. This allows the stop-loss to move dynamically with the market.Smart Risk Management (The Foundation): The strategy automatically calculates your Position Size based on your risk appetite (default 2% of total equity). It looks at the distance to your stop-loss and tells you exactly how much to buy or sell.
📈 Entry Conditions
Long Entry (Buy)Volatility: The "Squeeze" must be releasing (Grey or Blue bars).
Momentum: The Squeeze histogram must be positive (above the zero line).
Trend Filter: The current price must be above the 200 SMA.
Entry Mode: Can be set to "Strict" (only on the first release) or "Any" (anytime the momentum is positive and not in a tight squeeze).
Short Entry (Sell)Volatility: The "Squeeze" must be releasing.
Momentum: The Squeeze histogram must be negative (below the zero line).
Trend Filter: The current price must be below the 200 SMA.
📉 Exit & Stop Loss
LogicTrailing Stop: The strategy uses the Donchian Channel as a trailing exit.
For Longs, the exit is triggered if the price hits the lowest low of the last 20 bars (customizable).For Shorts, the exit is triggered if the price hits the highest high of the last 20 bars.
Visual Aid: The stop-loss levels are plotted on your chart in real-time (Red for Long, Green for Short) only when a position is active, keeping your chart clean.
💰 Money Management Rule
This strategy does not use a "fixed lot" size. It uses Dynamic Position Sizing
🚀 How to use this for study
Observe the "Grey Zone": Notice how the strategy prepares for a move when the dots turn from red to grey.
Trend Alignment: Watch how the 200 SMA prevents "fake-outs" during a counter-trend squeeze.
Backtest: Use the TradingView Strategy Tester to see how the Risk Management protects your capital during losing streaks.
Happy Trading and stay disciplined!
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với hamsung.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với hamsung.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.