I pay 30 dollars to the one that can make this code compilate and run on Metatrader5 adding some minor modification

MQL5 Indicatori Esperti

Lavoro terminato

Tempo di esecuzione 1 ora
Feedback del cliente
Amazing job and help
Feedback del dipendente
Good guy and straight to the point! We knocked this out quick

Specifiche

#property copyright "regression"
#property link      "https://www.mql5.com"
#property version   "1.00"

// Déclaration des variables
double lotSize;
string instrument;
int takeProfit;
int stopLoss;
int distance;
int timer;

// Initialisation des variables
lotSize = 0.01; // Choisissez la taille du lot que vous souhaitez utiliser
instrument = "EURUSD"; // Choisissez l'instrument financier que vous souhaitez trader
takeProfit = 100; // Choisissez la distance en pips du take profit
stopLoss = 50; // Choisissez la distance en pips du stop loss
distance = 1000; // Choisissez la distance en pips de la moyenne mobile à utiliser pour le trade
timer = 60; // Choisissez le temps de pause en secondes après la clôture de chaque trade

// Initialisation du programme
void OnStart()
  {
// Activer le trading automatique
   Trade.SetExpertMagicNumber(123); // Numéro magique pour identifier les trades du robot
   Trade.SetAutoTrading(true);

// Boucle infinie pour exécuter le trading en continu
   while(!IsStopped())
     {
      // Récupération du prix actuel
      double currentPrice = SymbolInfoDouble(instrument, SYMBOL_BID);

      // Calcul de la moyenne mobile
      double ma = iMA(instrument, 0, 1000, 0, MODE_SMA, PRICE_CLOSE, 0);

      // Calcul de la distance entre le prix actuel et la moyenne mobile
      double distanceToMa = currentPrice - ma;

      // Si la distance est supérieure à la distance choisie, on vend
      if(distanceToMa >= distance)
        {
         // Ouverture d'une position de vente
         ulong ticket = Trade.Sell(lotSize, currentPrice, 0, currentPrice + takeProfit * _Point, currentPrice - stopLoss * _Point, "Vente");
         // Si l'ordre a été ouvert avec succès, on affiche un message dans le journal
         if(ticket > 0)
           {
            Print("Ordre de vente ouvert avec succès (ticket = " + StringFormat("%I64u", ticket) + ")");
           }
        }
      // Sinon, si la distance est inférieure à la distance choisie, on achète
      else
         if(distanceToMa <= -distance)
           {
            // Ouverture d'une position d'achat
            ulong ticket = Trade.Buy(lotSize, currentPrice, 0, currentPrice - takeProfit * _Point, currentPrice + stopLoss * _Point, "Achat");
            // Si l'ordre a été ouvert avec succès, on affiche un message dans le journal
            if(ticket > 0)
              {
               Print("Ordre d'achat ouvert avec succès (ticket = " + StringFormat("%I64u", ticket) + ")");
              }
           }

      // Pause avant la prochaine itération
      Sleep(timer * 1000);
     }
  }
//+------------------------------------------------------------------+

Con risposta

