Trading History Balance

MQL4 Integrazione

Lavoro terminato

Tempo di esecuzione 3 giorni
Feedback del dipendente
Excellent Client , will work with again
Feedback del cliente
Legend! Very helpful and professional, willing to go an extra mile to make customer understand his work. Thank you.

Specifiche

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?

Con risposta

1
Sviluppatore 1
Valutazioni
(590)
Progetti
789
71%
Arbitraggio
9
33% / 33%
In ritardo
22
3%
Gratuito
Pubblicati: 8 codici
2
Sviluppatore 2
Valutazioni
(97)
Progetti
121
25%
Arbitraggio
5
20% / 60%
In ritardo
17
14%
Gratuito
3
Sviluppatore 3
Valutazioni
(453)
Progetti
566
26%
Arbitraggio
24
42% / 38%
In ritardo
85
15%
Gratuito
Pubblicati: 6 codici
4
Sviluppatore 4
Valutazioni
(258)
Progetti
396
28%
Arbitraggio
69
19% / 49%
In ritardo
121
31%
In elaborazione
5
Sviluppatore 5
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
6
Sviluppatore 6
Valutazioni
(130)
Progetti
210
40%
Arbitraggio
90
20% / 43%
In ritardo
85
40%
Gratuito
7
Sviluppatore 7
Valutazioni
(64)
Progetti
144
46%
Arbitraggio
20
40% / 20%
In ritardo
32
22%
Gratuito
8
Sviluppatore 8
Valutazioni
(80)
Progetti
117
67%
Arbitraggio
16
25% / 13%
In ritardo
12
10%
Gratuito
Pubblicati: 2 codici

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 3 giorno(i)