وصف بوت "UTBotStrategy" لمنصة cTrader (cAlgo)
البوت UTBotStrategy هو مستشار خبير (EA) تم تطويره بلغة C# لمنصة cTrader (cAlgo). يستخدم هذا البوت نهجًا قائمًا على ATR ووقف متحرك ديناميكي لتحديد إشارات التداول وإدارة المراكز تلقائيًا. فيما يلي نظرة عامة على ميزاته الرئيسية:
1. معلمات الإدخال
البوت قابل للتكوين بدرجة عالية من خلال معلمات الإدخال، والتي تشمل:
- المؤشرات الفنية:
-
- القيمة الرئيسية (حساسية الإشارة، مضاعف ATR)
- فترة ATR (فترة ATR)
- هيكين آشي (خيار لاستخدام شموع هيكين آشي بدلاً من الشموع العادية)
- إدارة التداول:
-
- حجم اللوت (حجم اللوت)
- وقف الخسارة بالنقاط
- ساعات التداول (وقت البدء والانتهاء)
- الإغلاق القسري للمراكز في وقت محدد
- وقف متحرك ديناميكي:
-
- التفعيل بعد تحقيق ربح معين بالنقاط
- خطوة الوقف المتحرك لتعديل مستوى وقف الخسارة
2. منطق التداول
يتبع البوت استراتيجية تعتمد على وقف متحرك محسوب ديناميكيًا باستخدام ATR (المتوسط الحقيقي للنطاق). إليك كيفية عمله:
مرحلة التحليل (OnBar)
- يحسب البوت قيمة ATR لتحديد وقف متحرك تكيفي.
- يتحقق من سعر الإغلاق باستخدام هيكين آشي (إذا كان مفعلاً).
- يقارن القيمة الحالية مع مستوى الوقف المتحرك لتحديد اتجاه السوق.
- شروط الدخول:
-
- إشارة شراء: السعر يتجاوز الوقف المتحرك ويؤكد اتجاه صاعد.
- إشارة بيع: السعر ينخفض تحت الوقف المتحرك ويؤكد اتجاه هابط.
- ينفذ أوامر شراء أو بيع مع وقف خسارة محدد مسبقًا.
إدارة المراكز
- وقف متحرك ديناميكي:
-
- عندما يصل الربح إلى حد معين، يتحرك الوقف المتحرك لصالح المركز.
- الإغلاق القسري:
-
- إذا تم الوصول إلى الوقت المحدد، يغلق جميع المراكز المفتوحة.
3. ميزات إضافية
- مخططات بإشارات التداول: يرسم البوت أسهمًا على المخطط للإشارة إلى فرص الدخول.
- طباعة المعلومات في وحدة التحكم: يعرض قيم الوقف المتحرك، الأسعار واتجاه السوق.
- حماية من التداول خارج الأوقات: يمنع التداول خارج نافذة الوقت المحددة.
4. هدف الاستراتيجية
هذه الاستراتيجية مفيدة لـ: ✅ التداول السريع أو تداول اليوم على أطر زمنية منخفضة (1 دقيقة، 5 دقائق، 15 دقيقة).
✅ متابعة الاتجاه مع وقف متحرك ديناميكي.
✅ أتمتة التداول مع إدارة مخاطر معدة مسبقًا.
🔹 نقاط القوة: المرونة في المعلمات، وقف متحرك ذكي، إغلاق قسري لتجنب التداول الليلي.
🔸 التحسينات المحتملة: تنفيذ فلاتر إضافية (RSI، MACD) لتقليل الإشارات الخاطئة.
Description of the "UTBotStrategy" Bot for cTrader (cAlgo)
The UTBotStrategy bot is an expert advisor (EA) developed in C# for the cTrader (cAlgo) platform. This bot uses an ATR and dynamic trailing stop approach to identify trading signals and manage positions automatically. Here is an overview of its main features:
1. Input Parameters
The bot is highly configurable via input parameters, which include:
Technical Indicators:
Key Value (Signal Sensitivity, ATR Multiplier)
ATR Period
Heikin Ashi (Option to use Heikin Ashi candles instead of regular ones)
Trading Management:
Lot Size
Stop Loss in pips
Trading Hours (Start and End Time)
Forced Closing of Positions at a Specific Time
Dynamic Trailing Stop:
Triggered after a certain profit in pips
Trailing stop step to adjust the stop loss level
2. Trading Logic
The bot follows a strategy based on a dynamically calculated trailing stop with the ATR (Average True Range). Here is how it works:
Analysis Phase (OnBar)
The bot calculates the ATR value to set an adaptive trailing stop.
Checks the closing price using Heikin Ashi (if enabled).
Compares the current value with the trailing stop level to determine the market direction.
Entry Conditions:
Long Signal: The price breaks above the trailing stop and confirms an uptrend.
Short Signal: The price breaks below the trailing stop and confirms a downtrend.
Executes buy or sell orders with a predefined stop loss.
Position Management
Dynamic Trailing Stop:
When profit reaches a predefined threshold, the trailing stop moves in favor of the position.
Forced Close:
If the specified time is reached, closes all open positions.
3. Extra Features
Trading Signal Charts: The bot draws arrows on the chart to signal entry opportunities.
Print information to the console: Shows trailing stop values, prices and market direction.
Off-Trading Time Protection: Prevents trading outside the specified time window.
4. Strategy Objective
This strategy is useful for: ✅ Scalping or Day Trading on low time frames (1M, 5M, 15M).
✅ Trend Following with dynamic trailing stop.
✅ Trading automation with preset risk management.
🔹 Strengths: Flexibility in parameters, intelligent trailing stop, forced closing to avoid overnight.
🔸 Possible Improvements: Implementation of additional filters (RSI, MACD) to reduce false signals
5 | 100 % | |
4 | 0 % | |
3 | 0 % | |
2 | 0 % | |
1 | 0 % |