1
Sviluppatore 1
Valutazioni
(4)
Progetti
10
30%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(36)
Progetti
45
2%
Arbitraggio
6
33% / 17%
In ritardo
1
2%
Gratuito
3
Sviluppatore 3
Valutazioni
(390)
Progetti
416
30%
Arbitraggio
74
19% / 72%
In ritardo
52
13%
In elaborazione
4
Sviluppatore 4
Valutazioni
(10)
Progetti
4
0%
Arbitraggio
11
0% / 82%
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(159)
Progetti
215
76%
Arbitraggio
4
50% / 25%
In ritardo
18
8%
Gratuito
Pubblicati: 2 articoli
Ordini simili
MQL5 Developer 30+ USD
📄 وثيقة المواصفات الفنية لروبوت التداول (MQL5 EA Specification) 📌 1. ملخص المشروع والهدف * اسم المشروع: Gold Cent Grid-Hedge EA * المنصة: MetaTrader 5 (MQL5) * أداة التداول: الذهب (XAUUSD) * نوع الحساب: حساب سنت (Cent Account) * فكرة الاستراتيجية: تداول شبكة هيدج متوازنة (Grid-Hedging) تفتح صفقات تعزيز كل مسافة محددة، وتغلق الطرف الأكثر ربحاً عند تحقيق هدف مالّي مجمع بالدولار/السنت لإعادة هيكلة التوازن. ⚙️ 2
I need a developer who also understands trading. I have a Telegram copy-trading bot that reads signals from a Telegram channel via a Python script and converts them into trading orders. I want to create a program that analyzes Gold (XAUUSD) charts specifically and sends signals in this exact format: #XAUUSD BUY 4324-4321 TP 4327 TP 4330 TP 4334 TP 4339 TP 4344 TP 4354 TP 4364 SL 4311 If the # symbol is missing at the
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA
Gold hunter v5 30+ USD
*TITLE:* 5 Trades EA - EMA20/50 + RSI - Safe for Small Account *SPECIFICATION:* I need MT5 EA - Source Code .mq5 *Logic:* Buy: EMA20 > EMA50 and RSI(14) 45-70 Sell: EMA20 < EMA50 and RSI(14) 30-55 Timeframe M15, Symbol XAUUSD and all Forex *Trade Management:* Max 5 trades at same time. Fixed lot 0.01. No martingale. No lot increase. Distance between trades 150 points. Do not open all 5 at same price. Max 5 total
Code the indicator to MT5 EA, include all the inputs variables and values Allow live trading Allow demo trading Allow strategy tester Bar shift 0 adjustable Allow indicator to show on strategy tester Lot size adjustable Max spread in points (0=disable) Use stop loss circle true or false Stop loss circle in points adjustable Use stop loss true or false Stop loss in points (adjustable) Take profit true or false Use
MT5 High-Volume Trading Bot Requirements I am looking for a professional MetaTrader 5 (MT5) trading bot / Expert Advisor designed for high trading volume while maintaining extremely low and controlled drawdown. The requirements are: * Platform: MetaTrader 5 (MT5) only. * Trading volume: approximately 1,000–2,000 operations/trades per day. * No HFT: I am not looking for a true high-frequency trading system based on
Poverty 30+ USD
Develop the EA according to my provided trading strategy and rules. The EA must open and close trades automatically according to the specified conditions. Include configurable Stop Loss, Take Profit, lot size and risk-management settings. Include an option for fixed lot size or percentage-based risk. Include Magic Number and trade-comment settings. The EA must work correctly on the requested MT4/MT5 platform and
I need an Expert Advisor (EA) developed for MetaTrader 5 (MT5) tailored for trading on Exness accounts. Account & Server Details: Trading Platform: MetaTrader 5 (MT5) Broker: Exness Execution Type: Market / Pending Orders Account Type: [Specify: Standard / Pro / Raw Spread / Zero] Target Instruments: [Specify pairs, e.g., XAUUSD, EURUSD, BTCUSD] Strategy Requirements: Entry Rules: [Insert your buy/sell entry
Monthly Report: August 2026 World PEACE Multi FX Algo generated a total realized profit of approximately 31,966 JPY during August. The provider account is normally operated with approximately 200,000 JPY of capital. Compared with this standard operating amount, the realized profit for August was approximately 15.98%. Please note that this is not a compounded monthly return. Realized profits are withdrawn regularly
I am looking for an experienced MQL5/MT5 Expert Advisor developer to build a custom XAUUSD (Gold) HFT/ultra-fast scalping EA for MetaTrader 5. I have attached a reference video showing exactly how I want the EA to behave. Please watch the video carefully before applying. The video should give you a clear understanding of the desired entry behavior, trade frequency, execution style, and overall system behavior. The EA

Informazioni sul progetto

Budget
30+ USD
Scadenze
a 1 giorno(i)