# Alert Configuration

## Comprehensive Alert System

BananaEA v4.4.6+ includes a sophisticated alert system with granular control over 15+ notification types. Configure exactly which events trigger alerts to avoid notification fatigue while staying informed of critical trading activity.

***

## 🎯 EnableAlerts - Master Switch

### **What It Does**

Global on/off switch for **ALL** alerts. Disabling this parameter silences every alert type regardless of individual settings.

### **Configuration**

```
EnableAlerts = true      // Enable alert system (individual alerts still need enabling)
EnableAlerts = false     // Disable ALL alerts (complete silence)
```

### **Default Value**

* **Setting**: `true` (alerts enabled)
* **Why**: Traders generally want notification of important events
* **Recommendation**: Keep enabled, use individual toggles to fine-tune

***

## 📋 Alert Categories

BananaEA organizes alerts into three categories for easy management:

1. **Trade Execution Alerts** - Order placement, closures, modifications
2. **Risk Management Alerts** - Break-even, trailing stops, drawdown warnings
3. **System & Session Alerts** - Trading hours, order rejections, spread warnings

***

## 💼 Trade Execution Alerts

### **Alert\_Signal**

**What It Does**: Notifies when a signal results in trade placement (market or pending order)

```
Alert_Signal = true      // Alert when trades are opened
Alert_Signal = false     // Silent trade openings
```

**Default**: `true`\
**Example**: "BananaEA: Bu1 Buy signal triggered - Market order placed at 1.0850"

**When to Enable**:

* Monitoring EA performance remotely
* Learning signal timing patterns
* Verifying EA is trading as expected

**When to Disable**:

* High-frequency trading setups (too many alerts)
* During optimization (avoids alert spam)
* Watching charts actively (visual confirmation sufficient)

***

### **Alert\_PendingOrder**

**What It Does**: Notifies when pending orders are placed

```
Alert_PendingOrder = true      // Alert when pending orders created
Alert_PendingOrder = false     // Silent pending order placement
```

**Default**: `true`\
**Example**: "BananaEA: Be2 Sell Limit placed at 1.0870"

**When to Enable**:

* Using pending order strategy (need execution awareness)
* Monitoring multiple charts
* Prop firm trading (need full trade visibility)

**When to Disable**:

* Using market orders only (parameter irrelevant)
* High signal frequency causing alert fatigue
* Backtesting/optimization

***

### **Alert\_PendingDelete**

**What It Does**: Notifies when pending orders are cancelled (expired, opposite signal, manual delete)

```
Alert_PendingDelete = true      // Alert when pending orders deleted
Alert_PendingDelete = false     // Silent pending order deletions
```

**Default**: `true`\
**Example**: "BananaEA: Buy Limit cancelled - Opposite signal detected"

**When to Enable**:

* Understanding order expiry behavior
* Monitoring order management logic
* Prop firm compliance (track all order activity)

**When to Disable**:

* Using market orders exclusively
* Alert fatigue from frequent cancellations
* Optimization/backtesting

***

### **Alert\_PartialClose**

**What It Does**: Notifies when partial close is executed (e.g., 50% closed at profit target)

```
Alert_PartialClose = true      // Alert on partial profit taking
Alert_PartialClose = false     // Silent partial closes
```

**Default**: `true`\
**Example**: "BananaEA: 50% partial close executed - Profit locked: $85.50"

**When to Enable**:

* Using partial close strategy (track profit securing)
* Want confirmation of risk reduction
* Monitoring advanced trade management

**When to Disable**:

* Not using partial close (`PartialCloseMethod = Disabled`)
* Alert fatigue
* Trust EA to manage automatically

***

### **Alert\_TradeClose**

**What It Does**: Notifies when full trade is closed (TP hit, SL hit, manual close, session close)

```
Alert_TradeClose = true      // Alert when trades fully close
Alert_TradeClose = false     // Silent trade closures
```

**Default**: `true`\
**Example**: "BananaEA: Buy trade closed at TP - Profit: $127.80"

**When to Enable**:

