OPEN-SOURCE SCRIPT
Trend Consensus Engine [TCE]

The Trend Consensus Engine (TCE) is a comprehensive market analysis system designed to filter out noise and provide a quantifiable "Trend Score" (0-100). Instead of relying on a single indicator, this script aggregates data from multiple market factors—volatility, momentum, and trend structure—to generate high-probability entry signals based on a consensus logic.
This tool is particularly optimized for Crypto (with specific time-gated logic) and BIST (Borsa Istanbul) markets, allowing traders to see the overall health of the trend at a glance via a dashboard.
How It Works
The engine calculates a composite "Total Score" (0-100) derived from four weighted components:
Trend Structure (AlphaTrend & Guppy):
Analyzes the slope and position relative to the AlphaTrend (Credit to KivancOzbilgic) and Guppy Multiple Moving Averages (GMMA).
Positive slopes and price action above key levels add points to the score.
Volatility & Momentum (Squeeze & ADX):
Incorporates the Squeeze Momentum logic (Credit to LazyBear) to detect explosive moves.
ADX Filter: Filters out chopping/ranging markets. If the ADX is too low, the score is penalized or the signal is blocked.
Dynamic Resistance (MA Channels):
Uses a combination of Donchian Mid-Lines and SMAs to determine if the price is in a "safe zone" or hitting resistance.
Price Action Filters (Pinbar Veto):
Automatically detects bearish "Shooting Star" or weak candles at highs. If a bearish pinbar is detected, the entry signal is vetoed regardless of the trend score.
Features & Settings
Smart Scoring Dashboard: Displays the realtime Score, Instant Decision, and confirmed Close Decision on the chart.
Market Profiles:
Crypto Mode: Includes a "Time Gate" feature (07:00 UTC+3 check) to prevent fakeouts during low-liquidity hours.
BIST Mode: Optimized parameters for the Turkish stock market logic (14:00 session checks).
Score Threshold: Users can adjust the minimum score required (Default: 70) to trigger a "BUY" signal.
Visual Guidance: The background of the dashboard changes color (Green/Red/Yellow) based on the consensus.
How to Use
Check the Dashboard: Look at the "SONUÇ" (Result) row.
GİRİŞ ✅ (ENTRY): The Score is above 70, Momentum is positive, and no Bearish Pinbars are present.
BEKLE ⏳ (WAIT): The trend is weak, or a filter (like ADX or Squeeze) is blocking the trade.
Confirm with Price Action: Use the AlphaTrend lines (Blue/Red) as dynamic support/stop-loss levels.
Credits:
AlphaTrend by KivancOzbilgic
Squeeze Momentum Indicator by LazyBear
VuManChu Cipher concepts for inspiration.
Custom Logic: Scoring algorithm and Time-Gating mechanisms are original custom developments.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice.
This tool is particularly optimized for Crypto (with specific time-gated logic) and BIST (Borsa Istanbul) markets, allowing traders to see the overall health of the trend at a glance via a dashboard.
How It Works
The engine calculates a composite "Total Score" (0-100) derived from four weighted components:
Trend Structure (AlphaTrend & Guppy):
Analyzes the slope and position relative to the AlphaTrend (Credit to KivancOzbilgic) and Guppy Multiple Moving Averages (GMMA).
Positive slopes and price action above key levels add points to the score.
Volatility & Momentum (Squeeze & ADX):
Incorporates the Squeeze Momentum logic (Credit to LazyBear) to detect explosive moves.
ADX Filter: Filters out chopping/ranging markets. If the ADX is too low, the score is penalized or the signal is blocked.
Dynamic Resistance (MA Channels):
Uses a combination of Donchian Mid-Lines and SMAs to determine if the price is in a "safe zone" or hitting resistance.
Price Action Filters (Pinbar Veto):
Automatically detects bearish "Shooting Star" or weak candles at highs. If a bearish pinbar is detected, the entry signal is vetoed regardless of the trend score.
Features & Settings
Smart Scoring Dashboard: Displays the realtime Score, Instant Decision, and confirmed Close Decision on the chart.
Market Profiles:
Crypto Mode: Includes a "Time Gate" feature (07:00 UTC+3 check) to prevent fakeouts during low-liquidity hours.
BIST Mode: Optimized parameters for the Turkish stock market logic (14:00 session checks).
Score Threshold: Users can adjust the minimum score required (Default: 70) to trigger a "BUY" signal.
Visual Guidance: The background of the dashboard changes color (Green/Red/Yellow) based on the consensus.
How to Use
Check the Dashboard: Look at the "SONUÇ" (Result) row.
GİRİŞ ✅ (ENTRY): The Score is above 70, Momentum is positive, and no Bearish Pinbars are present.
BEKLE ⏳ (WAIT): The trend is weak, or a filter (like ADX or Squeeze) is blocking the trade.
Confirm with Price Action: Use the AlphaTrend lines (Blue/Red) as dynamic support/stop-loss levels.
Credits:
AlphaTrend by KivancOzbilgic
Squeeze Momentum Indicator by LazyBear
VuManChu Cipher concepts for inspiration.
Custom Logic: Scoring algorithm and Time-Gating mechanisms are original custom developments.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.