P
PipsGrowth
متابعة الاتجاهمفتوح المصدر - مجاني

Pipsgrowth EX16106 Trend — إكسبرت أدفايزر متابعة اتجاه

إكسبرت أدفايزر MT5 مفتوح المصدر · XAUUSD · M5، H1

Pipsgrowth EX16106 Trend — Hull EA trades using four Hull indicators with ATR-based risk management, additional entries and multi-filter confirmati. إكسبرت أدفايزر MT5 مفتوح المصدر.

نظرة عامة

Pipsgrowth EX16106 هو خبير آلي يعمل بموافقة أربعة مؤشرات Hull مبنية على المؤشر التقليدي hull-averageNew، مع تجميع للنتائج عبر نظام تسجيل مركّب، وإدارة مخاطر قائمة على ATR، وميزة اختيارية لدخول صفقات إضافية مكدّسة. كل مؤشر من الأربعة يحمل إعداداته الخاصة من الفترة، القاسم، نوع المتوسط المتحرك، السعر، الإطار الزمني للمصدر، حساسية التسطح، ومرشحات فرعية لـ ADX وATR والزخم والحجم والانحدار؛ لذا فإن ما يبدو قراراً واحداً هو في الحقيقة مصفوفة من أكثر من ثلاثين مُدخل تنضغط في تصويت شراء أو بيع واحد. افتراضياً يشترط الخبير موافقة ثلاثة من أربعة مؤشرات Hull مفعّلة (InpMinIndicatorsAgree=3)، ويجب أن يهيمن اللون الغالب على اللون المعاكس — الموافقة الجزئية لا تكفي.

تبدأ سلسلة القرار عند كل شمعة جديدة داخل RefreshHullData(). يمر الدالة على المقابض الأربعة المفعّلة، وتنسخ buffer 0 (قيمة Hull) وbuffer 1 (اللون) للشمعة المرجعية والشمعة السابقة، وتخزن القيم الأربع مع الألوان الأربعة. بعدها تعدّ EvaluateSignal() الألوان الصاعدة (1) والهابطة (2) عبر المجموعة المفعّلة، وتقارن العدد بـ InpMinIndicatorsAgree، وتتحقق اختيارياً من IsMonotonicOrder() للتأكد من أن قيم Hull مرتبة بشكل يتفق مع الاتجاه عندما يكون InpRequireHullAlignment=true. النتيجة هي HULL_SIGNAL_BUY أو HULL_SIGNAL_SELL أو HULL_SIGNAL_NONE. يتم إزاحة شمعة الإشارة نفسها بمقدار InpSignalBarShift (افتراضياً 1، الشمعة المغلقة للتو) ليعمل الخبير دائماً على شمعة منتهية وليس شمعة حية.

كل مؤشر Hull هو نسخة hull-averageNew بإعداداته الخاصة. Hull #1 يعمل بفترة 160 وقاسم 17.6، أساس EMA، حساسية تسطح 10.5 نقطة، مرشح ADX عند 26.0 على خلفية 100 شمعة، عتبة زخم 16.5 نقطة خلال 5 شموع، ومرشح ATR عند 1.5× ATR(14) إضافة إلى حد أدنى لمعيار Z-score بمقدار 1.0 على 50 شمعة وبوابة انحدار عند النسبة المئوية 70. Hull #2 يشارك في فترة 160 لكنه يستخدم قاسماً أضيق 9.8، بدون مرشح ADX، وعتبة زخم أعلى 34 نقطة. تتبع Hulls #3 و #4 الهيكل ذاته بأدواتها الخاصة، كلها مجمّعة مسبقاً في لوحة المدخلات. نظام التسجيل المركّب اختياري لكل Hull: يزن ADX × ATR × الزخم (والحجم اختيارياً) ولا يحتسب التصويت إلا عندما يتجاوز الوزن المُكوَّن الحد الأدنى المحدد. عندما يكون النظام المركّب معطّلاً يساهم Hull بتصويت لون خام.