* **HIGHLY RECOMMENDED** - Critical event notification
* Remote monitoring
* Performance tracking
* Psychological confirmation

**When to Disable**:

* Rarely advisable to disable (too important)
* Possibly during high-frequency scalping
* Backtesting only

***

## 🛡️ Risk Management Alerts

### **Alert\_BreakEven**

**What It Does**: Notifies when Break-Even is triggered (SL moved to entry +/- commission)

```
Alert_BreakEven = true      // Alert when BE activates
Alert_BreakEven = false     // Silent BE triggers
```

**Default**: `true`\
**Example**: "BananaEA: Break-Even activated - Trade now risk-free"

**When to Enable**:

* Using Break-Even strategy (verify activation)
* Want psychological reassurance of risk removal
* Learning BE timing patterns

**When to Disable**:

* Not using Break-Even (`BreakEvenMethod = Disabled`)
* Alert fatigue from frequent BE triggers
* Trust EA automation completely

***

### **Alert\_TrailingStop**

**What It Does**: Notifies when Trailing Stop is first activated (not every adjustment)

```
Alert_TrailingStop = true      // Alert when TS starts trailing
Alert_TrailingStop = false     // Silent TS activation
```

**Default**: `true`\
**Example**: "BananaEA: Trailing Stop activated - Now following price"

**When to Enable**:

* Using Trailing Stop strategy
* Want confirmation of profit protection
* Understanding TS activation timing

**When to Disable**:

* Not using Trailing Stop (`TrailingMethod = Disabled`)
* Alert fatigue
* Fully trust TS automation

***

### **Alert\_DailyDrawdown**

**What It Does**: Notifies at two thresholds - 80% of daily drawdown limit (warning) and 100% (limit reached)

```
Alert_DailyDrawdown = true      // Alert on DD warnings
Alert_DailyDrawdown = false     // Silent DD monitoring
```

**Default**: `true`\
**Example**:

* "⚠️ WARNING: 80% of daily drawdown limit reached"
* "🛑 STOP: Daily drawdown limit exceeded - Trading halted"

**When to Enable**:

* **HIGHLY RECOMMENDED** for prop firm trading
* Using daily drawdown control
* Need immediate notification of risk limits

**When to Disable**:

* Not using drawdown control (`UseDailyDrawdownControl = false`)
* Confidence in never hitting limits (overconfidence risk!)
* Backtesting

***

## 🌍 System & Session Alerts

### **Alert\_SessionChange**

**What It Does**: Notifies when trading session transitions Active ↔ Inactive

```
Alert_SessionChange = true      // Alert on session transitions
Alert_SessionChange = false     // Silent session changes
```

**Default**: `true`\
**Example**:

* "✅ Trading Session ACTIVE - Ready to trade"
* "⏸️ Trading Session INACTIVE - Outside trading hours"

**When to Enable**:

* Using time window trading (`UseTimeWindow = true`)
* Want confirmation EA is respecting trading hours
* Remote monitoring of session status

**When to Disable**:

* 24/7 trading (`UseTimeWindow = false`)
* Alert fatigue from session transitions
* Watching charts actively

***

### **Alert\_OrderRejected**

**What It Does**: Notifies when order placement fails (insufficient margin, invalid price, broker rejection)

```
Alert_OrderRejected = true      // Alert on order failures
Alert_OrderRejected = false     // Silent order rejections
```

**Default**: `true`\
**Example**: "❌ Order REJECTED: Insufficient margin - Trade not placed"

**When to Enable**:

* **HIGHLY RECOMMENDED** - Critical failure notification
* Troubleshooting order placement issues
* Prop firm trading (need to know about failed trades)

**When to Disable**:

* Rarely advisable (too important)
* Possibly during optimization if seeing expected rejections
* Only if EA logs are monitored continuously

***

### **Alert\_HighSpread**

**What It Does**: Notifies when spread exceeds configured threshold (news events, low liquidity)

```
Alert_HighSpread = false      // Disabled by default (can be noisy)
Alert_HighSpread = true       // Enable spread warnings
```

**Default**: `false`\
**Example**: "⚠️ High Spread Detected: 4.5 pips (threshold: 3.0 pips)"

