OPEN-SOURCE SCRIPT
Roy AI Matrix MTF EMA

ROY AI MATRIX MTF EMA – MOBILE FIX
Roy AI Matrix MTF EMA is an advanced multi-timeframe trend analysis indicator designed to combine EMA structure, timeframe strength, and market direction into a single mathematical trend engine.
This indicator was specially optimized for TradingView mobile users with a lightweight and cleaner matrix dashboard that remains responsive even on lower-powered devices.
Unlike traditional EMA indicators that only analyze one timeframe, Roy AI Matrix MTF EMA combines multiple timeframes and multiple EMA layers simultaneously to calculate overall market bias and trend pressure.
The indicator transforms market structure into a weighted mathematical score system where:
• Higher timeframes carry stronger influence
• Larger EMAs represent stronger market structure
• Bullish conditions generate positive values
• Bearish conditions generate negative values
The final score helps traders quickly identify whether the market is dominated by buyers or sellers.
FEATURES
• Multi-Timeframe EMA Matrix
• EMA 10 / 20 / 50 / 100 / 200 Analysis
• Bullish & Bearish Matrix Heatmap
• AI Trend Score Calculation
• Market Bias Detection
• Buy & Sell Signal Detection
• Mobile-Friendly Compact Table
• Lightweight Optimized Version
• M15 Intraday Trading Optimization
• Trend Gravity Concept
TIMEFRAMES INCLUDED
• M1
• M5
• M15
• M30
• H1
• H4
• Daily
HOW IT WORKS
Each timeframe and EMA combination is converted into a weighted mathematical score.
Bullish conditions produce positive values.
Bearish conditions produce negative values.
Higher timeframes such as H4 and Daily carry significantly stronger weight compared to lower timeframes like M1 and M5.
This allows traders to identify:
• True dominant trend direction
• Pullbacks against major trend
• Momentum continuation
• Trend strength
• Market phase
SIGNAL LOGIC
BUY Signal:
• Overall score is bullish
• M15 EMA momentum turns bullish
• M5 confirms momentum continuation
SELL Signal:
• Overall score is bearish
• M15 EMA momentum turns bearish
• M5 confirms downside continuation
BEST USED FOR
• Intraday Trading
• Scalping
• Trend Following
• Momentum Trading
• Multi-Timeframe Analysis
• Gold (XAUUSD)
• Forex
• Crypto
• Indices
This indicator is designed to help traders visualize market structure and trend alignment in a cleaner and more mathematical way.
Optimized especially for traders who trade primarily on the M15 timeframe while still respecting higher timeframe market gravity.
Roy AI Matrix MTF EMA is an advanced multi-timeframe trend analysis indicator designed to combine EMA structure, timeframe strength, and market direction into a single mathematical trend engine.
This indicator was specially optimized for TradingView mobile users with a lightweight and cleaner matrix dashboard that remains responsive even on lower-powered devices.
Unlike traditional EMA indicators that only analyze one timeframe, Roy AI Matrix MTF EMA combines multiple timeframes and multiple EMA layers simultaneously to calculate overall market bias and trend pressure.
The indicator transforms market structure into a weighted mathematical score system where:
• Higher timeframes carry stronger influence
• Larger EMAs represent stronger market structure
• Bullish conditions generate positive values
• Bearish conditions generate negative values
The final score helps traders quickly identify whether the market is dominated by buyers or sellers.
FEATURES
• Multi-Timeframe EMA Matrix
• EMA 10 / 20 / 50 / 100 / 200 Analysis
• Bullish & Bearish Matrix Heatmap
• AI Trend Score Calculation
• Market Bias Detection
• Buy & Sell Signal Detection
• Mobile-Friendly Compact Table
• Lightweight Optimized Version
• M15 Intraday Trading Optimization
• Trend Gravity Concept
TIMEFRAMES INCLUDED
• M1
• M5
• M15
• M30
• H1
• H4
• Daily
HOW IT WORKS
Each timeframe and EMA combination is converted into a weighted mathematical score.
Bullish conditions produce positive values.
Bearish conditions produce negative values.
Higher timeframes such as H4 and Daily carry significantly stronger weight compared to lower timeframes like M1 and M5.
This allows traders to identify:
• True dominant trend direction
• Pullbacks against major trend
• Momentum continuation
• Trend strength
• Market phase
SIGNAL LOGIC
BUY Signal:
• Overall score is bullish
• M15 EMA momentum turns bullish
• M5 confirms momentum continuation
SELL Signal:
• Overall score is bearish
• M15 EMA momentum turns bearish
• M5 confirms downside continuation
BEST USED FOR
• Intraday Trading
• Scalping
• Trend Following
• Momentum Trading
• Multi-Timeframe Analysis
• Gold (XAUUSD)
• Forex
• Crypto
• Indices
This indicator is designed to help traders visualize market structure and trend alignment in a cleaner and more mathematical way.
Optimized especially for traders who trade primarily on the M15 timeframe while still respecting higher timeframe market gravity.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.