إنشاء روبوت تداول أوتوماتيكي للذهب XAUUSD باستراتيجية بسيطة

Termos de Referência

كيف يعمل هذا الروبوت؟

يستخدم متوسطين متحركين: سريع (Fast) وبطيء (Slow).

• شراء (Buy): عندما يقطع المتوسط السريع المتوسط البطيء نحو الأعلى.

• بيع (Sell): عندما يقطع المتوسط السريع المتوسط البطيء نحو الأسفل.

• الكود (انسخه وضعه في MetaEditor):

خطوات تشغيل الروبوت:

افتح منصة MetaTrader 5.

.

اضغط على F4 لفتح محرر MetaEditor.

.

من القائمة الجانبية، اضغط بيمين الماوس على مجلد Experts واختر New File -> Expert Advisor.

.

سمِّ الروبوت (مثلاً Gold_Bot) ثم اضغط Finish.

.

امسح الكود الموجود وضع الكود الذي كتبته لك أعلاه.

.

اضغط على زر Compile في الأعلى وتأكد من عدم وجود أخطاء (Errors).

.

عُد إلى منصة الميتا تريدر، ستجد الروبوت في نافذة Navigator تحت قسم Expert Advisors.

.

اسحب الروبوت وضعه على شارت الذهب (XAUUSD).

.

هام جداً: تأكد من تفعيل زر "Algo Trading" في أعلى المنصة ليتحول للون الأخضر.

ملاحظات ضرورية قبل البدء:

هذا الروبوت تجريبي: هو مجرد هيكل تعليمي. الذهب يحتاج إلى إضافة "إدارة مخاطر" (Stop Loss و Take Profit) و "فلتر أوقات" ليكون مربحاً.

.

الاختبار (Backtest): لا تضعه أبداً في حساب حقيقي قبل عمل "Strategy Tester" لمدة لا تقل عن 6 أشهر على بيانات تاريخية.

.

إدارة المخاطر: في حال أردت إضافة "وقف خسارة"، يمكنك تعديل دالة trade.Buy لتشمل مستويات الأسعار، وهو أمر حيوي جداً لتجنب تصفير الحساب.

//+------------------------------------------------------------------+
//|                                                Gold_Bot_Test.mq5 |
//|                                  Copyright 2023, Your Name Here  |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>

CTrade trade;

input int FastMA = 10;      // فترة المتوسط السريع
input int SlowMA = 20;      // فترة المتوسط البطيء
input double LotSize = 0.01; // حجم الصفقة

int handleFast, handleSlow;