**Alert\_SpreadThreshold**:

```
Alert_SpreadThreshold = 3.0   // Alert if spread > 3.0 pips
```

**When to Enable**:

* Trading during news events
* Broker with variable spreads
* Want early warning of poor execution conditions

**When to Disable**:

* **DEFAULT** - Can be very noisy
* Broker has fixed/low spreads
* Using `MaxSpread` filter (redundant notification)
* Alert fatigue

***

### **ShowManualTradeConfirmation**

**What It Does**: Shows popup confirmation dialog before executing manual BUY/SELL/Close button clicks

```
ShowManualTradeConfirmation = true      // Confirm before manual actions
ShowManualTradeConfirmation = false     // One-click manual trading
```

**Default**: `true`\
**Example**: "Confirm: Place Manual BUY order at 1.0850? \[Yes] \[No]"

**When to Enable**:

* **RECOMMENDED** - Prevents accidental clicks
* Learning EA functionality
* Prop firm trading (avoid mistakes)

**When to Disable**:

* Experienced with EA interface
* Want instant one-click execution
* High-confidence in button clicks

***

## ⚙️ Configuration Strategies

### **Strategy 1: Maximum Awareness (Default)**

```
EnableAlerts = true
Alert_Signal = true
Alert_PendingOrder = true
Alert_PendingDelete = true
Alert_PartialClose = true
Alert_TradeClose = true
Alert_BreakEven = true
Alert_TrailingStop = true
Alert_DailyDrawdown = true
Alert_SessionChange = true
Alert_OrderRejected = true
Alert_HighSpread = false
ShowManualTradeConfirmation = true
```

**Use When**:

* Learning EA behavior
* Remote monitoring
* Prop firm trading
* Need full trade visibility

***

### **Strategy 2: Critical Alerts Only**

```
EnableAlerts = true
Alert_Signal = false
Alert_PendingOrder = false
Alert_PendingDelete = false
Alert_PartialClose = true
Alert_TradeClose = true
Alert_BreakEven = false
Alert_TrailingStop = false
Alert_DailyDrawdown = true
Alert_SessionChange = false
Alert_OrderRejected = true
Alert_HighSpread = false
ShowManualTradeConfirmation = true
```

**Use When**:

* Experienced trader
* Reduce alert fatigue
* Focus on outcomes (closures) not processes (openings)
* Trust EA automation

***

### **Strategy 3: Silent Mode (Optimization/Backtesting)**

```
EnableAlerts = false
```

**Use When**:

* Running optimizations
* Backtesting
* Fully trust EA automation
* Alerts cause interruptions

***

### **Strategy 4: High-Frequency Trading**

```
EnableAlerts = true
Alert_Signal = false
Alert_PendingOrder = false
Alert_PendingDelete = false
Alert_PartialClose = false
Alert_TradeClose = true
Alert_BreakEven = false
Alert_TrailingStop = false
Alert_DailyDrawdown = true
Alert_SessionChange = false
Alert_OrderRejected = true
Alert_HighSpread = false
ShowManualTradeConfirmation = false
```

**Use When**:

* Multiple trades per hour
* Alert fatigue is real concern
* Only care about final outcomes
* Need one-click manual intervention

***

## 🔍 Alert Delivery Methods

### **Popup Alerts**

* **Visibility**: Center-screen popup with sound
* **Interruption**: Requires acknowledgment (click OK)
* **Best For**: Critical events (order rejections, drawdown warnings)

### **Push Notifications** (MT4 Mobile App)

* **Setup**: Tools → Options → Notifications → Enable Push
* **Delivery**: MT4 mobile app on phone
* **Best For**: Remote monitoring, away from PC

### **Email Alerts**

* **Setup**: Tools → Options → Email → Configure SMTP
* **Delivery**: Email inbox
* **Best For**: Historical record, less urgent notifications

***

## 💡 Best Practices

### **✅ DO:**

