Job finished
Execution time 1 hour
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Feedback from customer
Amazing job and help
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Feedback from employee
Good guy and straight to the point! We knocked this out quick
Specification
#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);
}
}
//+------------------------------------------------------------------+
#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);
}
}
//+------------------------------------------------------------------+
Responded
1
Rating
Projects
10
30%
Arbitration
1
0%
/
100%
Overdue
0
Free
2
Rating
Projects
45
2%
Arbitration
6
33%
/
17%
Overdue
1
2%
Free
3
Rating
Projects
398
31%
Arbitration
62
19%
/
69%
Overdue
50
13%
Loaded
4
Rating
Projects
4
0%
Arbitration
11
0%
/
82%
Overdue
0
Free
5
Rating
Projects
194
76%
Arbitration
4
50%
/
25%
Overdue
18
9%
Free
Similar orders
Connect from Mt5 via binary deriv account api
30 - 50 USD
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
50% Retracement Indicator
30 USD
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
Creating an indicator for metatrader 4
30 - 50 USD
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
Indicator Conversion
30+ USD
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
Make indicator lighter/faster
30+ USD
I need to improve the code of an indicator that is too heavy and slow when running and when used with iCustom in an EA. No other changes to the indicator are requested: the original features of the indicator should remain as theay are. I'll provide the indicator after job acceptance. I request final source code mq5 file. Thank you Regards
I have a mt5 indicator that is working perfectly but I will like to make it an expert advisor to have an automated trade. I will be glad if I can get a well experienced developer to execute this project. Thanks
O TRABALHO CONSISTE NA MUDANÇA DO HISTOGRAMA DO INDICADOR TREDN DIRECTION AND FORCE DSEMA SMOOTHED PARA O HISTOGRAMA DA FOTO ANEXA, OBEDECENDO AS TRES CORES VERDE (UP, VERMELHOR(DOWN) E CINZA(TREND). O MESMO TEM QUE ODECER O MESMO CALCULO E COLORIR DA MESMA FORMA POREM COM HISTOGRAMA DDE FORMATO DIFERENTE
Project information
Budget
30+ USD
VAT (20%):
6
USD
Total:
36
USD
For the developer
27
USD
Deadline
to 1 day(s)