Function to read closed orders from history and calculate loss until first positive order

MQL4 Experts Consultation

Tâche terminée

Temps d'exécution 15 heures
Commentaires du client
Recommended!
Commentaires de l'employé
Excellent customer! Very thanks!

Spécifications

Function to read closed orders from history and calculate loss until first positive order.

For example (negative values in brackets),

1 order = 100, 2 = (100), 3 = (100). Total loss (200).

1 order = 50, 2 = (25), 3 = 25, 4 = (100), 5 = (50), 6 = (30). Total loss (180).

But.

I don't need to calculate loss for day etc. Just calculate backwards until first positive order and return result.

Répondu

1
Développeur 1
Évaluation
(229)
Projets
339
49%
Arbitrage
21
5% / 33%
En retard
24
7%
Gratuit
2
Développeur 2
Évaluation
(108)
Projets
138
43%
Arbitrage
19
16% / 53%
En retard
20
14%
Chargé
3
Développeur 3
Évaluation
(1130)
Projets
1432
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
4
Développeur 4
Évaluation
(620)
Projets
680
57%
Arbitrage
25
16% / 60%
En retard
228
34%
Gratuit

Informations sur le projet

Budget
30+ USD
TVA (21%): 6.3 USD
Total: 36.3 USD
Pour le développeur
27 USD