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%
空闲
2
开发者 2
等级
(97)
项目
121
25%
仲裁
5
20% / 60%
逾期
17
14%
空闲
3
开发者 3
等级
(439)
项目
545
25%
仲裁
21
38% / 38%
逾期
83
15%
空闲
4
开发者 4
等级
(258)
项目
395
28%
仲裁
69
19% / 49%
逾期
120
30%
空闲
5
开发者 5
等级
(563)
项目
932
47%
仲裁
302
59% / 25%
逾期
124
13%
已载入
6
开发者 6
等级
(130)
项目
210
40%
仲裁
90
20% / 43%
逾期
85
40%
空闲
7
开发者 7
等级
(62)
项目
140
46%
仲裁
19
42% / 16%
逾期
32
23%
空闲
8
开发者 8
等级
(80)
项目
117
67%
仲裁
16
25% / 13%
逾期
12
10%
空闲
相似订单
I am seeking a coder who has experience in converting an MT4 indicator & EA(.mq4 file, source code provided) to TradingView's Pine Script. The indicator should be identical to the original, with the same inputs and settings. Upon completion of the task, the coder will send me the Pine Script indicator & EA along with the full source code, and the project will remain confidential. This task should be straightforward

项目信息

预算
30+ USD
开发人员
27 USD
截止日期
 1  3 天