Function to read closed orders from history and calculate loss until first positive order

MQL4 专家 咨询

工作已完成

执行时间15 小时
客户反馈
Recommended!
员工反馈
Excellent customer! Very thanks!

指定

Function to read closed orders from history and calculate loss until first positive order.

For example (negative values in brackets),

1 order = 100, 2 = (100), 3 = (100). Total loss (200).

1 order = 50, 2 = (25), 3 = 25, 4 = (100), 5 = (50), 6 = (30). Total loss (180).

But.

I don't need to calculate loss for day etc. Just calculate backwards until first positive order and return result.

反馈

1
开发者 1
等级
(229)
项目
339
49%
仲裁
21
5% / 33%
逾期
24
7%
空闲
2
开发者 2
等级
(108)
项目
138
43%
仲裁
19
16% / 53%
逾期
20
14%
已载入
3
开发者 3
等级
(1130)
项目
1432
62%
仲裁
21
57% / 10%
逾期
43
3%
空闲
4
开发者 4
等级
(620)
项目
680
57%
仲裁
25
16% / 60%
逾期
228
34%
空闲

项目信息

预算
30+ USD
VAT (21%): 6.3 USD
总计: 36.3 USD
开发人员
27 USD