# DCA Futures Bot Calculator > Anti-liquidation calculator for DCA (Dollar-Cost Averaging) trading bots on cryptocurrency futures exchanges. Calculates safety order progressions, liquidation prices, and minimum wallet reserves for leveraged trading. ## Usage The calculator is available as a web app at https://dcacalc.com/ All inputs can be set via URL query parameters: https://dcacalc.com/?coin=BTC&long=1&wallet=5000&bo=20&so=15&count=6&leverage=125&dev=1.4&vol=2&step=1.4&dump=5 ### Parameters - `coin`: Trading pair base currency (e.g. BTC, ETH, SOL). Paired with USDT. - `long`: Direction. Accepts: `1`, `true`, `long`, `yes` for Long. Accepts: `0`, `false`, `short`, `no` for Short. - `wallet`: Wallet balance in USDT. - `bo`: Base order size in USDT (margin cost, NOT leveraged position size). With leverage=125 and bo=20, margin is 20 USDT but position size is 2,500 USDT. - `so`: Safety order size in USDT (margin cost, NOT leveraged position size). Same as bo — this is what you pay from wallet, not the total position. - `price`: Entry price in USDT. Optional — defaults to current market price if omitted. - `count`: Number of safety orders (0-100). - `leverage`: Leverage multiplier (1 to coin's max, e.g. 125 for BTC). - `dev`: Price deviation percentage per safety order step (0.2-20). - `vol`: Volume scale — multiplier for each subsequent safety order size (0.1-10). - `step`: Step scale — multiplier for deviation growth between safety orders (0.1-10). - `dump`: Additional price dump/pump percentage after last safety order (0-99). ### JSON Output Append `&format=json` to any URL to get machine-readable JSON output instead of HTML: https://dcacalc.com/?coin=BTC&long=1&wallet=5000&bo=20&so=15&count=6&leverage=125&dev=1.4&vol=2&step=1.4&dump=5&format=json ### Tool Schema An OpenAPI-style tool schema is available at: https://dcacalc.com/tool.json ### MCP Server An MCP (Model Context Protocol) server is available for direct tool integration: ```bash npx dcacalc-mcp ``` ## Key Concepts - **Base Order (BO)**: The initial order that opens the position. The `bo` value is the margin cost in USDT (wallet deduction), not the leveraged position size. Actual position size = bo × leverage. - **Safety Order (SO)**: Additional orders placed at lower (long) or higher (short) prices to average the entry. Like BO, the `so` value is the margin cost. First SO uses this value; subsequent SOs are scaled by the volume scale multiplier. - **Deviation**: How far price must move from entry before each safety order triggers. - **Volume Scale**: Multiplier that increases each subsequent safety order's size. - **Step Scale**: Multiplier that increases the deviation gap between safety orders. - **Liquidation Price**: The price at which the exchange force-closes the position. - **Maintenance Margin Rate (MMR)**: Exchange-defined margin requirement, varies by coin's max leverage tier. - **Total Reserve**: Minimum recommended wallet balance to avoid liquidation through all safety orders plus additional dump. ## Source - Website: https://dcacalc.com/ - Repository: https://github.com/radimklaska/dcacalc.com