P
PipsGrowth

Smoothed Heikin-Ashi with Closed-Bar Confirmation

#08 · Trend / Price Action غير معاد الرسم EA Readable لوحة تنبيهات

This indicator applies an additional smoothing layer (WMA or EMA) on top of standard Heikin-Ashi candles. The smoothing dramatically reduces noise while preserving trend direction. Color changes signal trend shifts, while Doji-like candles (small body relative to ATR) flag indecision zones where no trades should be taken. Confirmation requires 2+ consecutive same-color candles.

كيف يعمل

Standard HA: HA_Close = (O+H+L+C)/4, HA_Open = (prev_HA_Open + prev_HA_Close)/2. Smoothing: Smoothed_HA_Close = WMA(HA_Close, Smooth_Period), Smoothed_HA_Open = WMA(HA_Open, Smooth_Period). Bull when Smoothed_HA_Close > Smoothed_HA_Open (green). Bear when < (red). Doji when abs(Close - Open) < Doji_Threshold × ATR. Strong bull: 2+ consecutive green with rising closes. Reversal: color change after 2+ same-color.

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

  • BUY: 2+ consecutive green HA candles with rising closes after color change from red
  • SELL: 2+ consecutive red HA candles with falling closes after color change from green
  • No-Trade: Doji detected (small body) → indecision zone
  • No-Trade: Less than Confirmation_Bars consecutive same-color candles

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

  • TP: Price reaches entry ± (TP_ATR_Mult × ATR)
  • Reversal: Color change after 2+ same-color candles
  • Expiry: Signal_Expiry_Bars passed

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

  • Doji Filter: Body < Doji_Threshold × ATR → no signal
  • ATR Regime: Extreme volatility → no signal
  • Spread: Spread > Max_Spread_Points → no signal
  • Cooldown: Last signal < Cooldown_Bars ago → no signal

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

أول 50 سطر من 874
PG_08_HeikinAshi_Smoothed.mq5
MQL5
//+------------------------------------------------------------------+
//| PipsGrowth_HeikinAshi_Smoothed_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 16
#property indicator_plots 5
#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 "HA Candles"
#property indicator_type4 DRAW_COLOR_CANDLES
#property indicator_color4 clrLime,clrRed,clrGray
#property indicator_width4 1
#property indicator_label5 "Doji"
#property indicator_type5 DRAW_ARROW
#property indicator_color5 clrOrange
#property indicator_width5 1
//--- Inputs
input group "Core"
enum ENUM_SMOOTH_METHOD { SM_WMA, SM_EMA, SM_SMA };
input ENUM_SMOOTH_METHOD Smooth_Method = SM_WMA; // Smoothing method
input int Smooth_Period = 3; // Smoothing period
input int Confirmation_Bars = 2; // Consecutive same-color candles to confirm
input double Doji_Threshold = 0.15; // Body/ATR ratio for doji detection
input group "SL/TP"
input int ATR_Period = 14; // ATR period
input double SL_ATR_Mult = 1.0; // Stop loss in ATR multiples
input double TP_ATR_Mult = 1.5; // TP in ATR multiples
input int Signal_Expiry_Bars = 12; // Bars before expiry

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

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

Double-smoothed Heikin-Ashi (HA + WMA/EMA)
Doji detection for no-trade zones
2+ candle confirmation requirement
Color-coded trend visualization
Noise reduction without excessive lag
ATR-adaptive Doji threshold

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

Smooth_Period
الافتراضي: 3
Smoothing period for HA values
Smooth_Method
الافتراضي: WMA
Smoothing method (WMA or EMA)
Doji_Threshold
الافتراضي: 0.15
Body/ATR ratio for Doji detection
Confirmation_Bars
الافتراضي: 2
Consecutive same-color candles required
SL_ATR_Mult
الافتراضي: 1.0
Stop loss in ATR multiples
TP_ATR_Mult
الافتراضي: 1.5
TP in ATR multiples

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

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

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

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

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

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

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

لون Heikin-Ashi هو فلترتك، والشمعة الحقيقية هي تأكيدك. اللون الأملس HA يخبرك باتجاه الاتجاه وفقًا لتنعيم المؤشر. الشمعة الحقيقية (بفتح وإغلاقها الفعلي) هي ما تستخدمه لتوقيت دخولك. سير العمل القياسي: HA يتحول إلى الأخضر → راقب دخول الارتداد على شمعة حقيقية صعودية. عندما تُظهر الشمعة الحقيقية رفضًا (مثل pin bar) في نفس وقت كون HA أخضر، هذا احتمالية عالية. لا تخرج على شمعة حقيقية صعودية لمجرد أن HA تحول إلى أحمر — انتظر أن تؤكد الشمعة الحقيقية الانعكاس أولاً.
آخر تحديث: ١١ يوليو ٢٠٢٦

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

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

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

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

المواصفات

الفئةTrend / Price Action
الصعوبةBeginner
الإصدارv1.0
الإطاراتM5, M15, M30, H1
إعادة الرسملا
EAقابل

الأفضل لـ

Trend followingNoise filteringM5-M15 timeframesBeginner-friendly
Smoothed Heikin-Ashi with Closed-Bar Confirmation | مؤشر MT5 مجاني