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
(87)
Projects
107
37%
Arbitration
8
88% / 0%
Overdue
0
Free
2
Developer 2
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 75%
Overdue
22
18%
Free
3
Developer 3
Rating
(10)
Projects
25
28%
Arbitration
1
0% / 0%
Overdue
1
4%
Working
4
Developer 4
Rating
(156)
Projects
170
34%
Arbitration
6
50% / 50%
Overdue
2
1%
Working
5
Developer 5
Rating
(55)
Projects
70
33%
Arbitration
0
Overdue
3
4%
Working
6
Developer 6
Rating
(22)
Projects
28
11%
Arbitration
6
33% / 50%
Overdue
4
14%
Working
7
Developer 7
Rating
(234)
Projects
415
34%
Arbitration
52
37% / 40%
Overdue
153
37%
Loaded
8
Developer 8
Rating
(62)
Projects
84
26%
Arbitration
22
23% / 50%
Overdue
23
27%
Working
9
Developer 9
Rating
(14)
Projects
22
23%
Arbitration
7
43% / 29%
Overdue
3
14%
Loaded
10
Developer 10
Rating
(10)
Projects
13
31%
Arbitration
2
50% / 0%
Overdue
1
8%
Working
11
Developer 11
Rating
(254)
Projects
311
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 2 day(s)