تعمل إدارة الصفقات على شبكة ثابتة 300 / 300 نقطة لوقف الخسارة والهدف كنسبة 1:1. يمكن استبدال كلا الساقين بقيم قائمة على ATR عبر تفعيل InpUseAtrStopLoss (1.5× ATR(14)) أو InpUseAtrTakeProfit (3.0× ATR(14)) في مجموعة إدارة المخاطر القائمة على ATR. تسحب دوال DetermineStopLossPoints() و DetermineTakeProfitPoints() قيمة ATR بالنقاط عبر GetAtrPoints()، وتضربها في المعامل المهيأ، وترجع إلى الثابت 300 عند فشل تحميل مقبض ATR. لا يبدأ منطق التتبع في ApplyTrailingStop() إلا بعد أن تحقق الصفقة 150 نقطة ربح، ثم يسحب وقف الخسارة 210 نقطة خلف السعر عند كل تكة إيجابية باستخدام TryModify_EX16106() (3 محاولات بفاصل 100 مللي ثانية في حالات إعادة التسعير وانتهاء المهلة).

ميزة الإدخالات الإضافية اختيارية. عند تفعيل InpEnableAdditionalEntries=true، وعندما تحقق الصفقة المفتوحة في الاتجاه نفسه 20 نقطة ربحاً مسبقاً (عبر بوابة AllPositionsProfitBy() و InpAdditionalEntryProfitPoints)، وعندما يوافق InpMinHullAgreement (افتراضياً 2) مؤشر Hull على الاتجاه، يفتح الخبير دخولاً مكدّساً مع تعليق Add#. يبحث GetNextAdditionalIndex() في التعليقات الموجودة عن الفهرس الحر التالي. InpMaxPositionsPerDirection هو السقف (0 = غير محدود). هذا تكديس مسيّج بالإشارة وليس مارتينجال؛ لكن الخبير لا يدخل في خسارة بسبب هذا البوابة التي تشترط 20 نقطة ربح كحد أدنى.

منطق الخروج له مساران. الأول هو وقف الخسارة والهدف الثابت أو القائم على ATR. الثاني هو HandleOppositeClose(): عندما ينقلب الإجماع إلى اللون المعاكس، يغلق الخبير الصفقات الرابحة في الاتجاه القديم (ببوابة InpMinIndicatorsAgreeCloseProfit=1 و InpCloseProfitPoints=0 بحيث تؤهل أي ربح). مع InpCloseOnOppositeEvenIfInLose=true يمكنه أيضاً قطع الصفقات الخاسرة عندما يكون الإجماع المعاكس قوياً بما فيه الكفاية. تُوجَّه تغييرات الصفقات عبر TryClose_EX16106() التي تعيد المحاولة 3 مرات بفاصل 200 مللي ثانية في حالات إعادة التسعير وانتهاء المهلة وتغير السعر.

يُرفَق المؤشر بالرسم البياني عبر AttachHullIndicator() و ChartIndicatorAdd() لتظهر الألوان الأربعة بصرية إلى جانب قرارات الخبير. طبقة المخاطر هي شبكة وقف الخسارة / الهدف الثابتة، إضافة إلى مرشح الفروق (25 نقطة كحد أقصى افتراضياً عبر IsSpreadAcceptable()) وبوابة الشمعة الجديدة (NeedProcessTick()) التي تمنع تقييم الإشارة داخل الشمعة. لا يوجد حد خسارة يومي ولا مرشح منحنى رصيد ولا فحص ارتباط ولا تعطيل للأخبار — سطح المخاطر هو بالضبط شبكة SL/TP مع قفل التتبع. على إيداع أدنى 100 دولار بحجم 0.01 لوت، خسارة 300 نقطة على XAUUSD تعادل تقريباً 3 دولارات، وهو حجم يناسب الحد الأدنى الموصى به. يعمل الخبير بسلاسة على M5 و H1 عبر أزواج العملات الرئيسية والمعادن بحسب ملاحظة رأس الملف.

تفاصيل الاستراتيجية

