OPEN-SOURCE SCRIPT

Trend Consensus Engine [TCE]

90
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.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.