Trading History Balance

MQL4 통합

작업 종료됨

실행 시간 3 일
피고용인의 피드백
Excellent Client , will work with again
고객의 피드백
Legend! Very helpful and professional, willing to go an extra mile to make customer understand his work. Thank you.

명시

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?

응답함

1
개발자 1
등급
(590)
프로젝트
789
71%
중재
9
33% / 33%
기한 초과
22
3%
무료
게재됨: 8 코드
2
개발자 2
등급
(97)
프로젝트
121
25%
중재
5
20% / 60%
기한 초과
17
14%
무료
3
개발자 3
등급
(453)
프로젝트
566
26%
중재
24
42% / 38%
기한 초과
85
15%
무료
게재됨: 6 코드
4
개발자 4
등급
(258)
프로젝트
396
28%
중재
69
19% / 49%
기한 초과
121
31%
작업중
5
개발자 5
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
6
개발자 6
등급
(130)
프로젝트
210
40%
중재
90
20% / 43%
기한 초과
85
40%
무료
7
개발자 7
등급
(64)
프로젝트
144
46%
중재
20
40% / 20%
기한 초과
32
22%
무료
8
개발자 8
등급
(80)
프로젝트
117
67%
중재
16
25% / 13%
기한 초과
12
10%
무료
게재됨: 2 코드

프로젝트 정보

예산
30+ USD
기한
에서 1  3 일