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 天