Job finished
Execution time 1 hour
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Feedback from customer
Gerne wieder.
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Feedback from employee
Toller Kunde. Danke für Ihre Bestellung
Specification
Hi, da ich mit der Berechnung der Lot-Größe nicht zurecht komme, benötige ich eine Funktion, die in etwa so funktionieren:
void OnTick(){ double risk_percent = 10; // vom Account double SL_percent = 5; // von risk_percent int LIMIT_pips = 50; bool b = false; if(singal == "BUY" or signal == "SELL"){ b = openTrade(symbol, signal, risk_percent, SL_percent, LIMIT_pips); } } bool openTrade(string symbol, string signal, double risk_percent, double SL_percent, int LIMIT_pips){ ... if (signal == "BUY"){ ... if(!trade.BuyLimit(...)){ ... } }else if (signal == "SELL"){ ... if(!trade.SellLimit(...)){ ... } } }
Die Funktion
openTrade()
muss funktionieren bei Devisen, Aktien, Indexe, CFDs, Rohstoffe, Kalkulation: FOREX und CFD-Hebel.
Acoount-Währung: EUR
Responded
1
Rating
Projects
498
33%
Arbitration
25
40%
/
48%
Overdue
7
1%
Busy
2
Rating
Projects
632
26%
Arbitration
89
73%
/
13%
Overdue
12
2%
Free
3
Rating
Projects
21
5%
Arbitration
1
0%
/
0%
Overdue
7
33%
Free
4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Rating
Projects
404
38%
Arbitration
83
41%
/
19%
Overdue
70
17%
Loaded
Project information
Budget
30 - 50 USD
VAT (19%):
5.7
- 9.5
USD
Total:
35.7
- 59.5
USD
For the developer
27
- 45
USD
Deadline
to 10 day(s)