OPEN-SOURCE SCRIPT
تم تحديثه Chainbey Ai - HTF Trend Matrix (Clean)

Chainbey Ai – HTF Trend Matrix is a professional, higher-timeframe trend detection indicator designed to give traders a clean, reliable market bias, regardless of the chart timeframe they are trading on.
This indicator automatically analyzes multiple higher timeframes (HTFs) and combines:
EMA trend direction
Trend strength (ADX)
Market structure (trend vs range)
Trend disagreement across HTFs
Reversal probability estimation
All results are displayed in a compact table at the bottom-right, making it perfect for scalpers, day traders, and swing traders who need fast, decision-ready information.
🧠 What This Indicator Solves
❌ No more guessing the higher-timeframe trend
❌ No more trading against the main market bias
❌ No more confusion between trend vs range
✅ Clear BULLISH / BEARISH / RANGE bias
✅ Strength score to avoid weak trends
✅ Reversal probability to manage risk
📊 How to Read the Table (User Manual)
🔹 FINAL Row
Example:
FINAL | BEARISH TREND | -46
Text (BEARISH / BULLISH / RANGE) → Overall market bias
Number (-46) → Trend Strength Score
Trend Score Guide:
Score Meaning
0 to ±20 No trend / Choppy
±20 to ±40 Weak trend
±40 to ±70 Healthy trend
±70+ Very strong / extended trend
📌 Negative = Bearish
📌 Positive = Bullish
🔹 REVERSAL – Possibility (%)
Example:
REVERSAL | Possibility | 45%
This shows the chance of trend exhaustion or reversal.
Reversal % Meaning
0–30% Strong trend continuation
30–50% Normal pullback risk
50%+ High reversal probability
70%+ Dangerous to chase trades
📌 Use this to avoid late entries.
🔹 HTF Rows (60 / 240 / D)
Each row shows:
DIR / STRUCT
Direction from EMA trend
Market structure (TREND / RANGE)
ADX
Trend strength
STRONG / MEDIUM / CHOP
📌 If multiple HTFs agree → higher confidence
📌 If HTFs conflict → reduce position size or wait
🛠 Recommended Trading Usage
✅ Best Practices
Trade in the direction of FINAL trend
Enter on pullbacks, not breakouts
Use lower timeframes only for entries
❌ Avoid
Trading against FINAL bias
Chasing trades when reversal % is high
Over-leveraging in CHOP conditions
🎯 Ideal For
Crypto traders (Spot & Futures)
Forex traders
Gold / Commodity traders
Scalping, Intraday & Swing trading
⚠️ Disclaimer
This indicator is a decision-support tool, not financial advice. Always combine it with proper risk management, confirmations, and your trading plan.
This indicator automatically analyzes multiple higher timeframes (HTFs) and combines:
EMA trend direction
Trend strength (ADX)
Market structure (trend vs range)
Trend disagreement across HTFs
Reversal probability estimation
All results are displayed in a compact table at the bottom-right, making it perfect for scalpers, day traders, and swing traders who need fast, decision-ready information.
🧠 What This Indicator Solves
❌ No more guessing the higher-timeframe trend
❌ No more trading against the main market bias
❌ No more confusion between trend vs range
✅ Clear BULLISH / BEARISH / RANGE bias
✅ Strength score to avoid weak trends
✅ Reversal probability to manage risk
📊 How to Read the Table (User Manual)
🔹 FINAL Row
Example:
FINAL | BEARISH TREND | -46
Text (BEARISH / BULLISH / RANGE) → Overall market bias
Number (-46) → Trend Strength Score
Trend Score Guide:
Score Meaning
0 to ±20 No trend / Choppy
±20 to ±40 Weak trend
±40 to ±70 Healthy trend
±70+ Very strong / extended trend
📌 Negative = Bearish
📌 Positive = Bullish
🔹 REVERSAL – Possibility (%)
Example:
REVERSAL | Possibility | 45%
This shows the chance of trend exhaustion or reversal.
Reversal % Meaning
0–30% Strong trend continuation
30–50% Normal pullback risk
50%+ High reversal probability
70%+ Dangerous to chase trades
📌 Use this to avoid late entries.
🔹 HTF Rows (60 / 240 / D)
Each row shows:
DIR / STRUCT
Direction from EMA trend
Market structure (TREND / RANGE)
ADX
Trend strength
STRONG / MEDIUM / CHOP
📌 If multiple HTFs agree → higher confidence
📌 If HTFs conflict → reduce position size or wait
🛠 Recommended Trading Usage
✅ Best Practices
Trade in the direction of FINAL trend
Enter on pullbacks, not breakouts
Use lower timeframes only for entries
❌ Avoid
Trading against FINAL bias
Chasing trades when reversal % is high
Over-leveraging in CHOP conditions
🎯 Ideal For
Crypto traders (Spot & Futures)
Forex traders
Gold / Commodity traders
Scalping, Intraday & Swing trading
⚠️ Disclaimer
This indicator is a decision-support tool, not financial advice. Always combine it with proper risk management, confirmations, and your trading plan.
ملاحظات الأخبار
Remake Data table. That all user understand easilyملاحظات الأخبار
Auto Refresh fixملاحظات الأخبار
Update Data Tableنص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.