Добавление функции подсчёта общего лота

MQL4 Indicators Experts

Specification

Есть простенький информативный индикатор. В нём есть функции подсчёта лотности buy-ордеров и sell-ордеров. Нужно дописать функцию подсчёта общей лотности(NetLots). SellLots (со знаком "-")  + BuyLots  (со знаком "+") = NetLots  (со знаком "+" или "-"). Например: В рынке 2 ордера Buy по 1 лоту, 1 ордер Buy 0.5 лота и 5 ордеров Sell по 0.75 лота. Итого мы имеем:  SellLots (-3,75)  + BuyLots (2.5) = NetLots  (-1,25)

Files:

MQ4
Info.mq4
17.4 Kb

Responded

1
Developer 1
Rating
(175)
Projects
189
33%
Arbitration
5
60% / 20%
Overdue
3
2%
Free
Published: 3 codes
2
Developer 2
Rating
(340)
Projects
588
36%
Arbitration
31
45% / 3%
Overdue
16
3%
Free
Published: 13 codes
3
Developer 3
Rating
(34)
Projects
51
49%
Arbitration
3
0% / 67%
Overdue
3
6%
Free
4
Developer 4
Rating
(648)
Projects
876
48%
Arbitration
29
38% / 17%
Overdue
63
7%
Free
5
Developer 5
Rating
(28)
Projects
46
48%
Arbitration
2
50% / 50%
Overdue
0
Free
6
Developer 6
Rating
(281)
Projects
650
28%
Arbitration
112
19% / 62%
Overdue
318
49%
Free
7
Developer 7
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
8
Developer 8
Rating
(32)
Projects
48
71%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(174)
Projects
233
61%
Arbitration
3
33% / 33%
Overdue
6
3%
Free
Published: 1 code
10
Developer 10
Rating
(3)
Projects
4
25%
Arbitration
0
Overdue
2
50%
Free
Published: 3 codes
11
Developer 11
Rating
(54)
Projects
102
23%
Arbitration
12
25% / 17%
Overdue
13
13%
Free
12
Developer 12
Rating
(65)
Projects
117
24%
Arbitration
13
54% / 46%
Overdue
15
13%
Free
Published: 2 codes
13
Developer 13
Rating
(279)
Projects
341
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
14
Developer 14
Rating
(42)
Projects
112
56%
Arbitration
2
50% / 0%
Overdue
3
3%
Free
Published: 1 code
15
Developer 15
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(361)
Projects
630
72%
Arbitration
14
43% / 7%
Overdue
28
4%
Free
Published: 9 codes
17
Developer 17
Rating
(23)
Projects
53
9%
Arbitration
10
20% / 60%
Overdue
11
21%
Free
Published: 6 codes
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD
Deadline
from 1 to 2 day(s)