int OnInit() {
   handleFast = iMA(_Symbol, _Period, FastMA, 0, MODE_SMA, PRICE_CLOSE);
   handleSlow = iMA(_Symbol, _Period, SlowMA, 0, MODE_SMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}

void OnTick() {
   double fast[], slow[];
   CopyBuffer(handleFast, 0, 0, 2, fast);
   CopyBuffer(handleSlow, 0, 0, 2, slow);

   // منطق التقاطع:
   // تقاطع صعودي (شراء)
   if(fast[1] > slow[1] && fast[0] <= slow[0]) {
      trade.Buy(LotSize, _Symbol, SymbolInfoDouble(_Symbol, SYMBOL_ASK), 0, 0);
   }
   // تقاطع هبوطي (بيع)
   if(fast[1] < slow[1] && fast[0] >= slow[0]) {
      trade.Sell(LotSize, _Symbol, SymbolInfoDouble(_Symbol, SYMBOL_BID), 0, 0);
   }
}

Respondido

1
Desenvolvedor 1
Classificação
(19)
Projetos
24
8%
Arbitragem
9
33% / 33%
Expirado
1
4%
Carregado
2
Desenvolvedor 2
Classificação
(22)
Projetos
21
10%
Arbitragem
4
25% / 75%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(454)
Projetos
718
34%
Arbitragem
35
69% / 9%
Expirado
22
3%
Trabalhando
4
Desenvolvedor 4
Classificação
(33)
Projetos
36
33%
Arbitragem
5
0% / 80%
Expirado
0
Trabalhando
Publicou: 2 códigos
5
Desenvolvedor 5
Classificação
(217)
Projetos
369
33%
Arbitragem
34
41% / 29%
Expirado
108
29%
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
7
Desenvolvedor 7
Classificação
(104)
Projetos
127
24%
Arbitragem
23
30% / 52%
Expirado
8
6%
Livre
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(1)
Projetos
2
0%
Arbitragem
0
Expirado
1
50%
Trabalhando
10
Desenvolvedor 10
Classificação
(6)
Projetos
5
0%
Arbitragem
4
25% / 75%
Expirado
2
40%
Livre
11
Desenvolvedor 11
Classificação
(28)
Projetos
31
45%
Arbitragem
1
100% / 0%
Expirado
3
10%
Livre
12
Desenvolvedor 12
Classificação
(31)
Projetos
33
42%
Arbitragem
0
Expirado
3
9%
Livre
13
Desenvolvedor 13
Classificação
(42)
Projetos
47
60%
Arbitragem
2
100% / 0%
Expirado
1
2%
Livre
Publicou: 5 códigos
14
Desenvolvedor 14
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(274)
Projetos
403
28%
Arbitragem
40
40% / 50%
Expirado
1
0%
Livre
16
Desenvolvedor 16
Classificação
(13)
Projetos
20
40%
Arbitragem
3
0% / 67%
Expirado
3
15%
Livre
17
Desenvolvedor 17
Classificação
(1)
Projetos
1
0%
Arbitragem
3
0% / 100%
Expirado
1
100%
Livre
18
Desenvolvedor 18
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
19
Desenvolvedor 19
Classificação
(434)
Projetos
638
53%
Arbitragem
32
59% / 22%
Expirado
6
1%
Trabalhando
20
Desenvolvedor 20
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(3)
Projetos
5
20%
Arbitragem
1
100% / 0%
Expirado
2
40%
Livre
23
Desenvolvedor 23
Classificação
(35)
Projetos
53
74%
Arbitragem
4
50% / 0%
Expirado
0
Livre
24
Desenvolvedor 24
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
25
Desenvolvedor 25
Classificação
(52)
Projetos
58
59%
Arbitragem
4
0% / 25%
Expirado
1
2%
Livre
26
Desenvolvedor 26
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
Publicou: 1 código
27
Desenvolvedor 27
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
I am looking for an experienced MQL5 developer to code a simple grid trading strategy into an Expert Advisor. The strategy logic is already defined, and I am looking for someone with strong MQL5 development experience to implement it accurately and efficiently. If you are interested and have relevant experience, please get in touch so we can discuss the project details
I am looking for an experienced MQL5 or MQL4 developer with a strong background in low-latency algorithmic trading, market data integration, arbitrage and execution optimization. The project involves developing a high-performance HFT Expert Advisor (EA) for XAUUSD or US30 on IC Markets that is designed for robust execution in both demo and live environments. The EA may use market data feeds (such as lmax,one zero or
I am looking for an experienced MQL5 or MQL4 developer with a strong understanding of high-frequency trading (HFT) concepts who can explain how certain HFT-style strategies have historically been able to pass proprietary firm evaluations while also being profitable on demo accounts and capable of transitioning successfully to live trading. I am interested in understanding the legitimate trading logic, execution
Looking for a Prop Firm Trading Bot (Gold/XAUUSD Preferred) I am looking for an experienced developer who can either: Create a custom prop firm trading bot, or Provide an existing, proven prop firm trading bot. Requirements: Preferably trades Gold (XAUUSD) . Designed to pass prop firm evaluation challenges. Must respect the following risk parameters: Daily Drawdown: Maximum 5% Overall Maximum Drawdown: 10% Strong
احتاج استراتيجية مع تحويله لمؤشر وفي المستقبل لربورت تداول مع وقف خسارة متحرك يعمل علي mt5وعمل علي مناطق دخول ىخروج يعمل علي الناسداك والعمل علي تقويتها باقصى نسبه نجاح بنسبه ٩٥ بالميه
Brotus AI 32+ USD
And let's talk about Linux and more about those technologies, ideas, those AI ideas.Let's make an AI technology summit for us base on wgat i wanna build and their example pictures of roadmapBoss can we take those idea all we've talked about base on technology, tech, UI...J.A.R.V.I.S...eDEX-UI into reality (solution) using laptop cause I think it give accces to build app amd more
أحتاج إلى برنامج تداول آلي (EA) مربح للمضاربة السريعة على الذهب. لا أرغب في استخدام استراتيجيات الشبكة أو المارتينجال. إذا كان لديك برنامج متطور وجاهز للعمل، يُرجى التواصل معي. يجب أن تكون قادرًا على توفير نسخة تجريبية
I have a bot working XAUUSD. Need another bot to work in XAUUSD as a stoploss @ 10 dollar per trade. A universal one which can work with or without magic number
I want a robot that executes round-the-clock trades on Gold, starting with a 0.01 lot size and increasing to 0.02 if the trade moves against the position. The first reinforcement (averaging) step should trigger after a $5 drop; then, the lot size should increase to 0.04 after another $5 drop, and to 0.08 after a further $5 drop. This doubling pattern should continue for every $5 movement up to a total range of $50
setup trading alerts on mt5 from hikin Ashi candles i have a strategy script convert it to sent alerts as signals ans sl/tp in mt5 same as tradingview hikin ashi

Informações sobre o projeto

Orçamento
30 - 80 USD