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

MQL5 Indicadores Experts

Trabalho concluído

Tempo de execução 1 hora
Comentário do cliente
Amazing job and help
Comentário do desenvolvedor
Good guy and straight to the point! We knocked this out quick

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(4)
Projetos
10
30%
Arbitragem
1
0% / 100%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(36)
Projetos
45
2%
Arbitragem
6
33% / 17%
Expirado
1
2%
Livre
3
Desenvolvedor 3
Classificação
(376)
Projetos
398
31%
Arbitragem
62
19% / 69%
Expirado
50
13%
Carregado
4
Desenvolvedor 4
Classificação
(9)
Projetos
4
0%
Arbitragem
11
0% / 82%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(140)
Projetos
194
76%
Arbitragem
4
50% / 25%
Expirado
18
9%
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
30+ USD
IVA (20%): 6 USD
Total: 36 USD
Desenvolvedor
27 USD
Prazo
para 1 dias