Lotsize Calculation

MQL4 Design

Specification

I would like MT44 code that calculates lot size for all instruments; Forex, Indices (e.g. GER0, US30, FTSE etc) and Crypto.


Inputs; 

Symbol name - can be taken as Symbol()

Stop Loss in Pips

Risk Percentage of Account Balance


I would also like the code to check that the margin requirements are ok.

Responded

1
Developer 1
Rating
(82)
Projects
101
35%
Arbitration
8
88% / 0%
Overdue
0
Free
2
Developer 2
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 67%
Overdue
22
18%
Working
3
Developer 3
Rating
(8)
Projects
23
30%
Arbitration
2
0% / 0%
Overdue
1
4%
Loaded
4
Developer 4
Rating
(152)
Projects
166
34%
Arbitration
6
50% / 50%
Overdue
2
1%
Working
5
Developer 5
Rating
(48)
Projects
61
33%
Arbitration
0
Overdue
3
5%
Working
6
Developer 6
Rating
(20)
Projects
24
8%
Arbitration
6
17% / 17%
Overdue
3
13%
Busy
7
Developer 7
Rating
(232)
Projects
412
34%
Arbitration
53
36% / 40%
Overdue
151
37%
Loaded
8
Developer 8
Rating
(62)
Projects
84
26%
Arbitration
22
23% / 50%
Overdue
23
27%
Working
9
Developer 9
Rating
(13)
Projects
21
19%
Arbitration
7
43% / 29%
Overdue
3
14%
Working
10
Developer 10
Rating
(10)
Projects
13
31%
Arbitration
2
50% / 0%
Overdue
1
8%
Working
11
Developer 11
Rating
(252)
Projects
307
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free

Project information

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

Customer

(22)
Placed orders25
Arbitrage count1