Take alook at the entire code and add 1 function to limit number of orders

Lavoro terminato

Tempo di esecuzione 41 minuti
Feedback del cliente
Very good programmer, take a time to teach you on what modification he make :) Good teacher :) Thank you !
Feedback del dipendente
Good customer! thank you for the job!

Specifiche

Hello, look at the entire code, check that it is programmed correctly, that there are no functions that are useless! Add a function so that there is only 1 order per currency pair. Currently it can happen that there are 2 or 3 orders per currency pair, I want to limit the number of orders to 1 per currency pair.


Add a code like this example :

int TotalOrders(string symbol="", ulong magic = -1) {

   int cnt = 0;

   int pos_total = PositionsTotal();

   for(int pos =pos_total-1;pos>=0;pos--)  {

      ulong pos_ticket = PositionGetTicket(pos);

      if(PositionSelectByTicket(pos_ticket) && (symbol=="" || PositionGetSymbol(POSITION_SYMBOL)==symbol) && ( magic==-1 || PositionGetInteger(POSITION_MAGIC)==magic) ) {

      cnt++;   

      }

   }

   return(cnt);

}


it's just an example of what I want, it can be programmed differently.


File:

MQ5
deep1.mq5
11.3 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(213)
Progetti
286
47%
Arbitraggio
27
59% / 37%
In ritardo
36
13%
Gratuito
2
Sviluppatore 2
Valutazioni
(22)
Progetti
23
39%
Arbitraggio
0
In ritardo
1
4%
Gratuito
3
Sviluppatore 3
Valutazioni
(10)
Progetti
13
0%
Arbitraggio
24
0% / 75%
In ritardo
4
31%
In elaborazione
4
Sviluppatore 4
Valutazioni
(57)
Progetti
72
22%
Arbitraggio
13
46% / 15%
In ritardo
5
7%
Gratuito
5
Sviluppatore 5
Valutazioni
(43)
Progetti
66
12%
Arbitraggio
12
58% / 42%
In ritardo
1
2%
Gratuito
6
Sviluppatore 6
Valutazioni
(279)
Progetti
378
72%
Arbitraggio
19
32% / 47%
In ritardo
16
4%
Gratuito
Pubblicati: 15 codici
Ordini simili
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and

Informazioni sul progetto

Budget
30+ USD
Scadenze
a 1 giorno(i)