Navigation

TradeFuel

Safety Order Configuration

An in-depth guide to configuring safety orders — how they protect against drawdowns, how to calculate capital requirements, and how to tune them for different risk appetites.

Safety orders are the heart of the DCA strategy. They are the additional buy orders TradeFuel places when price drops below your entry, reducing your average cost and making it easier to reach take profit on a recovery. Configuring them correctly is the single most impactful tuning decision you will make. Too tight and they fire on every small wiggle; too wide and price may not recover enough to reach your take profit.

What Safety Orders Do

When the price of a trading pair drops by your configured deviation percentage from the price of the most recently filled order, TradeFuel places the next safety order. Each safety order:

  • Buys additional quantity of the base asset at the current (lower) price
  • Lowers your average entry price across the entire position
  • Moves your take profit sell target closer to the current price
  • Increases your total position size and capital at risk

The cumulative effect is that a smaller price recovery is needed to close the trade at your target profit percentage, compared to waiting for a full recovery to your original entry price. This is the protective mechanism that makes DCA viable in volatile markets.


Calculating Capital Requirements

Before deploying a configuration, always calculate the maximum capital that could be committed to a single trade if every safety order fires. The formula depends on your volume scale setting.

Flat Volume Scale (scale = 1.0)

All safety orders are the same size. Total capital = base order + (SO size × max SOs).

Example: 50 USDT base + 100 USDT SO × 5 max SOs = 550 USDT maximum per trade.

Increasing Volume Scale (scale > 1.0)

Each SO is larger than the previous. Total capital = base order + SO1 + (SO1 × scale) + (SO1 × scale²) + ... This is a geometric series. With SO1 = 100 USDT and scale = 1.5:

Safety OrderSize (USDT)Cumulative Total
Base Order5050
SO1100150
SO2150300
SO3225525
SO4337.50862.50
SO5506.251,368.75
Ensure you have enough free capital in your exchange account to cover all safety orders for all active trades simultaneously. If a safety order cannot be filled due to insufficient balance, TradeFuel will skip it, leaving you with a higher average entry and a harder path to take profit.

SO Placement by Risk Appetite

The number of safety orders you configure should match both your available capital and your tolerance for holding an underwater position during a drawdown.

Conservative (2–3 Safety Orders)

  • Lower total capital requirement per trade
  • Suitable for tighter budgets or when running many pairs simultaneously
  • Trade closes sooner (less averaging down) — requires stronger recovery
  • Best paired with wider deviation steps (3%+) to avoid triggering on noise

Moderate (4–6 Safety Orders)

  • Balanced capital usage and drawdown coverage
  • Covers typical corrections of 10–20% effectively
  • The most common configuration for mid-cap pairs
  • Step scale of 1.1–1.3 recommended to spread orders sensibly

Aggressive (7+ Safety Orders)

  • High capital requirement — ensure you have the funds before enabling
  • Can survive deep drawdowns of 30–50%+
  • Lower per-trade TP % feasible since average entry drops significantly
  • Best suited for experienced traders on high-conviction, established pairs

How Step Scale Affects SO Distribution

The safety_order_step_scale multiplier controls how the gap between each safety order grows. A scale of 1.0 produces equally-spaced orders throughout the drawdown. A scale above 1.0 places early orders close together and later orders further apart.

This is desirable behavior: shallow dips are common and you want to average in quickly, while extremely deep drops are rarer and deserve wider spacing to avoid depleting all your safety orders in a single extended move.

Example SO Placement Table

The table below shows where safety orders land for a BTC/USDT trade opening at $50,000 with a 2.5% base deviation and a 1.2 step scale. Deviations compound from each previous order price.

SO #Step DeviationTrigger PriceCumulative Drop from Base
Base Order$50,0000%
SO12.5%$48,750−2.5%
SO23.0%$47,288−5.4%
SO33.6%$45,582−8.8%
SO44.3%$43,618−12.8%
SO55.2%$41,355−17.3%

Notice that SO5 sits 17.3% below the base order price. A drawdown of that magnitude is significant but not unusual for crypto. Having capital deployed at $41,355 means you benefit from a recovery well before BTC returns to $50,000.


How Volume Scale Affects Averaging Speed

A higher safety_order_volume_scale means later safety orders are much larger, pulling your average entry down more aggressively on deep drops. This sounds appealing, but comes with important tradeoffs:

  • Scale 1.0 (flat): Each SO same size. Predictable capital usage. Average entry drops slowly. Requires deeper recovery to reach TP.
  • Scale 1.2–1.5 (moderate growth): A good balance. Later SOs are meaningfully larger but total capital stays manageable across a 5–6 SO config.
  • Scale 2.0+ (aggressive growth): Capital requirements grow very rapidly. The final SO may be many times larger than all previous orders combined. Can be extremely effective on recoveries but devastating if capital runs out mid-drawdown.

Using Max Safety Orders as a Capital Cap

Think of max_safety_orders as your circuit breaker. No matter how far price falls, TradeFuel will not place more orders than this limit. The position stays open — potentially deeply underwater — but no further capital is committed.

Set this based on realistic capital budgeting, not wishful thinking. If your calculation shows that 6 safety orders would require 2,000 USDT per trade and you plan to run 5 pairs simultaneously, you need 10,000 USDT available. If that exceeds your account size, lower the max SOs or reduce the volume scale until the numbers work.

Practical Tips

  • Avoid setting steps too tight: On most pairs, 1.5% daily moves are routine. A 1% deviation step means safety orders fire on everyday noise, not real corrections. Start at 2.0%–3.0% minimum.
  • Avoid setting steps too wide: If your deviation is 10% between each SO, price might only drop 8% total and never recover to your take profit if no SOs fired to lower the average. Match your step spacing to the pair's typical volatility.
  • Test in paper mode first: Run your configuration in paper trading for a few days before going live. Watch whether SOs fire at sensible moments or on trivial price wiggles.
  • Fewer pairs, more SOs: It is often better to trade fewer pairs with more safety orders each than to spread thin capital across many pairs with almost no safety order depth.