في كل شمعة جديدة تسحب RefreshHullData() القيمة واللون الحالي والسابق لأربع نسخ من hull-averageNew، كل منها مُعامل بفترة وقاسم وطريقة متوسط وإطار مصدر ومرشحات فرعية لـ ADX وATR والزخم والحجم والانحدار. تعدّ EvaluateSignal() تصويتات اللون الصاعد مقابل الهابط عبر المجموعة المفعّلة وتطلب أن يصل InpMinIndicatorsAgree (افتراضياً 3) على الأقل مهيمناً على الجانب المعاكس، مع تحقق اختياري من IsMonotonicOrder() للتأكد من ترتيب قيم Hull في صف الاتجاه. ما إن يستقر الإجماع على شراء أو بيع، تمرر OpenPosition() الأمر عبر g_trade.Buy() أو g_trade.Sell() مع SL/TP ثابت 300/300 أو، عند تفعيل وضع ATR، مع DetermineStopLossPoints() العائدة لـ 1.5x ATR(14) وDetermineTakeProfitPoints() العائدة لـ 3.0x ATR(14). تراقب HandleOppositeClose() الإجماع عند كل تكة: عندما يصل تصويت اللون المعاكس إلى عتبة الإغلاق المهيأة، تصفي الصفقات المفتوحة في الاتجاه القديم، ولا تقطع الصفقات الخاسرة إلا عند تفعيل InpCloseOnOppositeEvenIfInLose. يثبّت ApplyTrailingStop() وقف الخسارة على بعد 210 نقطة خلف السعر بعد 150 نقطة ربح، مع إعادة المحاولة على إعادة التسعير عبر TryModify_EX16106().

إشارة الدخول

يُفعَّل دخول الشراء عندما يطبع 3 من أصل 4 مؤشرات Hull مفعّلة (hull-averageNew) لوناً صاعداً (1) على الشمعة المغلقة للتو، وألوان الهبوط لا تصل إلى العتبة، مع بوابة اختيارية للترتيب الرتيب. تنطبق المنطق المعاكس على البيع. تُكدَّس الإدخالات الإضافية في الاتجاه نفسه عندما تحقق الصفقة القائمة 20 نقطة ربحاً على الأقل ويوافق مؤشرَا Hull على الأقل.

إشارة الخروج

تعمل المخارج على وقف الخسارة الثابت 300 نقطة والهدف الثابت 300 نقطة افتراضياً، أو على مضاعفات ATR الاختيارية 1.5x/3.0x عند التفعيل. إجماع الاتجاه المعاكس يغلق الصفقات الرابحة (يكفي مؤشر Hull معاكس واحد)، ويمكنه أيضاً قطع الصفقات الخاسرة عند تفعيل InpCloseOnOppositeEvenIfInLose. يثبّت التتبع وقف الخسارة على بعد 210 نقطة خلف السعر بعد 150 نقطة ربح.

وقف الخسارة

وقف خسارة ثابت 300 نقطة افتراضياً (InpStopLossPoints). يمكن استبداله اختيارياً بـ 1.5x ATR(14) نقطة عند تفعيل InpUseAtrStopLoss، مع الرجوع إلى القيمة الثابتة في حال فشل تحميل مقبض ATR.

جني الأرباح

هدف ربح ثابت 300 نقطة افتراضياً (InpTakeProfitPoints)، بنسبة مخاطرة إلى عائد 1:1 مع وقف الخسارة المقابل. هدف اختياري قائم على ATR عند 3.0x ATR(14) عند تفعيل InpUseAtrTakeProfit.

الأنسب لـ

موصى به لـ XAUUSD على M5 مع إيداع أدنى 100 دولار وحجم لوت 0.01. يُفضَّل إقرانه بوسيط ECN فروقه منخفضة (يفترض مرشح الفروق 25 نقطة تنفيذاً في ظروف الذهب المعتادة). توفر جلسات لندن ونيويورك أنظف اتجاهات Hull للذهب، مع تكديس الإدخالات الإضافية المُعد لركوب التحركات الاتجاهية النظيفة بدلاً من النطاقات المضطربة. تجعل الشبكة الثابتة 1:1 وقفل التتبع الضيق منه مناسباً للمتداولين الذين يريدون إطار عمل صريح للوقف / الهدف بدلاً من مخرج تقديري.

منطق الاستراتيجية

Pipsgrowth EX16106 Trend — تحليل منطق الاستراتيجية (من كود .mq5)

العائلة: Trend الماجيك: 22216106 الإصدار: 2.00

الوصف: Hull EA trades using four Hull indicators with ATR-based risk management, additional entries and multi-filter confirmation. 12 layers: REGIME, SIGNAL, ENTRY, CONFIRM, NO-TRADE, CAPITAL CAP, RISK, SIZING, MANAGE, EXIT, SCALING, OnTester

المؤشرات:

  • مؤشرات قياسية

الدوال الرئيسية:

  • CreateHullHandle()
  • ReleaseHullHandles()
  • AttachHullIndicator()
  • DetachHullIndicator()
  • CreateAtrHandle()
  • ReleaseAtrHandles()
  • GetAtrPoints()
  • DetermineStopLossPoints()
  • DetermineTakeProfitPoints()
  • CountPositionsByType()
