calculate_prop_firm_risk
Calculate precise CFD/Forex lot size from risk percent and stop distance, including ECN spread/commission costs and prop-firm daily/max drawdown lock checks.
Instructions
Calculate exact CFD/Forex lot size factoring ECN spread+commission friction and prop-firm daily/max drawdown auto-lock status ($0.01 USDC on Base).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Instrument symbol, e.g. XAUUSD, NAS100, BTCUSD, EURUSD | |
| riskPercent | Yes | Risk percentage per trade (e.g. 0.5 for 0.5%) | |
| currentEquityUsd | No | Current live account equity in USD | |
| accountBalanceUsd | Yes | Starting/reference prop-firm account balance in USD (e.g. 100000) | |
| stopLossPriceDistance | Yes | Stop-loss distance in raw price units (e.g. 4.5 on XAUUSD, 25 on NAS100) | |
| dailyDrawdownLimitPercent | No | Daily drawdown breach % (default 5) | |
| maxTotalDrawdownLimitPercent | No | Max total drawdown breach % (default 10) |