Trading History Balance

MQL4 Integração

Trabalho concluído

Tempo de execução 3 dias
Comentário do cliente
Legend! Very helpful and professional, willing to go an extra mile to make customer understand his work. Thank you.
Comentário do desenvolvedor
Excellent Client , will work with again

Termos de Referência

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?

Respondido

1
Desenvolvedor 1
Classificação
(590)
Projetos
789
71%
Arbitragem
9
33% / 33%
Expirado
22
3%
Livre
Publicou: 8 códigos
2
Desenvolvedor 2
Classificação
(97)
Projetos
121
25%
Arbitragem
5
20% / 60%
Expirado
17
14%
Livre
3
Desenvolvedor 3
Classificação
(453)
Projetos
566
26%
Arbitragem
24
42% / 38%
Expirado
85
15%
Livre
Publicou: 6 códigos
4
Desenvolvedor 4
Classificação
(258)
Projetos
396
28%
Arbitragem
70
19% / 49%
Expirado
121
31%
Livre
5
Desenvolvedor 5
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
6
Desenvolvedor 6
Classificação
(130)
Projetos
210
40%
Arbitragem
90
20% / 43%
Expirado
85
40%
Livre
7
Desenvolvedor 7
Classificação
(64)
Projetos
145
46%
Arbitragem
21
38% / 24%
Expirado
32
22%
Livre
8
Desenvolvedor 8
Classificação
(80)
Projetos
117
67%
Arbitragem
16
25% / 13%
Expirado
12
10%
Livre
Publicou: 2 códigos

Informações sobre o projeto

Orçamento
30+ USD
Prazo
de 1 para 3 dias