P
PipsGrowth

Multi-Timeframe (MTF) Confluence Indicator

#13 · Multi-Timeframe / Confluence غير معاد الرسم EA Readable لوحة تنبيهات

The MTF Confluence indicator evaluates trend conditions across 4 configurable timeframes simultaneously. Each timeframe contributes a weighted score based on EMA alignment (fast above slow = bullish), ADX trend strength, and Efficiency Ratio (trending vs choppy). The weighted confluence score determines entry signals, with higher timeframes carrying more weight. This ensures you only trade in the direction of the higher-timeframe trend.

كيف يعمل

Per timeframe: EMA alignment (fast > slow = bull, fast < slow = bear), ADX > threshold = trending, ER > threshold = efficient. Weighted score = Σ(TF_weight × TF_score). TF score = EMA alignment (+1/-1) × ADX factor × ER factor. Total score range: -1.0 to +1.0. Signal: score > Min_Confluence → BUY, score < -Min_Confluence → SELL. Confluence line colored green (bull), red (bear), gray (neutral).

إشارات الدخول

  • BUY: Weighted confluence score > Min_Confluence threshold
  • SELL: Weighted confluence score < -Min_Confluence threshold
  • No-Trade: Score between thresholds → conflicting timeframes
  • Direction determined by weighted majority of timeframe alignments

إشارات الخروج

  • TP: Price reaches entry ± (TP_ATR_Mult × ATR)
  • Reversal: Confluence score flips to opposite threshold
  • Expiry: Signal_Expiry_Bars passed

مرشحات التداول

  • ADX Strength: ADX < threshold on primary TF → no signal
  • Efficiency Ratio: ER < threshold → choppy, no signal
  • Session: Outside session hours → no signal
  • Spread: Spread > Max_Spread_Points → no signal
  • Cooldown: Last signal < Cooldown_Bars ago → no signal

معاينة الكود المصدري

أول 50 سطر من 1048
PG_13_MTF_Confluence.mq5
MQL5
//+------------------------------------------------------------------+
//| PipsGrowth_MTF_Confluence_Indicator_v1.mq5 |
//| Copyright 2025, Pipsgrowth.com |
//| https://www.pipsgrowth.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, Pipsgrowth.com"
#property link "https://www.pipsgrowth.com"
#property version "1.00"
#property indicator_chart_window
#property indicator_buffers 17
#property indicator_plots 4
#property indicator_label1 "BUY Entry"
#property indicator_type1 DRAW_COLOR_ARROW
#property indicator_color1 clrLime
#property indicator_width1 2
#property indicator_label2 "SELL Entry"
#property indicator_type2 DRAW_COLOR_ARROW
#property indicator_color2 clrRed
#property indicator_width2 2
#property indicator_label3 "Exit"
#property indicator_type3 DRAW_COLOR_ARROW
#property indicator_color3 clrAqua,clrOrange,clrGray
#property indicator_width3 2
#property indicator_label4 "Confluence Score"
#property indicator_type4 DRAW_COLOR_LINE
#property indicator_color4 clrLime,clrRed,clrGray
#property indicator_width4 2
//--- Inputs
input group "EMA Settings"
input int EMA_Fast_Period = 9; // Fast EMA period
input int EMA_Slow_Period = 21; // Slow EMA period
input group "ADX Settings"
input int ADX_Period = 14; // ADX period
input int ADX_Threshold = 25; // ADX trend threshold
input group "Efficiency Ratio"
input int ER_Period = 10; // ER period
input double ER_Threshold = 0.3; // ER trending threshold
input group "EMA Slope"
input int Slope_Lookback = 5; // Bars for EMA slope
input double Min_Slope = 0.0001; // Min slope to count as trending
input group "Timeframes"

لأغراض تعليمية فقط. لا تستخدمه بأموال حقيقية. اختبر على حساب تجريبي فقط.

المميزات الرئيسية

