OPEN-SOURCE SCRIPT
Multi-Timeframe Trend Table

📊 Indicator Overview:
This is a Multi-Timeframe Trend Analyzer based on:
Short EMA (fast trend)
Long EMA (slow trend)
Across 3 customizable timeframes
It summarizes market direction into a simple table + chart overlay, so you instantly know the market bias.
🧠 Core Logic
The trend is defined using a very clear rule:
📌 Bullish (UP ↗)
Price > Short EMA
Price > Long EMA
📌 Bearish (DOWN ↘)
Price < Short EMA
Price < Long EMA
👉 So you’re basically measuring:
Is price above both momentum layers? → strong bullish
Below both? → strong bearish
⏱️ Multi-Timeframe Analysis
You can choose any 3 timeframes, for example:
15M (entry timing)
1H (intraday trend)
4H (macro bias)
Each timeframe is analyzed independently and displayed in the table.
📋 Trend Table
The indicator draws a table on your chart showing:
🔹 If EMA values are enabled:
| Timeframe | Trend | EMA Short | EMA Long |
🔹 If disabled:
| Timeframe | Trend |
🎯 Signal Meaning
🟢 UP ↗
Price is above both EMAs
Strong bullish bias
🔴 DOWN ↘
Price is below both EMAs
Strong bearish bias
📈 Current Timeframe EMAs
The indicator also plots on your chart:
Short EMA
Long EMA
⚙️ You can enable/disable this from inputs.
👉 This gives you visual confirmation directly on price.
⚙️ Inputs & Customization
🔹 Timeframes
1st TF
2nd TF
3rd TF
(fully customizable)
🔹 EMA Settings
Short EMA length
Long EMA length
🔹 Display Options
Show/hide EMA values in table
Show/hide EMAs on chart
Table position
💡 Practical Trading Use
1️⃣ Trend Filtering (Bias Tool)
All 3 TFs = UP → strong bullish environment
All 3 TFs = DOWN → strong bearish environment
👉 Use it to define market bias before entering
2️⃣ Entry Timing
Example:
4H → UP
1H → UP
15M → Pullback
👉 Look for buy entries on lower timeframe
3️⃣ Avoid Bad Trades
Example:
4H → UP
1H → DOWN
👉 Market is conflicting → stay out
⚠️ Important Notes
- This is not a standalone entry system
- It’s a trend/bias confirmation tool
- EMAs are lagging → signals are slightly delayed
🧩 Final Summary
This indicator simplifies a complex question:
“Is the market aligned across multiple timeframes?”
This is a Multi-Timeframe Trend Analyzer based on:
Short EMA (fast trend)
Long EMA (slow trend)
Across 3 customizable timeframes
It summarizes market direction into a simple table + chart overlay, so you instantly know the market bias.
🧠 Core Logic
The trend is defined using a very clear rule:
📌 Bullish (UP ↗)
Price > Short EMA
Price > Long EMA
📌 Bearish (DOWN ↘)
Price < Short EMA
Price < Long EMA
👉 So you’re basically measuring:
Is price above both momentum layers? → strong bullish
Below both? → strong bearish
⏱️ Multi-Timeframe Analysis
You can choose any 3 timeframes, for example:
15M (entry timing)
1H (intraday trend)
4H (macro bias)
Each timeframe is analyzed independently and displayed in the table.
📋 Trend Table
The indicator draws a table on your chart showing:
🔹 If EMA values are enabled:
| Timeframe | Trend | EMA Short | EMA Long |
🔹 If disabled:
| Timeframe | Trend |
🎯 Signal Meaning
🟢 UP ↗
Price is above both EMAs
Strong bullish bias
🔴 DOWN ↘
Price is below both EMAs
Strong bearish bias
📈 Current Timeframe EMAs
The indicator also plots on your chart:
Short EMA
Long EMA
⚙️ You can enable/disable this from inputs.
👉 This gives you visual confirmation directly on price.
⚙️ Inputs & Customization
🔹 Timeframes
1st TF
2nd TF
3rd TF
(fully customizable)
🔹 EMA Settings
Short EMA length
Long EMA length
🔹 Display Options
Show/hide EMA values in table
Show/hide EMAs on chart
Table position
💡 Practical Trading Use
1️⃣ Trend Filtering (Bias Tool)
All 3 TFs = UP → strong bullish environment
All 3 TFs = DOWN → strong bearish environment
👉 Use it to define market bias before entering
2️⃣ Entry Timing
Example:
4H → UP
1H → UP
15M → Pullback
👉 Look for buy entries on lower timeframe
3️⃣ Avoid Bad Trades
Example:
4H → UP
1H → DOWN
👉 Market is conflicting → stay out
⚠️ Important Notes
- This is not a standalone entry system
- It’s a trend/bias confirmation tool
- EMAs are lagging → signals are slightly delayed
🧩 Final Summary
This indicator simplifies a complex question:
“Is the market aligned across multiple timeframes?”
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.