$npx -y skills add SKE-Labs/agent-trading-skills --skill leverage-managementCalculate effective leverage, margin, stress loss, and venue-specific liquidation state. Use when sizing derivatives or managing collateral, cross/isolated margin, funding, fees, and forced-liquidation risk.
| 1 | # Leverage Management |
| 2 | |
| 3 | Leverage amplifies both gains and losses -- use it responsibly. |
| 4 | |
| 5 | ## Leverage Basics |
| 6 | |
| 7 | | Leverage | $1,000 Controls | Exposure | |
| 8 | | -------- | ---------------- | -------- | |
| 9 | | 1x | $1,000 | None | |
| 10 | | 5x | $5,000 | 5x | |
| 11 | | 10x | $10,000 | 10x | |
| 12 | | 100x | $100,000 | 100x | |
| 13 | |
| 14 | There is no universally safe leverage by asset label or trading style. Faster intended exits do not remove gap, latency, liquidation, or venue risk. Derive exposure from maximum stress loss, maintenance margin, liquidity, and the portfolio mandate. |
| 15 | |
| 16 | ## Key Formulas |
| 17 | |
| 18 | **Effective Leverage**: `Position Size / Account Equity` |
| 19 | |
| 20 | Example: $50,000 position on $10,000 equity = 5x effective leverage. |
| 21 | |
| 22 | **Position sizing with leverage**: `Position Size = (Account x Risk%) / Stop Distance%`. Leverage does not change how much you risk -- it changes how much capital you tie up. |
| 23 | |
| 24 | For a linear position before costs, account return is approximately `effective leverage × asset return`. Add contract multiplier, inverse/quanto payoff, fees, funding/interest, FX, collateral haircuts, and nonlinear option exposure as applicable. |
| 25 | |
| 26 | ## Liquidation Awareness |
| 27 | |
| 28 | Obtain the venue's actual calculator and rules: initial/maintenance tiers, mark or index price, liquidation fees, isolated versus cross margin, collateral valuation, open orders, and other positions. Record the estimated liquidation price and a stressed value after fee/funding/volatility changes. A stop can gap or fail before liquidation. |
| 29 | |
| 30 | ## Workflow |
| 31 | |
| 32 | 1. **Assess volatility** of the asset being traded |
| 33 | 2. **Set exposure** from mandate loss limits and shocked volatility/liquidity |
| 34 | 3. **Calculate effective leverage** -- position size / equity |
| 35 | 4. **Verify liquidation state** with the venue-specific formula and cross-position effects |
| 36 | 5. **Maintain the mandate's margin buffer** under mark-price and collateral stresses |
| 37 | 6. **Reduce** leverage in volatile conditions or after losses |
| 38 | |
| 39 | ## Evidence and Validation |
| 40 | |
| 41 | - Treat the setup as a testable hypothesis, not a prediction. Define thresholds, entry, invalidation, and exit before evaluating outcomes. |
| 42 | - Calibrate on the same instrument, venue, session, and timeframe. Use closed candles and a held-out or walk-forward sample; record every variant tried. |
| 43 | - Include spread, fees, slippage, borrow or funding, partial fills, and latency. Reject the setup when net expectancy is not positive or depends on one narrow parameter. |
| 44 | - Return observed inputs, missing data, cost assumptions, entry, invalidation, exit, and a valid, watch, or no-trade status. |
| 45 | - Research basis: The [SEC margin bulletin](https://www.investor.gov/introduction-investing/general-resources/news-alerts/alerts-bulletins/investor-bulletins-29) and [CFTC crypto advisory](https://www.cftc.gov/LearnAndProtect/AdvisoriesAndArticles/understand_risks_of_virtual_currency.html) explain that leverage amplifies losses and can require additional margin or forced closure. |
| 46 | |
| 47 | ## Key Rules |
| 48 | |
| 49 | - Never confuse platform maximum leverage with an acceptable exposure. |
| 50 | - Calculate effective leverage, stress loss, and venue-specific liquidation state before entry and after material moves. |
| 51 | - Include gap, mark/index divergence, funding, interest, fee, collateral, and forced-liquidation scenarios. |
| 52 | - Reduce exposure or add collateral when the approved margin buffer fails; cross margin can spread losses. |
| 53 | - Position size determines risk; selecting a low leverage setting alone does not. |
| 54 | |
| 55 | ## Related Skills |
| 56 | |
| 57 | - **position-sizing** -- leverage changes capital allocation but not risk amount |
| 58 | - **stop-loss-strategies** -- stops must be set before liquidation price |