4 timeframe simultaneous analysis
Configurable timeframe weights
EMA alignment + ADX strength + Efficiency Ratio per TF
Weighted confluence score (-1.0 to +1.0)
Visual confluence score line (color-coded)
HTF trend alignment enforcement

معاملات الإدخال

EMA_Fast_Period
الافتراضي: 9
Fast EMA period
EMA_Slow_Period
الافتراضي: 21
Slow EMA period
ADX_Period
الافتراضي: 14
ADX period
ADX_Threshold
الافتراضي: 25
ADX trend threshold
ER_Period
الافتراضي: 10
Efficiency Ratio period
ER_Threshold
الافتراضي: 0.3
ER trending threshold
TF1_Period
الافتراضي: PERIOD_M5
TF1 (fastest)
TF2_Period
الافتراضي: PERIOD_M15
TF2
TF3_Period
الافتراضي: PERIOD_H1
TF3 (primary)
TF4_Period
الافتراضي: PERIOD_H4
TF4 (trend filter)
TF1_Weight
الافتراضي: 0.15
Base weight TF1
TF2_Weight
الافتراضي: 0.25
Base weight TF2
TF3_Weight
الافتراضي: 0.35
Base weight TF3
TF4_Weight
الافتراضي: 0.25
Base weight TF4

تعليمات التثبيت

1حمّل ملف .mq5 من زر التحميل
2افتح MetaTrader 5 ← File ← Open Data Folder
3اذهب إلى MQL5 ← Indicators
4انسخ ملف .mq5 إلى مجلد Indicators
5افتح MetaEditor (F4) واضغط F5 للترجمة
6المؤشر سيظهر في Navigator تحت Indicators
7اسحب المؤشر إلى الرسم البياني
8اختبر على حساب تجريبي أولاً

تحذير صريح: لأغراض تعليمية فقط

هذا المؤشر مخصص للأغراض التعليمية والاختبارية فقط. لا تستخدمه بأموال حقيقية. اختبره فقط على حساب تجريبي. التداول بأموال حقيقية ينطوي على مخاطر فقدان رأس المال. لا تشكل هذه الأداة نصيحة استثمارية.

مجتمع المستخدمين

سجّل دخولك للمشاركةتسجيل الدخول

الأسئلة الشائعة

النتيجة 0.7 هي محاذاة قوية، وليست ضمانًا. MTF Confluence يخبرك أن الاتجاه محدد — لا يضمن أن توقيت الدخول صحيح. المحاذاة المثالية للاتجاه يمكن أن تفشل إذا كان دخولك في نهاية ارتداد يصبح انعكاسًا. استخدم درجة التقارب للاتجاه، واستخدم أداة دخول منفصلة (تباعد RSI، ارتداد VWAP، pin bar) للتوقيت. المحاذاة لجميع TFs الأربعة عند 0.7 هي البيئة؛ أداة الدخول هي المحفز. لا تتداول الدخول بدون البيئة، ولا تفترض أن البيئة تضمن الدخول.
آخر تحديث: ١١ يوليو ٢٠٢٦

إخلاء مسؤولية تعليمي

هذا المحتوى للأغراض التعليمية فقط ولا يُعد نصيحة مالية أو استثمارية. التداول ينطوي على مخاطر كبيرة وقد تفقد رأس مالك. استشر مستشارًا ماليًا مرخصًا قبل اتخاذ أي قرارات استثمارية.

سجّل دخولك للتحميل

التحميل متاح للأعضاء المسجلين. سجّل الدخول أو أنشئ حساباً مجانياً للوصول إلى الكود المصدري الكامل.

المواصفات

الفئةMulti-Timeframe / Confluence
الصعوبةAdvanced
الإصدارv1.0
الإطاراتM5, M15, M30
إعادة الرسملا
EAقابل

الأفضل لـ

Multi-timeframe analysisHTF-aligned entriesM5 with H1/H4 trend filterSystematic trading
Multi-Timeframe (MTF) Confluence Indicator | مؤشر MT5 مجاني