Many lot size calculators hardcode pip value assumptions that break on gold, indices, JPY crosses, and non-USD account currencies. A sizing routine should use the tick and volume properties the trade server publishes per symbol, then compute risk from those inputs. CalcLots() takes risk in account currency plus entry and stop prices, then returns the trade volume and the actual risk after broker constraints. Volume is always rounded down to the volume step. If requested risk is below the minimum lot, the minimum is returned, clamped_min is set, and the higher real risk is reported. The function is direction-agnostic and also provides stop distance in points and point value per 1.00 lot. The sizing math is isolated in Calc.mqh with no terminal state. It consumes a SymbolSpec struct and can be tested offline. SpecFromSymbol() is the only live-data bridge and... 👉 Read | NeuroBook | @mql5dev
Открыть в Telegram
Many lot size calculators hardcode pip value assumptions that break on gold, indices…
Просмотры13 306+32%к среднему
Пересылки7
Реакции5
Комментарии—
Рост просмотров
Часов после публикации
Показать таблицей
| Часов после публикации | Просмотры |
|---|---|
| 0 ч | 0 |
| 1 ч | 1 121 |
| 15 ч | 8 107 |
| 33 ч | 13 306 |
- Через 1 час1 121
- Всего сейчас13 306
Ещё посты канала MQL5 Algo Trading
- 01Просмотры16,6 тыс.Пересылки9Реакции—Комментарии—
- 02Просмотры12,5 тыс.Пересылки5Реакции34Комментарии—
- 03Просмотры12 тыс.Пересылки6Реакции40Комментарии—
- 04Просмотры11,9 тыс.Пересылки4Реакции16Комментарии—
- 05Просмотры11,5 тыс.Пересылки4Реакции27Комментарии—