Skip to main content (press enter to focus)

Capital at risk -- demo environment only.

This public experience streams signed, sandboxed market data for illustrative purposes. No live trading or performance guarantees.

Risk Management
Mar 10, 2025
6 min read

Risk-First Approach to Algorithmic Trading

Why we put risk management at the core of our trading system, and how it protects capital in volatile crypto markets.

A
Abduxoliq Ashuraliyev
Research Team Lead

Risk-First Approach to Algorithmic Trading

Why Risk Management Comes First

In algorithmic trading, the difference between success and catastrophic failure often comes down to one thing: risk management. You can have the best predictive models in the world, but without proper risk controls, a single bad streak can wipe out months of gains.

The Kelly Criterion: Mathematical Position Sizing

At the heart of our risk management system is the Kelly Criterion, a mathematical formula that determines optimal position sizing:

f* = (p × b - q) / b

Where:

  • p = probability of winning (win rate)
  • q = probability of losing (1 - p)
  • b = ratio of win to loss (usually 1 for symmetric payoffs)

Practical Example

Let's say we have:

  • $10,000 account
  • 55% win rate (p = 0.55)
  • 70% signal confidence
  • 2% market volatility

Full Kelly suggests 10% of capital - but this is considered aggressive.

We use Fractional Kelly (0.25), which gives us:

  • Base size: 2.5% of capital = $250
  • Volatility adjustment: ×1.5 (moderate volatility)
  • Confidence scaling: ×0.7 (70% confidence)
  • Final position: $262.50 (2.625% of account)

This conservative approach:

  • Reduces returns by 10-15%
  • But significantly improves risk-adjusted metrics
  • Maintains max drawdown under 15% in stress tests

Multi-Layer Risk Controls

1. Dynamic Leverage Adjustment

Our system adjusts leverage based on:

  • Market Regime: Lower leverage in high volatility periods
  • Drawdown State: Reduced leverage when underwater
  • Correlation: Lower leverage when positions are highly correlated

Maximum leverage limits:

  • Crypto: 3x maximum
  • Stocks: 2x maximum
  • Options: Based on Greeks exposure

2. Value-at-Risk (VaR) Monitoring

We calculate VaR at 95% and 99% confidence levels daily:

python
def calculate_var(returns, confidence=0.95): """Calculate historical VaR""" return np.percentile(returns, (1 - confidence) * 100)

If VaR exceeds acceptable thresholds:

  • Alert triggers for manual review
  • Automatic position reduction
  • Strategy reallocation

3. Drawdown Throttling

When unrealized P&L drops below thresholds:

Drawdown LevelAction
10%Warning alert
15%50% position reduction
20%100% position reduction (flatten)
25%Kill switch activated

4. Circuit Breakers

The kill switch halts ALL trading when:

  • Daily loss exceeds 5% of capital
  • Unusual market conditions detected (flash crash, exchange outage)
  • System health checks fail
  • Execution quality degrades significantly

Transaction Cost Reality

One of the biggest risk factors traders ignore: transaction costs.

Our comprehensive cost modeling includes:

  • Exchange Fees: 0.1-0.3% for crypto (maker/taker)
  • Slippage: 0.05-0.2% based on order size vs volume
  • Spread: Bid-ask spread costs
  • Market Impact: Price impact for larger positions

Total costs typically range from 0.1-0.5% per round trip.

This might seem small, but for a strategy making 100 trades/month:

  • Total costs: 10-50% of capital annually
  • A 60% gross return becomes 45-50% net return

Portfolio-Level Risk Management

Beyond individual trades, we manage portfolio-level risks:

Concentration Limits

  • Max 10-20% per asset
  • Sector exposure limits
  • Geographic diversification

Correlation Monitoring

We track correlation between:

  • Different strategies
  • Different assets
  • Market factors (VIX, Bitcoin dominance, etc.)

High correlation = reduced diversification benefit

Greeks Management (Options)

For options strategies, we monitor:

  • Delta: Directional exposure
  • Gamma: Delta sensitivity
  • Vega: Volatility exposure
  • Theta: Time decay

The Cost of Safety

Our risk-first approach has trade-offs:

Advantages:

  • Consistent returns with lower volatility
  • Survivability through market crashes
  • Sleep-at-night peace of mind
  • Regulatory compliance ready

Disadvantages:

  • Lower maximum returns vs aggressive strategies
  • Miss some explosive opportunities
  • More complex system architecture
  • Higher computational overhead

Real-World Performance Impact

Comparing aggressive vs conservative risk management:

MetricAggressiveConservative (Ours)
Max Annual Return150%85%
Max Drawdown45%24%
Sharpe Ratio1.12.3
Survival Rate60%95%

The conservative approach wins over multi-year periods because staying in the game matters more than maximizing short-term gains.

Lessons Learned

After extensive testing and live trading:

  1. Position sizing matters more than entry timing
  2. Drawdowns are inevitable - plan for them
  3. Transaction costs kill high-frequency strategies
  4. Diversification is free lunch - take it
  5. Risk management is not optional - it's foundational

Conclusion

In trading, you don't get rewarded for taking maximum risk. You get rewarded for taking optimal risk - the sweet spot where you maximize risk-adjusted returns while ensuring long-term survival.

Our risk-first approach may not be flashy, but it's built to last.


Want to see our risk management in action? Try our live demo or read about our system architecture.

Tagged:
Risk ManagementKelly CriterionPosition Sizing

Related Articles