Spécifications

//+------------------------------------------------------------------+
//|                                                     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);
     }
  }
//+------------------------------------------------------------------+

Répondu

1
Développeur 1
Évaluation
(162)
Projets
209
61%
Arbitrage
10
80% / 0%
En retard
0
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(401)
Projets
519
24%
Arbitrage
61
57% / 25%
En retard
60
12%
Chargé
3
Développeur 3
Évaluation
(2)
Projets
5
0%
Arbitrage
3
0% / 100%
En retard
1
20%
Travail
4
Développeur 4
Évaluation
(9)
Projets
19
16%
Arbitrage
3
67% / 0%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(5)
Projets
2
0%
Arbitrage
4
0% / 100%
En retard
0
Gratuit
6
Développeur 6
Évaluation
(327)
Projets
332
71%
Arbitrage
2
100% / 0%
En retard
0
Gratuit
Publié : 1 code
7
Développeur 7
Évaluation
(144)
Projets
186
41%
Arbitrage
24
58% / 21%
En retard
13
7%
Gratuit
8
Développeur 8
Évaluation
(33)
Projets
38
21%
Arbitrage
5
0% / 60%
En retard
0
Gratuit
9
Développeur 9
Évaluation
(258)
Projets
269
29%
Arbitrage
2
50% / 0%
En retard
3
1%
Travail
Publié : 2 codes
10
Développeur 10
Évaluation
(45)
Projets
46
24%
Arbitrage
34
9% / 85%
En retard
10
22%
Gratuit
11
Développeur 11
Évaluation
(72)
Projets
80
10%
Arbitrage
38
8% / 58%
En retard
6
8%
Gratuit
12
Développeur 12
Évaluation
(2)
Projets
2
100%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
13
Développeur 13
Évaluation
(3)
Projets
2
50%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(4)
Projets
4
0%
Arbitrage
1
0% / 0%
En retard
0
Gratuit
Commandes similaires
FREELANCER JOB ORDER: DEVELOPMENT OF A MULTI-ASSET FTMO-COMPLIANT EXPERT ADVISOR (EA) 1. Project Title Development of a Professional, Configurable MT5 Expert Advisor for FTMO Challenges and Funded Accounts — Forex, Gold, Silver and Commodities 2. Project Overview I am seeking an experienced MQL5 developer to design and develop a professional automated trading system (Expert Advisor) for MetaTrader 5 (MT5). The EA
Project: Custom MT5 Day Trading Expert Advisor I need a custom automated trading robot (EA) for MetaTrader 5, developed in MQL5. Markets: - Gold (XAUUSD) - Selected Forex pairs Trading style: Automated day trading. All positions should be closed according to predefined strategy rules and before the end of the selected trading session. Strategy: The developer should propose a clear trading strategy, explain its rules
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
1. Overview Build an MQL5 Expert Advisor for MetaTrader 5 that trades XAUUSD (Gold) as a scalper, using Heiken Ashi candles and a 50 EMA for entries. 2. Platform and symbol MetaTrader 5, Expert Advisor (.mq5 and compiled .ex5) Symbol: XAUUSD (must work with broker suffixes, e.g. XAUUSDm) Default timeframe: M5 (configurable; M1 to M15 should work) 3. Indicators Heiken Ashi candles, calculated inside the EA (no
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester
Hi i'm looking for a trading bot that will trade on mt5/MQL5. The bot must be able to follow trend and works on any pair,chart and symbol. All distance measured with ATR. Trend from a higher time frame (default H1) with a moving average;UP/DOWN. Support and resistance found automatically from recent swing highs and low nothing drawn on the chart. Two kinds of trades, each can be switched on/off. S/R trades; price
I am looking for an EA using MT5, trading XAUUSD on PuPrime-Live6, Standard account. LIMITATIONS No martingale, no grid. Start equity 1000 EUR. Leverate 1:500 Account in USD. PuPrime-Live6 All settings (risk, time, drawdown %, cooldown, lot size) shall be adjustable on init or backtest. VERIFICATIONS The EA needs to reach the profit goals on Actual Ticks, 100ms slippage in backtests for each month 2026. profit goal
To create a unique description that meets the freelance site's requirements, you can type the following: "I am looking for an experienced MQL5 developer to create a custom Forex Expert Advisor. The trading strategy should be based on a moving average crossover system, filtered by the Relative Strength Index indicator. The expert advisor needs to feature distinct strategy modules with adjustable settings for the
Custom MT5 Expert Advisor (EA) Development | MQL5 Automation Turn Your Trading Strategy into a Powerful Automated Trading System! Are you looking for a professional MT5 Expert Advisor developer to automate your trading strategy? I specialize in developing custom MetaTrader 5 (MT5) Expert Advisors and indicators using MQL5 , tailored to your trading rules, risk management preferences, and trading goals. Whether you
Scalping bort 30+ USD
GOLD SCALPING BOT STRATEGY Symbol: XAUUSD (Gold vs USD) Broker: Exness Account: Standard Starting Balance: $20 1. TIMEFRAME - Trend analysis: M15. - Entry timeframe: M5. - Trade only when the market has a clear direction. 2. INDICATORS - EMA 50 - EMA 200 - RSI 14 - Support and Resistance 3. BUY RULES The bot must open a BUY trade only when all these conditions are met: 1. EMA 50 is above EMA 200 on M15. 2. Price is

Informations sur le projet

Budget
50+ USD