# Risk Management

## Your Trading Safety Net

Risk management is the **single most important element** of successful automated trading.\
BananaEA includes **institution-grade risk tools** that protect your capital while letting your edge compound over time.

> 🚀 **Enhanced (v4.x)**\
> Advanced risk engine built on €83 K+ verified testing data with < 9 % drawdown.\
> Every calculation statistically validated and integrated with Professional Optimization Sets.

> 🆕 **Latest Improvements (v4.4.x):**
>
> * **v4.4.6**: Extended 6-month license system (83% less maintenance)
> * **v4.4.4**: Strategy Tester bypass for clean backtest validation
> * **v4.4.3**: Enhanced swing point detection for accurate entry timing
> * **v4.4.0-v4.4.2**: Professional interface and control enhancements

***

## 🎯 Core Risk Management Principles

### The Golden Rules

1. **Never risk more than you can afford to lose.**
2. **Base position size on account balance, not emotion.**
3. **Always use stop losses — BananaEA does this automatically.**
4. **Verify broker compatibility**, especially with prop firms.
5. **Start conservative**, then scale as experience grows.

***

## ⚠️ Broker Compatibility & Safety

Before trading, confirm that your broker’s specifications (lot size, margin, contract size) are correctly interpreted by the EA.

### Broker Risk Levels

🟢 **Low-Risk – Standard Brokers**

* FTMO, IC Markets, OANDA, and most tier-1 brokers
* Standard contract specs, fully tested

🟡 **Medium-Risk – Verify Compatibility**

* Regional brokers or smaller prop firms
* Run validation on demo before live

🔴 **High-Risk – Use Caution**

* FundedNext and brokers with modified contracts
* Use v4.3 or later
* Test with **micro-lots first**

### Safety Checklist

* [ ] Running BananaEA v4.3 or newer
* [ ] Downloaded latest optimization sets from [iTradeAims.net](https://my.itradeaims.net/latest-optimization-sets/)
* [ ] Verified lot-size calculations with micro-lots
* [ ] Risk amounts match expectations
* [ ] Debug logging enabled for first few trades
* [ ] Broker validation test completed

***

## 💰 Risk Methods Explained

BananaEA supports **three professional risk models**.

### 1️⃣ Risk Percentage (`RISK_PERCENT`) — **Recommended**

**How it works:** risks a fixed % of account equity per trade.

Example:\
Balance $10 000 → Risk 2 % → $200 max loss → EA auto-calculates lot size.

**Advantages** ✅ Automatically scales with equity\
✅ Professional standard\
✅ Consistent exposure & compounding\
✅ Simple and adaptive

**Suggested Settings**

* Beginners 0.5 – 1 %
* Experienced 1 – 2 %
* Professional 2 – 3 %
* Maximum 5 % (only for experts)

***

### 2️⃣ Fixed Lot (`RISK_FIXED_LOT`)

Uses the same lot size for every trade.

**Advantages** ✅ Simple & predictable\
✅ Good for early testing

**Disadvantages** ❌ Doesn’t scale with balance\
❌ Risk varies as account changes

**Guidelines**

| Account Type       | Example Lot |
| ------------------ | ----------- |
| Micro ($500 – 2 K) | 0.01        |
| Mini ($2 K – 10 K) | 0.10        |
| Standard ($10 K +) | 1.00        |

***

### 3️⃣ Fixed Amount (`RISK_FIXED_AMOUNT`)

Risks the same currency amount each trade.

**Advantages** ✅ Consistent $ risk\
✅ Easy budgeting

**Guidelines**

| Style        | Typical Risk |
| ------------ | ------------ |
| Conservative | $50 – 100    |
| Moderate     | $100 – 250   |
| Aggressive   | $250 – 500   |

***

## 📊 Risk Calculator

| Account Size | 1 % Risk | 2 % Risk | 3 % Risk |
| ------------ | -------- | -------- | -------- |
| $1 000       | $10      | $20      | $30      |
| $5 000       | $50      | $100     | $150     |
| $10 000      | $100     | $200     | $300     |
| $25 000      | $250     | $500     | $750     |
| $50 000      | $500     | $1 000   | $1 500   |

*Approximate monthly exposure (20 trades):*\
1 % ≈ 20 % of account · 2 % ≈ 40 % · 3 % ≈ 60 %

***

## 📉 Drawdown Management

### Understanding Drawdown

A **drawdown** is a temporary decline from equity peak to trough.\
Example: €12 000 → €10 800 = 10 % drawdown.

### Historical Optimization Ranges

| Configuration   | Max DD  | Avg DD  | Recovery  | Performance    |
| --------------- | ------- | ------- | --------- | -------------- |
| Low Drawdown    | < 15 %  | 8–12 %  | 2–4 weeks | €75 K + steady |
| Balanced Growth | 16–18 % | 10–14 % | 3–5 weeks | €80–83 K range |
| Maximum Profit  | 18–20 % | 12–16 % | 4–6 weeks | €83 K +        |
| DAX Specialist  | 16–20 % | 12–16 % | 3–5 weeks | DAX optimized  |

### Survival Rules

1. Expect drawdowns — they’re normal.
2. Don’t panic — emotion kills strategy.
3. Stick to plan — consistency wins.
4. Lower risk if stress rises.
5. Keep trading — recovery requires activity.

***

## ⚙️ Advanced Risk Controls

### Maximum Trades (`MaxOpenTrades`)

Limits simultaneous positions.

* **Conservative:** 1–2 trades
* **Aggressive:** 3–5 trades

### Multiple Trades (`AllowMultipleTrades`)

* **False (Safer):** one direction only
* **True (Aggressive):** buy + sell allowed

### Spread Protection (`MaxSpread`)

Avoids high-spread conditions.

* Majors 2–4 pips
* Minors 4–8 pips
* Exotics 8–15 pips

***

## 📏 Position Sizing Formula

```
Position Size = (Account Balance × Risk %) ÷ (Stop Loss Value per lot)
```
