OPEN-SOURCE SCRIPT
已更新 SyncTrader Pro - Market Context & Confluence Suite

SyncTrader Pro is a framework for intraday and swing traders designed to separate three core parts of trade evaluation: directional bias, market regime, and execution quality.
Instead of adding more overlays to the chart, the script processes structure, volatility, and momentum data in the background. The result is a compact context readout through a HUD panel that helps traders distinguish expansion from rotation and avoid late entries into already extended markets.
The script uses established market references such as VWAP, volatility bands, and momentum measures because they provide consistent reference points for fair value, compression, and directional pressure. The value of SyncTrader Pro does not come from these components individually, but from how they are filtered, weighted, and translated into a structured decision workflow.
Engine architecture
The engine is built around three main modules that serve different purposes and together form a structured market context model.
1. Regime Detection
A trend continuation setup rarely performs well in a sideways market. The regime engine classifies the current market mode so the trading approach can be adjusted accordingly.
• Squeeze (compression): identified when Bollinger Band Width contracts while the Bollinger Bands remain contained inside the Keltner Channels.
• Trend (expansion): validated through smoothed ADX behavior combined with volatility thresholds.
• Range (rotation): the neutral state when compression is absent and directional pressure remains weak.
To reduce unstable switching during short-lived price spikes, the regime engine uses confirmation logic through persistence and hysteresis. A new regime is only displayed once the underlying conditions remain stable for multiple bars.
2. Directional Bias
The engine computes an internal directional score for market bias: BULL, BEAR, or NEUTRAL.
This score is derived from structural breaks such as fractals, momentum shifts, and imbalance behavior. Older confirmations gradually lose weight through an internal decay process, so the displayed bias reflects the current state of the market rather than outdated structure. The result is direction that remains informative while being smoother and less reactive to noise.
3. Execution Quality and Stretch Gate
A market can have a valid bullish or bearish bias while still offering poor trade location. This module evaluates whether the current entry zone remains acceptable.
The script continuously measures price distance from fair value through VWAP deviation using a Z-score, together with daily range exhaustion through ADR percentage.
• If price moves too far from VWAP beyond a defined stretch threshold.
• If a large share of the average daily range has already been consumed.
A dampening mechanism is applied. The panel can downgrade setup quality to L for Low or mark the zone as E for Extreme Stretch.
This module is designed to warn the trader against chasing an already extended move, even if the directional bias itself remains intact.
Additional structure support
For added orientation, the script includes a Smart S&R function. It identifies fractal highs and lows from higher timeframes and merges nearby levels into cleaner support and resistance zones. Older zones are removed over time to keep the chart readable.
Practical workflow examples
The workflow is designed to place signals inside their broader market context.
Scenario 1: Late entry avoidance
Context: the market is rising strongly. Bias shows BULL. Regime shows TREND.
Quality: VWAP distance signals Extreme Stretch. ADR is already near exhaustion.
Action: even though the trend remains valid, the engine warns against a fresh entry. The risk of a pullback toward fair value is elevated, so the trader waits for consolidation.
Scenario 2: Expansion from compression
Context: Regime = SQUEEZE. Price is trading close to the VWAP baseline.
Trigger: relative volume increases and bias shifts to BULL.
Action: the engine confirms that a breakout from compression is supported by direction, participation, and location before the market becomes overstretched.
Scenario 3: Rotational market
Context: Regime = RANGE. Bias = NEUTRAL.
Action: the trader recognizes that breakout approaches are less suitable in this environment and instead focuses on rotations between the edges of Smart S&R zones and the VWAP baseline.
Summary
SyncTrader Pro is not designed as a generic signal overlay. Its purpose is to organize direction, market state, and execution quality into one structured framework so traders can judge whether a move is tradable, what type of environment is active, and whether the current location still supports participation.
Instead of adding more overlays to the chart, the script processes structure, volatility, and momentum data in the background. The result is a compact context readout through a HUD panel that helps traders distinguish expansion from rotation and avoid late entries into already extended markets.
The script uses established market references such as VWAP, volatility bands, and momentum measures because they provide consistent reference points for fair value, compression, and directional pressure. The value of SyncTrader Pro does not come from these components individually, but from how they are filtered, weighted, and translated into a structured decision workflow.
Engine architecture
The engine is built around three main modules that serve different purposes and together form a structured market context model.
1. Regime Detection
A trend continuation setup rarely performs well in a sideways market. The regime engine classifies the current market mode so the trading approach can be adjusted accordingly.
• Squeeze (compression): identified when Bollinger Band Width contracts while the Bollinger Bands remain contained inside the Keltner Channels.
• Trend (expansion): validated through smoothed ADX behavior combined with volatility thresholds.
• Range (rotation): the neutral state when compression is absent and directional pressure remains weak.
To reduce unstable switching during short-lived price spikes, the regime engine uses confirmation logic through persistence and hysteresis. A new regime is only displayed once the underlying conditions remain stable for multiple bars.
2. Directional Bias
The engine computes an internal directional score for market bias: BULL, BEAR, or NEUTRAL.
This score is derived from structural breaks such as fractals, momentum shifts, and imbalance behavior. Older confirmations gradually lose weight through an internal decay process, so the displayed bias reflects the current state of the market rather than outdated structure. The result is direction that remains informative while being smoother and less reactive to noise.
3. Execution Quality and Stretch Gate
A market can have a valid bullish or bearish bias while still offering poor trade location. This module evaluates whether the current entry zone remains acceptable.
The script continuously measures price distance from fair value through VWAP deviation using a Z-score, together with daily range exhaustion through ADR percentage.
• If price moves too far from VWAP beyond a defined stretch threshold.
• If a large share of the average daily range has already been consumed.
A dampening mechanism is applied. The panel can downgrade setup quality to L for Low or mark the zone as E for Extreme Stretch.
This module is designed to warn the trader against chasing an already extended move, even if the directional bias itself remains intact.
Additional structure support
For added orientation, the script includes a Smart S&R function. It identifies fractal highs and lows from higher timeframes and merges nearby levels into cleaner support and resistance zones. Older zones are removed over time to keep the chart readable.
Practical workflow examples
The workflow is designed to place signals inside their broader market context.
Scenario 1: Late entry avoidance
Context: the market is rising strongly. Bias shows BULL. Regime shows TREND.
Quality: VWAP distance signals Extreme Stretch. ADR is already near exhaustion.
Action: even though the trend remains valid, the engine warns against a fresh entry. The risk of a pullback toward fair value is elevated, so the trader waits for consolidation.
Scenario 2: Expansion from compression
Context: Regime = SQUEEZE. Price is trading close to the VWAP baseline.
Trigger: relative volume increases and bias shifts to BULL.
Action: the engine confirms that a breakout from compression is supported by direction, participation, and location before the market becomes overstretched.
Scenario 3: Rotational market
Context: Regime = RANGE. Bias = NEUTRAL.
Action: the trader recognizes that breakout approaches are less suitable in this environment and instead focuses on rotations between the edges of Smart S&R zones and the VWAP baseline.
Summary
SyncTrader Pro is not designed as a generic signal overlay. Its purpose is to organize direction, market state, and execution quality into one structured framework so traders can judge whether a move is tradable, what type of environment is active, and whether the current location still supports participation.
發行說明
Sweep bar (S) added.發行說明
"Bar signals" naming revised.發行說明
Added "Sweep" to alerts.發行說明
Sweep bar delay bug fixed.發行說明
Alerts revised.發行說明
Yearly VWAP added.發行說明
VWAP updated.發行說明
"VWAP", "Show Lines" revised.發行說明
Focused Lens / Lens BG added, removed MTF Candles, Trading Sessions, OR/IB; simplified internal London/NY VWAP filter. SL/R for Fractals added.發行說明
Removed "Focused Lens" Panel; removed Kama Indicator as Visual.BIAS now shows maturity (1 fresh, 2 working/reloaded, 3 late/extended); REG now shows mapped VWAP Z-distance instead of marker symbols.
發行說明
Panel revised. REG cells can now display either the existing mapped VWAP-Z distance or a new normalized SMA-Z distance.發行說明
Panel position revised.發行說明
VIX added.開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。