Работа завершена
Время выполнения 1 день
Отзыв от заказчика
Great work, thanks.
Техническое задание
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.
Откликнулись
1
Оценка
Проекты
789
71%
Арбитраж
9
33%
/
33%
Просрочено
22
3%
Свободен
Опубликовал: 8 примеров
2
Оценка
Проекты
127
41%
Арбитраж
3
33%
/
67%
Просрочено
0
Свободен
3
Оценка
Проекты
121
25%
Арбитраж
5
20%
/
60%
Просрочено
17
14%
Свободен
4
Оценка
Проекты
185
30%
Арбитраж
77
9%
/
73%
Просрочено
77
42%
Свободен
5
Оценка
Проекты
81
38%
Арбитраж
1
0%
/
0%
Просрочено
31
38%
Свободен
Информация о проекте
Бюджет
15 - 20 USD
Сроки выполнения
от 1 до 3 дн.