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

MQL5 指标 专家

工作已完成

执行时间1 一小时
客户反馈
Amazing job and help
员工反馈
Good guy and straight to the point! We knocked this out quick

指定

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

反馈

1
开发者 1
等级
(4)
项目
10
30%
仲裁
1
0% / 100%
逾期
0
空闲
2
开发者 2
等级
(36)
项目
45
2%
仲裁
6
33% / 17%
逾期
1
2%
空闲
3
开发者 3
等级
(376)
项目
398
31%
仲裁
62
19% / 69%
逾期
50
13%
已载入
4
开发者 4
等级
(9)
项目
4
0%
仲裁
11
0% / 82%
逾期
0
空闲
5
开发者 5
等级
(140)
项目
194
76%
仲裁
4
50% / 25%
逾期
18
9%
空闲
相似订单
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello, I need a martingale and grid bot. The programmer must provide a test of about 5 minutes for the EA to see how it works and if everything is fine, it will be selected to make some modifications for personal use to that EA that you provide. If it has a lot of graphics or buttons. better It doesn't matter if the robot is bad, I'm more interested in its functionalities to use with my strategy
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Here is the Idea: I want a Semi Auto Trade Panel Manager EA that only activates when I press the BUY or SELL or BUY LIMIT or SELL LIMIT then the EA will do the rest : that includes the BUY STOP 0r SELL STOP and the hedging calculations according to below diagram. So overall , my only intervention is entering the lot size , hedge zone distance and TP ratio or entering the price for buy limit/sell limit then pressing
Hi, I'm looking for a martingale MT4 EA that performs a lot of trading volume per day. If you have the robot, you'll need to send me the demo so I can backtest it. Thank you very much
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
we want to build a dashboard ea that would display on another chart key metrics : i will foward screeshot of what i want to dashboard to look like : the function i would need to get display are the following: 1. classified past performance ea by magic number ( with classic : total trade , total profit , return/dd , max dd (base on history) , ) 2. equity chart of performance if we click on a magic number we should
the task will be actually quiet simple , i need an active develloper to devellope out of 3 updates an ea STEP 1 (this job): make a classical pair trading ea , that can calculate correlation between assets and trade when the correlation diverge above a specified % the develloper that will postulate for the job will need : 1- to be ok to do the full project this job and the update following 2- very low arbitration , i

项目信息

预算
30+ USD
VAT (20%): 6 USD
总计: 36 USD
开发人员
27 USD
截止日期
 1 天