الرمز الزائف (Pseudocode)
// Pipsgrowth EX16106 Trend — Execution Flow (from source analysis)
// Family: Trend
// Hull EA trades using four Hull indicators with ATR-based risk management, additional entries and multi-filter confirmation. 12 layers: REGIME, SIGNAL, ENTRY, CONFIRM, NO-TRADE, CAPITAL CAP, RISK, SIZING, MANAGE, EXIT, SCALING, OnTester

ON_INIT:
    Create indicator handles: standard set
    Initialize state variables
    Detect broker GMT offset

ON_TICK:
    1. Refresh indicator buffers (closed-bar shift=1)
    2. Manage existing positions:
       - Break-even check
       - ATR trailing stop
       - Profit lock ratchet
       - Time-based exit
       - Opposite-signal exit
    3. If new bar:
       a. ClassifyRegime() — ADX/ATR/BB regime detection
       b. NoTradeGate() checks:
          - Market open + session filter
          - Spread limit
          - Cooldown after loss
          - Consecutive loss limit
          - Kill switch
          - Max drawdown
          - Max concurrent positions
          - Daily/weekly loss limits
       c. GenerateSignal() — strategy-specific entry logic
       d. CheckConfirm() — HTF alignment + R:R + ADX minimum
       e. Calculate position size from risk %
       f. Execute with retry logic
       g. Mark bar to prevent duplicates

ON_TESTER:
    Custom fitness = weighted(RecoveryFactor, ROI, ProfitFactor, TradeCount, Sharpe, Drawdown)

ملف التحسين

الوسطاء المُحسّنون:
ExnessIC Markets
الرموز المُحسّنة:
XAUUSD
الأطر الزمنية المُحسّنة:
M5H1

كيفية تثبيت الإكسبرت على MT5

  1. 1حمّل ملف .mq5 بالضغط على زر التحميل أعلاه
  2. 2افتح برنامج MetaTrader 5 على حاسوبك
  3. 3من القائمة العلوية اختر File → Open Data Folder
  4. 4انتقل إلى مجلد MQL5 → Experts والصق الملف هناك
  5. 5في MT5، انقر بالزر الأيمن على Expert Advisors في لوحة Navigator → Refresh
  6. 6اسحب الإكسبرت على رسم H4 أو اليومي للحصول على أفضل النتائج
  7. 7حدد فترات EMA وعتبة ADX وحجم اللوت في نافذة الإعدادات
  8. 8فعّل Allow Algo Trading واضغط OK

معاملات الإكسبرت

