Many lot size calculators hardcode pip value assumptions that break on gold, indices…

MQL5 Algo Trading, @mql5dev

Открыть в Telegram
#4242Фото

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
Просмотры13 306+32%к среднему
Пересылки7
Реакции5
Комментарии—

Рост просмотров

Часов после публикации

Показать таблицей
Часов после публикацииПросмотры
0 ч0
1 ч1 121
15 ч8 107
33 ч13 306
  1. Через 1 час1 121
  2. Всего сейчас13 306

Ещё посты канала MQL5 Algo Trading

  1. 01
    Просмотры16,6 тыс.
    Пересылки9
    Реакции—
    Комментарии—
  2. 02
    Просмотры12,5 тыс.
    Пересылки5
    Реакции34
    Комментарии—
  3. 03
    Просмотры12 тыс.
    Пересылки6
    Реакции40
    Комментарии—
  4. 04
    Просмотры11,9 тыс.
    Пересылки4
    Реакции16
    Комментарии—
  5. 05
    Просмотры11,5 тыс.
    Пересылки4
    Реакции27
    Комментарии—

Все посты канала MQL5 Algo Trading