* **Keep critical alerts enabled** (TradeClose, OrderRejected, DailyDrawdown)
* **Test alert system** before live trading (trigger a test signal)
* **Adjust over time** as you gain experience with EA
* **Use different strategies** for demo vs. live accounts
* **Document your alert preferences** in trading journal

### **❌ DON'T:**

* **Disable ALL alerts** without good reason (miss critical events)
* **Enable ALL alerts** if trading high frequency (alert fatigue)
* **Ignore alert system** - it's there to protect you
* **Leave confirmation dialogs disabled** on manual buttons (accident-prone)
* **Forget to re-enable alerts** after optimization/backtesting

***

## 🔧 Troubleshooting

### **Problem: No Alerts Appearing**

**Possible Causes**:

1. `EnableAlerts = false` (master switch off)
2. Individual alerts disabled
3. MT4 sounds disabled globally
4. System volume muted

**Solution**:

1. Verify `EnableAlerts = true` in EA inputs
2. Check specific alert toggle (e.g., `Alert_Signal = true`)
3. Tools → Options → Sounds → Enable event sounds
4. Check system volume and unmute

***

### **Problem: Too Many Alerts (Overwhelming)**

**Possible Causes**:

1. All alerts enabled (default)
2. High-frequency trading setup
3. Sensitive to interruptions

**Solution**:

1. Use "Critical Alerts Only" strategy
2. Disable process alerts (Signal, PendingOrder, PendingDelete)
3. Keep outcome alerts (TradeClose, OrderRejected, DailyDrawdown)
4. Consider `EnableAlerts = false` during analysis sessions

***

### **Problem: Missing Important Alerts**

**Possible Causes**:

1. Specific alert toggle disabled
2. Master switch off
3. Alert fatigue causing you to miss/ignore

**Solution**:

1. Review and re-enable critical alerts
2. Verify `EnableAlerts = true`
3. Use distinct sound for critical alerts (MT4 → Options → Sounds)
4. Enable push notifications for mobile awareness

***

## 📈 Alert Philosophy

### **Alert Fatigue is Real**

* **Problem**: Too many alerts → Ignore all alerts → Miss critical events
* **Solution**: Strategic alert configuration based on trading style

### **Alert Hierarchy**

**MUST HAVE** (Never disable):

* `Alert_OrderRejected` - Know when trades fail
* `Alert_DailyDrawdown` - Protect account
* `Alert_TradeClose` - Track performance

**SHOULD HAVE** (Highly recommended):

* `Alert_BreakEven` - Confirm risk removal
* `Alert_TrailingStop` - Verify profit protection
* `Alert_SessionChange` - Confirm EA respects trading hours

**NICE TO HAVE** (Disable if noisy):

* `Alert_Signal` - Process notification
* `Alert_PartialClose` - Intermediate outcome
* `Alert_PendingOrder` - Order creation confirmation

**OPTIONAL** (Often disabled):

* `Alert_HighSpread` - Can be very noisy
* `Alert_PendingDelete` - Process detail

***

## 🔗 Related Settings

* [**Risk Management**](https://itradeaims.gitbook.io/banana-ea/complete-user-guide/settings-guide/risk-management) - Daily drawdown control triggers alerts
* [**Advanced Features**](https://itradeaims.gitbook.io/banana-ea/complete-user-guide/settings-guide/advanced-features) - BE/PC/TS settings determine alert frequency
* [**Trading Hours & Filters**](https://itradeaims.gitbook.io/banana-ea/complete-user-guide/settings-guide/trading-hours-and-filters) - Session settings affect SessionChange alerts
* [**General Settings**](https://itradeaims.gitbook.io/banana-ea/complete-user-guide/settings-guide/general-settings) - Magic number affects Trade Management Mode alerts

***

## 📚 Further Reading

* [**FAQ: Alert System**](https://itradeaims.gitbook.io/banana-ea/faq/faq) - Common alert-related questions
* [**Quick Start Guide**](https://itradeaims.gitbook.io/banana-ea/quick-start-guide#alert-configuration) - Basic alert setup
* [**Troubleshooting**](https://itradeaims.gitbook.io/banana-ea/support/overview/troubleshooting#alert-issues) - Resolving alert problems
