Trading History Balance

MQL4 Intégration

Tâche terminée

Temps d'exécution 3 jours
Commentaires de l'employé
Excellent Client , will work with again
Commentaires du client
Legend! Very helpful and professional, willing to go an extra mile to make customer understand his work. Thank you.

Spécifications

Please help I have a complex problem for my size but not for your size Im sure :). Please note that Im not a programmer and my logic is not good but please if interested I'm willing to explain further.


I need to access trading history balance for 2 Classes of magic numbers and be filtered using:

  • recent time (hours) // Input variable;
  • limit history (number of trades in history)  //Input variable

Class 1

T History balance (Last 72 hours  //make it an Input variable, and Last 20 trades  //make it an Input variable, ) for magic numbers  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12 including open and closed positions to reflect current balance (sum of profit/losses for those magic numbers made in the last 20 trades)

Class 2

T History balance (Last 72 hours  //make it an Input variable, and Last 20 trades  //make it an Input variable, ) for magic numbers  101, 102, 103, 104,105, 106, 107, 108, 109, 110, 111, and 112 including open and closed positions to reflect current balance (sum of profit/losses for those magic numbers made in the last 20 trades)

Then Code

//Global declaration

bool _Compare_1;

bool _Compare_2;


int start() {

  
   //Local declaration
  _Compare_1 = (Class_1 > Class_2);        // To trigger _Conditional_Arithmetic
  _Compare_2 = (Class_1 Class_2)
{
   if(Condition) Value1 +=Value2;
   return(Value1);
}


double _Conditional_Arithmetic_2(bool Condition, double Value1, double Value2)     // To be triggered by _Compare_2 = (Class_1 < Class_2
{
   if(Condition) Value1 +=Value2;
   return(Value1);
}


//Then I will merge this code with my EA. Does it make sense?

Répondu

1
Développeur 1
Évaluation
(590)
Projets
789
71%
Arbitrage
9
33% / 33%
En retard
22
3%
Gratuit
Publié : 8 codes
2
Développeur 2
Évaluation
(97)
Projets
121
25%
Arbitrage
5
20% / 60%
En retard
17
14%
Gratuit
3
Développeur 3
Évaluation
(453)
Projets
566
26%
Arbitrage
24
42% / 38%
En retard
85
15%
Gratuit
Publié : 6 codes
4
Développeur 4
Évaluation
(258)
Projets
396
28%
Arbitrage
69
19% / 49%
En retard
121
31%
Travail
5
Développeur 5
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
6
Développeur 6
Évaluation
(130)
Projets
210
40%
Arbitrage
90
20% / 43%
En retard
85
40%
Gratuit
7
Développeur 7
Évaluation
(64)
Projets
144
46%
Arbitrage
20
40% / 20%
En retard
32
22%
Gratuit
8
Développeur 8
Évaluation
(80)
Projets
117
67%
Arbitrage
16
25% / 13%
En retard
12
10%
Gratuit
Publié : 2 codes

Informations sur le projet

Budget
30+ USD
Délais
de 1 à 3 jour(s)