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()
// 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)ملف التحسين
كيفية تثبيت الإكسبرت على MT5
- 1حمّل ملف .mq5 بالضغط على زر التحميل أعلاه
- 2افتح برنامج MetaTrader 5 على حاسوبك
- 3من القائمة العلوية اختر File → Open Data Folder
- 4انتقل إلى مجلد MQL5 → Experts والصق الملف هناك
- 5في MT5، انقر بالزر الأيمن على Expert Advisors في لوحة Navigator → Refresh
- 6اسحب الإكسبرت على رسم H4 أو اليومي للحصول على أفضل النتائج
- 7حدد فترات EMA وعتبة ADX وحجم اللوت في نافذة الإعدادات
- 8فعّل Allow Algo Trading واضغط OK
معاملات الإكسبرت
| المعامل | الافتراضي | الوصف |
|---|---|---|
| InpAllowBuy | true | Allow buy trades |
| InpAllowSell | true | Allow sell trades |
| InpHullTimeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// Indicator timeframe |
| InpUseNewBarSignals | true | Evaluate signals on new bar only |
| InpTrailingStepPoints | 210.0 | Trailing step (points) |
| InpTrailingStartPoints | 150.0 | Trailing start (points) |
| InpStopLossPoints | 300.0 | Static stop loss (points) |
| InpTakeProfitPoints | 300.0 | Static take profit (points) |
| InpMaxSpreadPoints | 25.0 | Maximum spread allowed (points) |
| InpLots | 0.01 | Fixed lot size |
| InpUseRiskPercentage | false | Use risk percentage for lot sizing |
| InpRiskPercentage | 1.0 | Risk percentage of balance |
| InpEnableDebugLogging | false | Enable debug logging |
| InpRequireHullAlignment | false | Require hull values to be aligned |
| InpMagicNumber | 22216106 | Magic number |
| InpTradeComment | "Psgrowth.com Expert_16106" | Trade comment |
| InpUseAtrStopLoss | false | Use ATR-based stop loss |
| InpAtrStopLossTf | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// ATR stop-loss timeframe |
| InpAtrStopLossPeriod | 14 | ATR stop-loss period |
| InpAtrStopLossMultiplier | 1.5 | ATR stop-loss multiplier |
| InpUseAtrTakeProfit | false | Use ATR-based take profit |
| InpAtrTakeProfitTf | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1)// ATR take-profit timeframe |
| InpAtrTakeProfitPeriod | 14 | ATR take-profit period |
| InpAtrTakeProfitMultiplier | 3.0 | ATR take-profit multiplier |
| InpEnableAdditionalEntries | false | Allow additional entries |
| InpMinHullAgreement | 2 | Minimum agreeing Hull indicators |
| InpMaxPositionsPerDirection | 0 | Max open positions per direction (0 = unlimited) |
| InpAdditionalEntryProfitPoints | 20.0 | Required profit per existing position (points) |
| InpSignalBarShift | 1 | Signal bar shift (0=current,1=closed) |
| InpMinIndicatorsAgree | 3 | Minimum Hulls agreeing |
| InpCloseOnOpposite | true | Close trades on opposite agreement if in profit |
| InpMinIndicatorsAgreeCloseProfit | 1 | Minimum Hulls to close in profit |
| InpCloseProfitPoints | 0.0 | Minimum profit (points) to close on opposite |
| InpCloseOnOppositeEvenIfInLose | false | Close trades on opposite agreement even if losing |
| InpMinIndicatorsAgreeCloseLoss | 1 | Minimum Hulls to close even if losing |
| InpHull1Enabled | true | Enable Hull #1 |
| InpHull1Period | 160 | Hull #1 period |
| InpHull1Divisor | 17.6 | Hull #1 divisor (speed) |
| InpHull1Price | 5 | Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #1 price |
| InpHull1Method | MODE_EMA | Hull #1 MA method |
| InpHull1Timeframe | 7 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #1 source timeframe |
| InpHull1FlatSensitivity | 10.5 | Hull #1 flat sensitivity (points) |
| InpHull1FlatBars | 3 | Hull #1 flat bars |
| InpHull1UseAdxFilter | true | Hull #1 use ADX filter |
| InpHull1AdxTimeframe | 5 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #1 ADX timeframe |
| InpHull1AdxPeriod | 20 | Hull #1 ADX period |
| InpHull1AdxThreshold | 26.0 | Hull #1 ADX threshold |
| InpHull1MomentumLookback | 5 | Hull #1 momentum lookback |
| InpHull1MomentumPoints | 16.5 | Hull #1 momentum threshold (points) |
| InpHull1UseAtrFilter | true | Hull #1 use ATR filter |
| InpHull1AtrTimeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #1 ATR timeframe |
| InpHull1AtrPeriod | 14 | Hull #1 ATR period |
| InpHull1AtrMultiplier | 1.5 | Hull #1 ATR multiplier (points) |
| InpHull1SlopePoints | 0.0 | Hull #1 slope threshold (points) |
| InpHull1AtrZScoreLookback | 50 | Hull #1 ATR Z-score lookback |
| InpHull1AtrZScoreMinimum | 1.0 | Hull #1 ATR Z-score minimum |
| InpHull1SlopePercentLookback | 50 | Hull #1 slope percentile lookback |
| InpHull1SlopePercentile | 70.0 | Hull #1 slope percentile |
| InpHull1UseCompositeScore | true | Hull #1 use composite score |
| InpHull1CompositeWeightAdx | 1.0 | Hull #1 composite weight ADX |
| InpHull1CompositeWeightAtr | 1.0 | Hull #1 composite weight ATR |
| InpHull1CompositeWeightMomentum | 1.0 | Hull #1 composite weight momentum |
| InpHull1CompositeMinScore | 1.0 | Hull #1 composite minimum score |
| InpHull1UseVolumeFilter | true | Hull #1 use volume filter |
| InpHull1UseRealVolume | false | Hull #1 use real volume |
| InpHull1VolumeLookback | 50 | Hull #1 volume lookback |
| InpHull1VolumePercentile | 70.0 | Hull #1 volume percentile |
| InpHull1CompositeWeightVolume | 0.0 | Hull #1 composite weight volume |
| InpHull2Enabled | true | Enable Hull #2 |
| InpHull2Period | 160 | Hull #2 period |
| InpHull2Divisor | 9.8 | Hull #2 divisor (speed) |
| InpHull2Price | 7 | Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #2 price |
| InpHull2Method | MODE_EMA | Hull #2 MA method |
| InpHull2Timeframe | 7 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #2 source timeframe |
| InpHull2FlatSensitivity | 3.0 | Hull #2 flat sensitivity (points) |
| InpHull2FlatBars | 21 | Hull #2 flat bars |
| InpHull2UseAdxFilter | false | Hull #2 use ADX filter |
| InpHull2AdxTimeframe | 7 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #2 ADX timeframe |
| InpHull2AdxPeriod | 100 | Hull #2 ADX period |
| InpHull2AdxThreshold | 60.0 | Hull #2 ADX threshold |
| InpHull2MomentumLookback | 50 | Hull #2 momentum lookback |
| InpHull2MomentumPoints | 34.0 | Hull #2 momentum threshold (points) |
| InpHull2UseAtrFilter | false | Hull #2 use ATR filter |
| InpHull2AtrTimeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #2 ATR timeframe |
| InpHull2AtrPeriod | 14 | Hull #2 ATR period |
| InpHull2AtrMultiplier | 1.5 | Hull #2 ATR multiplier (points) |
| InpHull2SlopePoints | 0.0 | Hull #2 slope threshold (points) |
| InpHull2AtrZScoreLookback | 50 | Hull #2 ATR Z-score lookback |
| InpHull2AtrZScoreMinimum | 1.0 | Hull #2 ATR Z-score minimum |
| InpHull2SlopePercentLookback | 50 | Hull #2 slope percentile lookback |
| InpHull2SlopePercentile | 70.0 | Hull #2 slope percentile |
| InpHull2UseCompositeScore | false | Hull #2 use composite score |
| InpHull2CompositeWeightAdx | 1.0 | Hull #2 composite weight ADX |
| InpHull2CompositeWeightAtr | 1.0 | Hull #2 composite weight ATR |
| InpHull2CompositeWeightMomentum | 1.0 | Hull #2 composite weight momentum |
| InpHull2CompositeMinScore | 1.0 | Hull #2 composite minimum score |
| InpHull2UseVolumeFilter | false | Hull #2 use volume filter |
| InpHull2UseRealVolume | false | Hull #2 use real volume |
| InpHull2VolumeLookback | 50 | Hull #2 volume lookback |
| InpHull2VolumePercentile | 70.0 | Hull #2 volume percentile |
| InpHull2CompositeWeightVolume | 0.0 | Hull #2 composite weight volume |
| InpHull3Enabled | true | Enable Hull #3 |
| InpHull3Period | 245 | Hull #3 period |
| InpHull3Divisor | 12.2 | Hull #3 divisor (speed) |
| InpHull3Price | 6 | Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #3 price |
| InpHull3Method | MODE_SMMA | Hull #3 MA method |
| InpHull3Timeframe | 7 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #3 source timeframe |
| InpHull3FlatSensitivity | 29.7 | Hull #3 flat sensitivity (points) |
| InpHull3FlatBars | 10 | Hull #3 flat bars |
| InpHull3UseAdxFilter | false | Hull #3 use ADX filter |
| InpHull3AdxTimeframe | 7 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #3 ADX timeframe |
| InpHull3AdxPeriod | 55 | Hull #3 ADX period |
| InpHull3AdxThreshold | 28.0 | Hull #3 ADX threshold |
| InpHull3MomentumLookback | 21 | Hull #3 momentum lookback |
| InpHull3MomentumPoints | 47.0 | Hull #3 momentum threshold (points) |
| InpHull3UseAtrFilter | false | Hull #3 use ATR filter |
| InpHull3AtrTimeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #3 ATR timeframe |
| InpHull3AtrPeriod | 14 | Hull #3 ATR period |
| InpHull3AtrMultiplier | 1.5 | Hull #3 ATR multiplier (points) |
| InpHull3SlopePoints | 0.0 | Hull #3 slope threshold (points) |
| InpHull3AtrZScoreLookback | 50 | Hull #3 ATR Z-score lookback |
| InpHull3AtrZScoreMinimum | 1.0 | Hull #3 ATR Z-score minimum |
| InpHull3SlopePercentLookback | 50 | Hull #3 slope percentile lookback |
| InpHull3SlopePercentile | 70.0 | Hull #3 slope percentile |
| InpHull3UseCompositeScore | false | Hull #3 use composite score |
| InpHull3CompositeWeightAdx | 1.0 | Hull #3 composite weight ADX |
| InpHull3CompositeWeightAtr | 1.0 | Hull #3 composite weight ATR |
| InpHull3CompositeWeightMomentum | 1.0 | Hull #3 composite weight momentum |
| InpHull3CompositeMinScore | 1.0 | Hull #3 composite minimum score |
| InpHull3UseVolumeFilter | false | Hull #3 use volume filter |
| InpHull3UseRealVolume | false | Hull #3 use real volume |
| InpHull3VolumeLookback | 50 | Hull #3 volume lookback |
| InpHull3VolumePercentile | 70.0 | Hull #3 volume percentile |
| InpHull3CompositeWeightVolume | 0.0 | Hull #3 composite weight volume |
| InpHull4Enabled | false | Enable Hull #4 |
| InpHull4Period | 536 | Hull #4 period |
| InpHull4Divisor | 2.0 | Hull #4 divisor (speed) |
| InpHull4Price | 1 | Applied price (1=close,2=open,3=high,4=low,5=median,6=typical,7=weighted) // Hull #4 price |
| InpHull4Method | MODE_LWMA | Hull #4 MA method |
| InpHull4Timeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #4 source timeframe |
| InpHull4FlatSensitivity | 3.0 | Hull #4 flat sensitivity (points) |
| InpHull4FlatBars | 3 | Hull #4 flat bars |
| InpHull4UseAdxFilter | false | Hull #4 use ADX filter |
| InpHull4AdxTimeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #4 ADX timeframe |
| InpHull4AdxPeriod | 14 | Hull #4 ADX period |
| InpHull4AdxThreshold | 20.0 | Hull #4 ADX threshold |
| InpHull4MomentumLookback | 5 | Hull #4 momentum lookback |
| InpHull4MomentumPoints | 5.0 | Hull #4 momentum threshold (points) |
| InpHull4UseAtrFilter | false | Hull #4 use ATR filter |
| InpHull4AtrTimeframe | 0 | Timeframe (1=M1,2=M5,3=M15,4=M30,5=H1,6=H4,7=D1) // Hull #4 ATR timeframe |
| InpHull4AtrPeriod | 14 | Hull #4 ATR period |
| InpHull4AtrMultiplier | 1.5 | Hull #4 ATR multiplier (points) |
| InpHull4SlopePoints | 0.0 | Hull #4 slope threshold (points) |
| InpHull4AtrZScoreLookback | 50 | Hull #4 ATR Z-score lookback |
| InpHull4AtrZScoreMinimum | 1.0 | Hull #4 ATR Z-score minimum |
| InpHull4SlopePercentLookback | 50 | Hull #4 slope percentile lookback |
| InpHull4SlopePercentile | 70.0 | Hull #4 slope percentile |
| InpHull4UseCompositeScore | false | Hull #4 use composite score |
| InpHull4CompositeWeightAdx | 1.0 | Hull #4 composite weight ADX |
| InpHull4CompositeWeightAtr | 1.0 | Hull #4 composite weight ATR |
| InpHull4CompositeWeightMomentum | 1.0 | Hull #4 composite weight momentum |
| InpHull4CompositeMinScore | 1.0 | Hull #4 composite minimum score |
| InpHull4UseVolumeFilter | false | Hull #4 use volume filter |
| InpHull4UseRealVolume | false | Hull #4 use real volume |
| InpHull4VolumeLookback | 50 | Hull #4 volume lookback |
| InpHull4VolumePercentile | 70.0 | Hull #4 volume percentile |
| InpHull4CompositeWeightVolume | 0.0 | Hull #4 composite weight volume |
#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;
}الكود المصدري الكامل متاح عند التحميل
لأغراض تعليمية فقط. لا تستخدمه بأموال حقيقية. اختبر على حساب تجريبي فقط.
تحذير صريح: لأغراض تعليمية فقط
تحذير صريح: هذا الإكسبرت لأغراض تعليمية واختبارية فقط. لا تستخدمه بأموال حقيقية. اختبره فقط على حساب تجريبي. التداول بأموال حقيقية ينطوي على مخاطر فقدان رأس المال. لا يشكل هذا نصيحة استثمارية.
وسطاء موصى بهم لهذا الإكسبرت
هذه الروبوتات تعمل على MT5 — استخدم وسيطاً موثوقاً بتنفيذ سريع وسبريد منخفض
إكسبرتات مشابهة
عرض جميع الإكسبرتاتإكسبرتات أخرى بنفس استراتيجية متابعة الاتجاه
Pipsgrowth EX16080 Trend — إكسبرت أدفايزر متابعة اتجاه
Pipsgrowth EX16080 Trend — EURUSD triple-EMA trend follower — trades EMA20/50 cross with EMA200 filter on H4, ATR-based SL/TP, risk-percent sizing . إكسبرت أدفايزر MT5 مفتوح المصدر.
Pipsgrowth EX16081 Trend — إكسبرت أدفايزر متابعة اتجاه
Pipsgrowth EX16081 Trend — Gold trend EA catching major XAUUSD trends using EMA 50/ 200 crossover on H4 with daily structure swing high/low and Fib. إكسبرت أدفايزر MT5 مفتوح المصدر.
Pipsgrowth EX16033 Trend — إكسبرت أدفايزر متابعة اتجاه
Pipsgrowth EX16033 Trend — Price-action scalping EA using distance-based grid entries with net-take-profit targeting and optional lot multiplier. 1. إكسبرت أدفايزر MT5 مفتوح المصدر.
مجتمع المستخدمين
لأغراض تعليمية فقط. لا تستخدمه بأموال حقيقية. اختبر على حساب تجريبي فقط.