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
(376)
Progetti
398
31%
Arbitraggio
62
19% / 69%
In ritardo
50
13%
Caricato
4
Sviluppatore 4
Valutazioni
(9)
Progetti
4
0%
Arbitraggio
11
0% / 82%
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(140)
Progetti
194
76%
Arbitraggio
4
50% / 25%
In ritardo
18
9%
Gratuito
Ordini simili
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Buy an sell symbols and guide showing entry to buy or sell setups and I need it gives and tell me to enter buy or to enter sell by automation nnnnnnnnnn fgggghhuuuiijh hhrddfhuuufffff yygggg hhgt hiidcb hygdfbby gyytdv uttrdd. Httdd hyyydv. Yhygf. Uu juhgff uyttt uuuytdbhy uuuyyy hhhff jjueeiivhgffdgu hyuu7trg yyyyffj yyytd u6tttf uuyrrrhi uytrrfh utterly jyrfgkkttv uhyybhhyy hytfgivuyt utfbh utghjio7t. Uuytg uytru
Utilizing the MQL5 MetaEditor Wizard, I created an Expert Advisor, having the following Signal indicators: I was able to optimize the EA and reached a backtest with the following specifications: I was able to reach a profit level of 30K, as indicated below. However, the Bot is not without faults and following the backtest, I started a forward test with real live data and the results were not so great. The EA took a
Connect from Mt5 via binary deriv account api I have mt5 indicator, need to connect with binary deriv account through api. If anyone can setup via API then contact me. everything control mt5
Hello I am looking for a developer to create an 50% retracement Indicator of the previous candle . So once a candle close the Indicator is supposed to take the full candle size from high to low and make a 61% and 50% level on that candle and I would like the candle to show until the next previous candle is done creating. After this I would look to create an ea with it possibly
Hi, I have 2 indicators which are based on the super trend , the alerts on indicator (1) does not work at all , and on the other indicator the alerts do not come on time on time, which is kind of delayed. see attached file below
Looking for an experienced developer to modify my existing TDI strategy , want to add filter for Buy and Sell Signals, Arrows are displayed on chart and what only to leave high accurate arrows Source code to be provided
I have the mq5 file, I need a buffer adding to the indicator, so it appears in the data window so I can reference it later in an EA. As the below screenshot shows, there is a median ray line from yesterday (the dashed horizontal line) - I want this value in the data window called Median Ray. I want this to be a single value per day, so todays Median Ray would be 17868, and so on each day. So I want all the Developing
I would like to develop my own indicator on metatrader 4 and tradingview. We would start with a basic version that we would improve later. It is an indicator based on several analyses and which would provide several indications. I am looking for someone who can develop on MT4 and Mt5, initially I would like to do it on mt4 and then on mt5. If you have expertise in pinescript it is a plus because I would like to
I urgently require swift assistance to convert a complex indicator into a fully functional scanner, capable of automatically sending real-time data, alerts, and notifications via email, ensuring seamless integration and prompt delivery of critical information to facilitate informed decision-making and timely action

Informazioni sul progetto

Budget
30+ USD
IVA (20%): 6 USD
Totale: 36 USD
Per lo sviluppatore
27 USD
Scadenze
a 1 giorno(i)