المعاملالافتراضيالوصف
InpAllowBuytrueAllow buy trades
InpAllowSelltrueAllow sell trades
InpHullTimeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// Indicator timeframe
InpUseNewBarSignalstrueEvaluate signals on new bar only
InpTrailingStepPoints210.0Trailing step (points)
InpTrailingStartPoints150.0Trailing start (points)
InpStopLossPoints300.0Static stop loss (points)
InpTakeProfitPoints300.0Static take profit (points)
InpMaxSpreadPoints25.0Maximum spread allowed (points)
InpLots0.01Fixed lot size
InpUseRiskPercentagefalseUse risk percentage for lot sizing
InpRiskPercentage1.0Risk percentage of balance
InpEnableDebugLoggingfalseEnable debug logging
InpRequireHullAlignmentfalseRequire hull values to be aligned
InpMagicNumber22216106Magic number
InpTradeComment"Psgrowth.com Expert_16106"Trade comment
InpUseAtrStopLossfalseUse ATR-based stop loss
InpAtrStopLossTf0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// ATR stop-loss timeframe
InpAtrStopLossPeriod14ATR stop-loss period
InpAtrStopLossMultiplier1.5ATR stop-loss multiplier
InpUseAtrTakeProfitfalseUse ATR-based take profit
InpAtrTakeProfitTf0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// ATR take-profit timeframe
InpAtrTakeProfitPeriod14ATR take-profit period
InpAtrTakeProfitMultiplier3.0ATR take-profit multiplier
InpEnableAdditionalEntriesfalseAllow additional entries
InpMinHullAgreement2Minimum agreeing Hull indicators
InpMaxPositionsPerDirection0Max open positions per direction (0 = unlimited)
InpAdditionalEntryProfitPoints20.0Required profit per existing position (points)
InpSignalBarShift1Signal bar shift (0=current,1=closed)
InpMinIndicatorsAgree3Minimum Hulls agreeing
InpCloseOnOppositetrueClose trades on opposite agreement if in profit
InpMinIndicatorsAgreeCloseProfit1Minimum Hulls to close in profit
InpCloseProfitPoints0.0Minimum profit (points) to close on opposite
InpCloseOnOppositeEvenIfInLosefalseClose trades on opposite agreement even if losing
InpMinIndicatorsAgreeCloseLoss1Minimum Hulls to close even if losing
InpHull1EnabledtrueEnable Hull #1
InpHull1Period160Hull #1 period
InpHull1Divisor17.6Hull #1 divisor (speed)
InpHull1Price5Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #1 price
InpHull1MethodMODE_EMAHull #1 MA method
InpHull1Timeframe7Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #1 source timeframe
InpHull1FlatSensitivity10.5Hull #1 flat sensitivity (points)
InpHull1FlatBars3Hull #1 flat bars
InpHull1UseAdxFiltertrueHull #1 use ADX filter
InpHull1AdxTimeframe5Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #1 ADX timeframe
InpHull1AdxPeriod20Hull #1 ADX period
InpHull1AdxThreshold26.0Hull #1 ADX threshold
InpHull1MomentumLookback5Hull #1 momentum lookback
InpHull1MomentumPoints16.5Hull #1 momentum threshold (points)
InpHull1UseAtrFiltertrueHull #1 use ATR filter
InpHull1AtrTimeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #1 ATR timeframe
InpHull1AtrPeriod14Hull #1 ATR period
InpHull1AtrMultiplier1.5Hull #1 ATR multiplier (points)
InpHull1SlopePoints0.0Hull #1 slope threshold (points)
InpHull1AtrZScoreLookback50Hull #1 ATR Z-score lookback
InpHull1AtrZScoreMinimum1.0Hull #1 ATR Z-score minimum
InpHull1SlopePercentLookback50Hull #1 slope percentile lookback
InpHull1SlopePercentile70.0Hull #1 slope percentile
InpHull1UseCompositeScoretrueHull #1 use composite score
InpHull1CompositeWeightAdx1.0Hull #1 composite weight ADX
InpHull1CompositeWeightAtr1.0Hull #1 composite weight ATR
InpHull1CompositeWeightMomentum1.0Hull #1 composite weight momentum
InpHull1CompositeMinScore1.0Hull #1 composite minimum score
InpHull1UseVolumeFiltertrueHull #1 use volume filter
InpHull1UseRealVolumefalseHull #1 use real volume
InpHull1VolumeLookback50Hull #1 volume lookback
InpHull1VolumePercentile70.0Hull #1 volume percentile
InpHull1CompositeWeightVolume0.0Hull #1 composite weight volume
InpHull2EnabledtrueEnable Hull #2
InpHull2Period160Hull #2 period
InpHull2Divisor9.8Hull #2 divisor (speed)
InpHull2Price7Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #2 price
InpHull2MethodMODE_EMAHull #2 MA method
InpHull2Timeframe7Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #2 source timeframe
InpHull2FlatSensitivity3.0Hull #2 flat sensitivity (points)
InpHull2FlatBars21Hull #2 flat bars
InpHull2UseAdxFilterfalseHull #2 use ADX filter
InpHull2AdxTimeframe7Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #2 ADX timeframe
InpHull2AdxPeriod100Hull #2 ADX period
InpHull2AdxThreshold60.0Hull #2 ADX threshold
InpHull2MomentumLookback50Hull #2 momentum lookback
InpHull2MomentumPoints34.0Hull #2 momentum threshold (points)
InpHull2UseAtrFilterfalseHull #2 use ATR filter
InpHull2AtrTimeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #2 ATR timeframe
InpHull2AtrPeriod14Hull #2 ATR period
InpHull2AtrMultiplier1.5Hull #2 ATR multiplier (points)
InpHull2SlopePoints0.0Hull #2 slope threshold (points)
InpHull2AtrZScoreLookback50Hull #2 ATR Z-score lookback
InpHull2AtrZScoreMinimum1.0Hull #2 ATR Z-score minimum
InpHull2SlopePercentLookback50Hull #2 slope percentile lookback
InpHull2SlopePercentile70.0Hull #2 slope percentile
InpHull2UseCompositeScorefalseHull #2 use composite score
InpHull2CompositeWeightAdx1.0Hull #2 composite weight ADX
InpHull2CompositeWeightAtr1.0Hull #2 composite weight ATR
InpHull2CompositeWeightMomentum1.0Hull #2 composite weight momentum
InpHull2CompositeMinScore1.0Hull #2 composite minimum score
InpHull2UseVolumeFilterfalseHull #2 use volume filter
InpHull2UseRealVolumefalseHull #2 use real volume
InpHull2VolumeLookback50Hull #2 volume lookback
InpHull2VolumePercentile70.0Hull #2 volume percentile
InpHull2CompositeWeightVolume0.0Hull #2 composite weight volume
InpHull3EnabledtrueEnable Hull #3
InpHull3Period245Hull #3 period
InpHull3Divisor12.2Hull #3 divisor (speed)
InpHull3Price6Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #3 price
InpHull3MethodMODE_SMMAHull #3 MA method
InpHull3Timeframe7Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #3 source timeframe
InpHull3FlatSensitivity29.7Hull #3 flat sensitivity (points)
InpHull3FlatBars10Hull #3 flat bars
InpHull3UseAdxFilterfalseHull #3 use ADX filter
InpHull3AdxTimeframe7Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #3 ADX timeframe
InpHull3AdxPeriod55Hull #3 ADX period
InpHull3AdxThreshold28.0Hull #3 ADX threshold
InpHull3MomentumLookback21Hull #3 momentum lookback
InpHull3MomentumPoints47.0Hull #3 momentum threshold (points)
InpHull3UseAtrFilterfalseHull #3 use ATR filter
InpHull3AtrTimeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #3 ATR timeframe
InpHull3AtrPeriod14Hull #3 ATR period
InpHull3AtrMultiplier1.5Hull #3 ATR multiplier (points)
InpHull3SlopePoints0.0Hull #3 slope threshold (points)
InpHull3AtrZScoreLookback50Hull #3 ATR Z-score lookback
InpHull3AtrZScoreMinimum1.0Hull #3 ATR Z-score minimum
InpHull3SlopePercentLookback50Hull #3 slope percentile lookback
InpHull3SlopePercentile70.0Hull #3 slope percentile
InpHull3UseCompositeScorefalseHull #3 use composite score
InpHull3CompositeWeightAdx1.0Hull #3 composite weight ADX
InpHull3CompositeWeightAtr1.0Hull #3 composite weight ATR
InpHull3CompositeWeightMomentum1.0Hull #3 composite weight momentum
InpHull3CompositeMinScore1.0Hull #3 composite minimum score
InpHull3UseVolumeFilterfalseHull #3 use volume filter
InpHull3UseRealVolumefalseHull #3 use real volume
InpHull3VolumeLookback50Hull #3 volume lookback
InpHull3VolumePercentile70.0Hull #3 volume percentile
InpHull3CompositeWeightVolume0.0Hull #3 composite weight volume
InpHull4EnabledfalseEnable Hull #4
InpHull4Period536Hull #4 period
InpHull4Divisor2.0Hull #4 divisor (speed)
InpHull4Price1Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #4 price
InpHull4MethodMODE_LWMAHull #4 MA method
InpHull4Timeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #4 source timeframe
InpHull4FlatSensitivity3.0Hull #4 flat sensitivity (points)
InpHull4FlatBars3Hull #4 flat bars
InpHull4UseAdxFilterfalseHull #4 use ADX filter
InpHull4AdxTimeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #4 ADX timeframe
InpHull4AdxPeriod14Hull #4 ADX period
InpHull4AdxThreshold20.0Hull #4 ADX threshold
InpHull4MomentumLookback5Hull #4 momentum lookback
InpHull4MomentumPoints5.0Hull #4 momentum threshold (points)
InpHull4UseAtrFilterfalseHull #4 use ATR filter
InpHull4AtrTimeframe0Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #4 ATR timeframe
InpHull4AtrPeriod14Hull #4 ATR period
InpHull4AtrMultiplier1.5Hull #4 ATR multiplier (points)
InpHull4SlopePoints0.0Hull #4 slope threshold (points)
InpHull4AtrZScoreLookback50Hull #4 ATR Z-score lookback
InpHull4AtrZScoreMinimum1.0Hull #4 ATR Z-score minimum
InpHull4SlopePercentLookback50Hull #4 slope percentile lookback
InpHull4SlopePercentile70.0Hull #4 slope percentile
InpHull4UseCompositeScorefalseHull #4 use composite score
InpHull4CompositeWeightAdx1.0Hull #4 composite weight ADX
InpHull4CompositeWeightAtr1.0Hull #4 composite weight ATR
InpHull4CompositeWeightMomentum1.0Hull #4 composite weight momentum
InpHull4CompositeMinScore1.0Hull #4 composite minimum score
InpHull4UseVolumeFilterfalseHull #4 use volume filter
InpHull4UseRealVolumefalseHull #4 use real volume
InpHull4VolumeLookback50Hull #4 volume lookback
InpHull4VolumePercentile70.0Hull #4 volume percentile
InpHull4CompositeWeightVolume0.0Hull #4 composite weight volume
كود المصدر (.mq5)Open Source
Pipsgrowth_com_EX16106.mq5
#property copyright "Pipsgrowth.com"
#property link      "https://pipsgrowth.com"
#property version   "2.00"
#property strict
#property description "Pipsgrowth.com EX16106 HullEA — four Hull indicator trend EA with ATR risk management, full 12-layer stack."

