Auftrag beendet
Ausführungszeit 1 Tag
Bewertung des Kunden
Great work, thanks.
Spezifikation
I need the following function to complete:
double GetMaxLotSize(int cmd, double sl, double risk_margin = 1.0, string symbol = NULL)
Arguments are:
- cmd: Command such as OP_BUY or OP_SELL.
- sl: Stop loss to calculate the lot size for.
- risk_margin: Account margin to risk (in %), e.g. Money = AccountBalance() / 100 * risk_margin (e.g. 1.0%)
- symbol: If NULL, means current.
The output:
- Maximum safe lot size value to use where given SL won't exceed the percentage of risk margin amount.
This should work similar as GetMaxStopLoss() which calculates the maximum SL for given lot size, but GetMaxLotSize should work other way round.
The code should be compatible with MQL4 and MQL5.
Bewerbungen
1
Bewertung
Projekte
789
71%
Schlichtung
9
33%
/
33%
Frist nicht eingehalten
22
3%
Frei
Veröffentlicht: 8 Beispiele
2
Bewertung
Projekte
127
41%
Schlichtung
3
33%
/
67%
Frist nicht eingehalten
0
Frei
3
Bewertung
Projekte
121
25%
Schlichtung
5
20%
/
60%
Frist nicht eingehalten
17
14%
Frei
4
Bewertung
Projekte
185
30%
Schlichtung
77
9%
/
73%
Frist nicht eingehalten
77
42%
Frei
5
Bewertung
Projekte
81
38%
Schlichtung
1
0%
/
0%
Frist nicht eingehalten
31
38%
Frei
Projektdetails
Budget
15 - 20 USD
Ausführungsfristen
von 1 bis 3 Tag(e)