指定

//+------------------------------------------------------------------+
//|                                                     SimpleEA.mq4 |
//|                        Generated by MetaEditor                   |
//|                   https://www.mql5.com/en/docs                   |
//+------------------------------------------------------------------+
#property strict

// Input parameters
input double LotSize = 0.1; // Lot size
input int MovingAveragePeriod = 50; // MA period

// Global variables
double maCurrent;
double maPrevious;

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   // Initialization of variables
   maCurrent = 0;
   maPrevious = 0;
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   // Cleanup code here
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   // Calculate current and previous MA
   maCurrent = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   maPrevious = iMA(NULL, 0, MovingAveragePeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   
   // Check for buy signal
   if (maPrevious < Close[1] && maCurrent > Close[0])
     {
      // Open buy order
      OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, "Buy Order", 0, 0, Blue);
     }
   
   // Check for sell signal
   if (maPrevious > Close[1] && maCurrent < Close[0])
     {
      // Open sell order
      OrderSend(Symbol(), OP_SELL, LotSize, Bid, 2, 0, 0, "Sell Order", 0, 0, Red);
     }
  }
//+------------------------------------------------------------------+

反馈

1
开发者 1
等级
(156)
项目
195
58%
仲裁
10
80% / 0%
逾期
0
工作中
发布者: 1 代码
2
开发者 2
等级
(378)
项目
486
24%
仲裁
59
54% / 25%
逾期
55
11%
繁忙
3
开发者 3
等级
(2)
项目
5
0%
仲裁
3
0% / 100%
逾期
1
20%
工作中
4
开发者 4
等级
(9)
项目
19
16%
仲裁
3
67% / 0%
逾期
0
空闲
5
开发者 5
等级
(5)
项目
2
0%
仲裁
4
0% / 100%
逾期
0
空闲
6
开发者 6
等级
(307)
项目
312
70%
仲裁
2
100% / 0%
逾期
0
空闲
发布者: 1 代码
7
开发者 7
等级
(144)
项目
186
41%
仲裁
24
58% / 21%
逾期
13
7%
空闲
8
开发者 8
等级
(33)
项目
38
21%
仲裁
5
0% / 60%
逾期
0
空闲
9
开发者 9
等级
(255)
项目
262
30%
仲裁
0
逾期
3
1%
空闲
发布者: 2 代码
10
开发者 10
等级
(45)
项目
46
24%
仲裁
34
9% / 85%
逾期
10
22%
空闲
11
开发者 11
等级
(72)
项目
80
10%
仲裁
38
8% / 58%
逾期
6
8%
空闲
12
开发者 12
等级
(2)
项目
2
100%
仲裁
1
0% / 0%
逾期
0
空闲
13
开发者 13
等级
(3)
项目
2
50%
仲裁
2
0% / 100%
逾期
0
空闲
14
开发者 14
等级
(4)
项目
4
0%
仲裁
1
0% / 0%
逾期
0
空闲
相似订单
Hi everyone, I am hoping that you would be able to help me with possibly an easy fix. I have exhausted all avenues to try and optimise a 3 min US100 / USTEC and convert from line script to MQL5 so I can automate through MT5. The trades are not correlating and there is a clear consistent discrepancy of approximately 123 minutes between a significant number of trades when comparing the same time period. I really hope
Pakayaku Robot Trading 30 - 200 USD
Revolusi Trading BTCUSD dengan Presisi Fibonacci & Ichimoku Kumo "Memperkenalkan Pakayaku Robot Trading , asisten cerdas yang dirancang khusus untuk menaklukkan pasar emas (XAUUSD) dan Bitcoin (BTCUSD). Menggabungkan algoritma Fibonacci Retracement untuk akurasi titik pantul dan Ichimoku Kumo sebagai filter tren global. Mengapa Memilih Pakayaku? Analisa Multi-Indikator: Menggabungkan Fibonacci, Ichimoku, dan
READ BEFORE MESSAGING PLEASE Developer Requirements (Strict): - Expert Level Only: This is a professional-grade, robust trading engine. Please do not apply if you are a beginner or intermediate developer. ​ - Asynchronous Proficiency: You must have deep experience with CTrade and handling asynchronous order execution (Requotes, Busy Servers, and Order Integrity Sync). ​ - Proven Track Record: I require a developer
buy condition when blue color appears sell condition when yellow color appears close all buys when there is a sell order close all sells when there is a buy order
I need a MetaTrader 5 Expert Advisor for XAUUSD. Trend Filter : Trade only in the direction of the main trend. Patterns (Buy) : Hammer, Inverted Hammer, Doji, Bullish Harami, Bullish Engulfing + Green confirmation candle close above high. Patterns (Sell) : Shooting Star, Doji, Bearish Harami, Bearish Engulfing + Red confirmation candle close below low. Entry Rule : Wait for one Pullback candle (Red for Buy, Green for
I would like to build a very very low budget bot and test run it to see if it would be profitable on the long run or if it will just be a waste of money and resources It is python 70% of the engine logic codes needed are already existing on githubs and python traders community So you are not building from scratch at all So kindly go through it Thank you
* After every loss, It does not increase the lot sizes gradually. For example, after a loss of 0.01, it goes straight to 0.05 lots. It does not follow progressive order. 0.01;0.02;0.03;0.04;0.05... etc. From 0.01, it goes straight to 0.05 * Also If there is a win, it does not return to 0.01 it continues on the last lot size 0.06. After every win the EA should start again at 0.01 * I would also like to adjust the
Società di investimento con attività tra Sanremo e Monaco ricerca un giovane collaboratore con esperienza nell’utilizzo avanzato di MetaTrader 5. Si richiede la conoscenza della lingua italiana e inglese. Attività Il collaboratore si occuperà di: • eseguire backtest di strategie di trading su MT5 • effettuare ottimizzazioni parametri tramite Strategy Tester • analizzare risultati e robustezza delle strategie •
I am looking for an experienced MT5 developer to build a custom, aggressive XAUUSD scalping EA with structured basket management and momentum continuation logic. This is not a generic EA — it requires careful architecture and proper risk control. Key Requirements: Instrument & Timeframes: XAUUSD only M1 execution chart M5/M15 for directional bias and structure context Execution & Basket Logic: Aggressive basket-style
I need any highly profitable MT5 robot which trades any sythetic indices on deriv very profitably. It should have good risk management and any good strategy The EA should have good risk management and can trade small accounts like 50 - 100USD Developers who have already made robots have higher chance

项目信息

预算
50+ USD