#include <Trade/Trade.mqh>

enum EHullSignal
{
   HULL_SIGNAL_NONE = 0,
   HULL_SIGNAL_BUY  = 1,
   HULL_SIGNAL_SELL = -1
};
//--- general trading inputs
input bool              InpAllowBuy              = true;          // Allow buy trades
input bool              InpAllowSell             = true;          // Allow sell trades
input int InpHullTimeframe = 0; // Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// Indicator timeframe
input bool              InpUseNewBarSignals      = true;          // Evaluate signals on new bar only
input double            InpTrailingStepPoints    = 210.0;         // Trailing step (points)
input double            InpTrailingStartPoints   = 150.0;         // Trailing start (points)
input double            InpStopLossPoints        = 300.0;         // Static stop loss (points)
input double            InpTakeProfitPoints      = 300.0;         // Static take profit (points)
input double            InpMaxSpreadPoints       = 25.0;          // Maximum spread allowed (points)
input double            InpLots                  = 0.01;          // Fixed lot size
input bool              InpUseRiskPercentage     = false;         // Use risk percentage for lot sizing
input double            InpRiskPercentage        = 1.0;           // Risk percentage of balance
input bool              InpEnableDebugLogging    = false;         // Enable debug logging
input bool              InpRequireHullAlignment  = false;         // Require hull values to be aligned
input uint              InpMagicNumber           = 22216106;      // Magic number
input string            InpTradeComment          = "Psgrowth.com Expert_16106"; // Trade comment

