# Troubleshooting

Having issues with BananaEA? This guide covers the most common problems and their solutions.\
Find your issue below and follow the step-by-step fixes.

***

## 🚨 Critical Issues (Fix Immediately)

### ⚠️ EA Not Trading **Improve win rate:**

* Use **tested presets** (don't free-hand everything).
* Ensure SL/TP ratios are aligned with your preset.
* Trade symbols/timeframes your preset was designed for.
* Avoid low-liquidity hours; use the session window. **Symptoms:** EA is attached but no trades are placed, no signals appear.

**Most common causes & fixes:**

1. **AutoTrading disabled**
   * **Fix:** Click **AutoTrading** in MT4 (must be **green**).
   * **Verify:** “Expert Advisors enabled” in Terminal → Experts tab.
2. **Incorrect symbol or timeframe**
   * **Fix:** Use a matching **optimization set** for your chart (e.g., DAX M5 with DAX M5 set).
   * **Download:** [Latest Optimization Sets](https://my.itradeaims.net/latest-optimization-sets/)
3. **Outside trading hours**
   * **Fix:** Check `UseTimeWindow`, `StartTradingHour`, `StopTradingHour`.
   * Example: DAX presets often trade **10:00–18:00** only.
4. **All signals disabled / no qualifying pattern**
   * **Fix:** Ensure at least one of `useBu1..3` / `useBe1..3` is **true**.
   * Note: In ranging markets, valid patterns may be rare.

***

### 🚨 Lot Size Calculation Issues (RISK!)

**Symptoms:** Positions much larger/smaller than expected; unusual risk exposure.

**Immediate actions:**

1. **Update BananaEA** to **v4.4.6 or later** (contains critical risk sizing fixes).
   * Verify version in **Experts** tab on attach.
2. **Validate broker specs** (contract size, digits, tick value).
   * Test on **demo** with micro-lots and confirm that risk math matches expectations.
3. **Check Risk Method & inputs**
   * **RISK\_PERCENT:** confirm `RiskPercent` (e.g., 1–2%).
   * **RISK\_FIXED\_LOT:** confirm `LotSize` (e.g., 0.01–0.10 to start).
   * **RISK\_FIXED\_AMOUNT:** confirm `RiskAmount` (e.g., $50–$250).

***

## ⚡ Quick Fixes (5-Minute Solutions)

### No Chart Arrows Appearing

**Problem:** EA trades (or scans) but no visual marks on chart.

**Fixes:**

1. **Signal source**

   ```ini
   SignalSourceType = INTERNAL_SIGNALS   // built-in patterns
   ```

   If `EXTERNAL_INDICATOR`, you must set `BananaIndicatorName` and have it in `/Indicators`.
2. **Verify pattern toggles**

   ```ini
   useBu1=true, useBu2=true, useBu3=true
   useBe1=true, useBe2=true, useBe3=true
   ```
3. **Enable debug** (temporary)

   ```ini
   ShowDebugLogs = true
   ```

   Check **Experts** tab for detection messages.

### Filter Alerts in Backtest Journal

**Problem:** Backtest journal shows filter alert messages even with `ShowDebugLogs = false`.

**✅ FIXED in latest version!** This was a major bug affecting backtest report cleanliness.

**Before fix:**

```
2025.11.29 10:23:15   [SIGNAL FILTER] Session window not active (10:23:15)
2025.11.29 10:24:08   [SIGNAL FILTER] MA trend filter not satisfied
2025.11.29 10:25:32   [SIGNAL FILTER] Daily drawdown control active
```

**After update:**

* Clean backtest reports with ZERO filter alert spam
* `ShowDebugLogs = false` now properly suppresses ALL debug messages
* Only trade execution results shown in journal

**If you still see filter alerts:**

* **Update to the latest version** - This bug is completely fixed
* Download latest version from customer portal
* Older versions had this issue

### Orders Not Executing

**Problem:** Signals appear but no trades open.

**Fixes:**

* **Insufficient margin:** reduce lot size / increase equity.
* **Spread too wide:** wait for normal spread or adjust `MaxSpread`.
* **Market closed / session off:** wait for open, confirm trading window.
* **Max trades reached:** compare `MaxOpenTrades` vs open positions.

### Backtest License Expired Warning

**Problem:** Backtest shows "License expired" or "Invalid license" warnings.

**✅ Extended License System:** 6-month licenses (83% less maintenance!)

**Current License:** `BananaBacktestLicense_202601.ex4`

* **Valid until:** June 30, 2026
* **Location:** `MT4/Libraries/` folder
* **83% fewer updates:** Only 2 license updates per year (vs 12 monthly)

**How to check license:**

1. Look in your `MT4/Libraries/` folder
2. File should be: `BananaBacktestLicense_202601.ex4` (or later)
3. If you have older monthly license (e.g., `202411.ex4`, `202412.ex4`), update to latest version

**When license expires:**

* Download new 6-month license from customer portal
* Copy to `MT4/Libraries/` folder
* Restart MT4
* EA will automatically detect new license

**Why 6-month licenses?**

* Drastically reduces update frequency
* Minimize disruption to your trading
* Automatic warning system (4 weeks, 2 weeks, 1 week, 3 days before expiry)

### Constant Order Modifications

**Problem:** SL updates every tick.

**Fixes:**

```ini
TrailMinimumMovement = 1.0   // avoid micro-trailing
UseTrailingStop      = false // disable trailing if not needed
```

***

## 🧠 Strategy Preset Issues

### Wrong Configuration for Market

**Problem:** Using a preset not designed for your symbol/timeframe.

**Action:** Load a matching preset or download a tested set:

* DAX **M5** → DAX M5 set (flagship)
* DAX **H1** → DAX H1 swing
* NAS100 **M5** → NAS100 M5 momentum
* GOLD **M5** → GOLD M5 volatility
* Forex **H1** → 6-market portfolio set

**Download:** [Latest Optimization Sets](https://my.itradeaims.net/latest-optimization-sets/)

### Configuration Not Working as Expected

**Checklist:**

1. **Experts tab:** confirm the EA prints applied parameters.
2. **Inputs tab:** verify values match your preset.
3. **Timeframe:** ensure preset timeframe = chart timeframe.
4. **Update preset:** download the current set for your market.

**Common mistakes:** using DAX sets on Forex, expecting instant trades, using aggressive risk on small accounts.

### Preset Files Not Loading

**Problem:** Can't find preset files like `BEA4-DAXH1-A.set` or `BEA4-DAXM5-Main.set`.

**✅ Simplified Distribution:** Easy installation structure!

**What you receive:**

* **BananaEA.zip** (single zip file)
* Contains complete `MQL4/` folder structure
* Drag-and-drop installation

**File locations after extraction:**

```
MT4/
├── Experts/
│   └── BananaEA.ex4 (main EA - no version suffix)
├── Libraries/
│   ├── BananaBacktestLicense_202601.ex4 (6-month license)
│   └── iTradeAIMSLib.ex4 (support library)
└── Presets/
    ├── BEA4-DAXH1-A.set (DAX H1 preset)
    └── BEA4-DAXM5-Main.set (DAX M5 preset)
```

**Installation:**

1. Extract BananaEA.zip
2. Copy entire `MQL4/` folder to your MT4 Terminal folder
3. Click "Yes to All" when prompted to overwrite
4. Restart MT4
5. Load presets from **File → Open Data Folder → MQL4 → Presets**

**Note:** Preset filenames may vary in future updates. Check customer portal for latest preset packs.

***

## 🛡️ Risk Management Issues

### Position Sizes Too Large/Small

**Solutions by Risk Method:**

#### 1) RISK\_PERCENT (recommended)

```ini
RiskMethod   = RISK_PERCENT
RiskPercent  = 1.0   // 1% per trade
```

On $10,000, 1% = $100 risk per trade. Lot size is auto-calculated.

#### 2) RISK\_FIXED\_LOT

```ini
RiskMethod = RISK_FIXED_LOT
LotSize    = 0.10    // same size every trade
```

#### 3) RISK\_FIXED\_AMOUNT

```ini
RiskMethod = RISK_FIXED_AMOUNT
RiskAmount = 100     // $100 per trade risk
```

### Daily Drawdown Alerts

**Problem:** EA halts due to daily loss limit.

```ini
UseDailyDrawdownControl = true
DailyDrawdownPercent    = 5.0    // stop at 5% daily loss
```

**Options:**

* Increase limit (≤ 10% recommended)
* Temporarily disable (not advised)
* Wait for reset (midnight server time)

***

## 🛠️ Technical Issues

### “Trade context is busy”

**Cause:** MT4 server load.

**Fixes:** wait and retry (EA retries automatically); switch to backup server; reduce trailing frequency (`TrailMinimumMovement`).

### Order Send Failures — Error Codes

| Code | Meaning              | Solution                                 |
| ---: | -------------------- | ---------------------------------------- |
|  130 | Invalid stops        | Ensure SL/TP meet broker min distances   |
|  131 | Invalid trade volume | Lot size outside broker min/max — adjust |
|  132 | Market closed        | Wait for session open                    |
|  133 | Trading disabled     | Enable **AutoTrading**                   |
|  134 | Not enough money     | Reduce risk/lot or add funds             |
|  136 | Off quotes           | Refresh rates and retry                  |
|  138 | Requote              | Normal — EA will retry                   |

### Performance (MT4 lagging)

**Fixes:**

```ini
ShowDebugLogs = false   // disable verbose logging live
ShowPanel     = false   // optional, reduce panel refresh
```

Reduce excessive chart objects/indicators if needed.

***

## 📡 Signal Detection Issues

### No Buy/Sell Signals

**Diagnostics:**

1. **Market conditions:** Banana patterns prefer momentum/trend. Ranging markets = fewer signals.
2. **MA filters too strict?**

   ```ini
   UseMAFilter=true
   // Temporarily relax for testing:
   // MAPeriod=20, MAMethod=EMA
   ```
3. **Enable all signal types (test)**

   ```ini
   useBu1=true; useBu2=true; useBu3=true
   useBe1=true; useBe2=true; useBe3=true
   ```

### Too Many Signals

**Solutions:**

* Enable **MA filters** to trade with trend.
* Use **Conservative / Low Drawdown** preset.
* Add a **time window** to avoid low-quality hours:

  ```ini
  UseTimeWindow   = true
  StartTradingHour= 8
  StopTradingHour = 16
  ```

***

## 🔁 Order Management Issues

### Pending Orders Keep Getting Cancelled

**Causes & fixes:**

1. **Expiry after bars**

   ```ini
   UseCancelAfterBars = true
   CancelAfterBars    = 5  // increase or set false to disable
   ```
2. **Session close cancellation**

   ```ini
   CancelPendingsAtSessionClose = true
   PendingCancelHour            = 20 // adjust or disable
   ```
3. **Opposite signal cancellation**

   ```ini
   CancelOnOppositeSignal = true  // set false to keep original orders
   ```

### Multiple Trades in Same Direction

**Understanding:**

```ini
AllowMultipleTrades = true  // scaling enabled
MaxOpenTrades       = 3
```

**To restrict:** set `AllowMultipleTrades=false` and/or lower `MaxOpenTrades`.

***

## 🎯 Performance Optimization

**Improve win rate:**

* Use **tested presets** (don’t free-hand everything).
* Ensure SL/TP ratios are aligned with your preset.
* Trade symbols/timeframes your preset was designed for.
* Avoid low-liquidity hours; use the session window.

**Beginner starter (manual config alternative):**

```ini
RiskMethod      = RISK_PERCENT
RiskPercent     = 1.0
UseBreakEven    = true
UseTrailingStop = true
```

**Conservative profile (reduce drawdown):**

```ini
RiskPercent              = 0.5
UseDailyDrawdownControl  = true
DailyDrawdownPercent     = 3.0
AllowMultipleTrades      = false
```

***

## 🧩 Quick Reference Commands

### Emergency Actions

```
F7       // Enable/disable AutoTrading (or click toolbar button)
Ctrl+E   // Expert properties (settings)
Ctrl+I   // Chart properties
```

### Log File Locations

```
Windows  : %APPDATA%\MetaQuotes\Terminal\[BROKER]\logs\
Common   : C:\Users\[USER]\AppData\Roaming\MetaQuotes\Terminal\[ID]\logs\
```

### Reset EA to Defaults

1. Remove EA from chart
2. Recompile in MetaEditor
3. Re-attach with factory settings
4. Load a **tested preset** for your timeframe/symbol

***

## 📞 Getting Additional Help

**Gather before contacting support:**

* EA version (Experts tab on attach)
* MT4 build (Help → About)
* Broker name / account type
* Exact error messages from **Experts** tab
* Screenshots of Inputs and Experts/Journal

**Self-help resources:**

* **Docs:** <https://itradeaims.gitbook.io/banana-ea>
* **Optimization Sets:** <https://my.itradeaims.net/latest-optimization-sets/>
* **Website:** <https://itradeaims.net>

**Support channels:**

* **Discord community** (fastest)
* **Email:** <info@itradeaims.net>

***

**Last Updated:** v4.4.6 **EA Version (Docs):** v4.4.6

*Remember: Most issues come from mismatched parameters, not EA bugs. When in doubt, load a tested preset and change **one** setting at a time.*

***

## 💬 Get Instant Help from Our Community

### Join 1,000+ traders solving problems together

[![Join Discord](https://img.shields.io/badge/Discord-Get%20Help%20Now-5865F2?style=for-the-badge\&logo=discord\&logoColor=white)](https://discord.gg/DxXQ4HdnES)

**✨ FREE Support** • **⚡ 1-2 Hour Response** • **🎓 Expert Troubleshooting** • **📈 Live Solutions**