ENUM_TIMEFRAMES MapTimeframeInt(int tf)
{
   switch(tf)
   {
      case 1: return PERIOD_M1;
      case 2: return PERIOD_M5;
      case 3: return PERIOD_M15;
      case 4: return PERIOD_M30;
      case 5: return PERIOD_H1;
      case 6: return PERIOD_H4;
      case 7: return PERIOD_D1;
      default: return PERIOD_H1;
   }
}

ENUM_APPLIED_PRICE MapAppliedPriceInt(int ap)
{
   switch(ap)
   {
      case 1: return PRICE_CLOSE;
      case 2: return PRICE_OPEN;
      case 3: return PRICE_HIGH;
      case 4: return PRICE_LOW;
      case 5: return PRICE_MEDIAN;
      case 6: return PRICE_TYPICAL;
      case 7: return PRICE_WEIGHTED;
      default: return PRICE_CLOSE;
   }

الكود المصدري الكامل متاح عند التحميل

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

الوسوم:ex16106trendpipsgrowthfreemt5xauusd

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

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

وسطاء موصى بهم لهذا الإكسبرت

هذه الروبوتات تعمل على MT5 — استخدم وسيطاً موثوقاً بتنفيذ سريع وسبريد منخفض

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

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

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

اسم الملفPipsgrowth_com_EX16106.mq5
حجم الملف67.7 KB
الإصدارv2.00
PlatformMetaTrader 5
نوع الملف.mq5 Source
الاستراتيجيةمتابعة الاتجاه
المخاطرةمخاطرة متوسطة
الأطر الزمنية
M5H1
أزواج العملات
XAUUSD
الحد الأدنى للإيداع$100