# 🔔 Alert Configuration

## Comprehensive Alert System[​](#comprehensive-alert-system "Direct link to Comprehensive Alert System")

BananaEA v4.5.1+ includes alert controls for trade, risk, and system events. Configure which event types should trigger alerts so the platform only shows messages you need.

***

## 🎯 EnableAlerts - Master Switch[​](#-enablealerts---master-switch "Direct link to 🎯 EnableAlerts - Master Switch")

### **What It Does**[​](#what-it-does "Direct link to what-it-does")

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

### **Configuration**[​](#configuration "Direct link to configuration")

```
EnableAlerts = true      // Enable alert system (individual alerts still need enabling)

EnableAlerts = false     // Disable ALL alerts (complete silence)
```

### **Default Value**[​](#default-value "Direct link to 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[​](#-alert-categories "Direct link to 📋 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[​](#-trade-execution-alerts "Direct link to 💼 Trade Execution Alerts")

### **Alert\_Signal**[​](#alert_signal "Direct link to 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`<br />**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**[​](#alert_pendingorder "Direct link to 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`<br />**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**[​](#alert_pendingdelete "Direct link to 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`<br />**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**[​](#alert_partialclose "Direct link to 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`<br />**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**[​](#alert_tradeclose "Direct link to 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`<br />**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[​](#️-risk-management-alerts "Direct link to 🛡️ Risk Management Alerts")

### **Alert\_BreakEven**[​](#alert_breakeven "Direct link to 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`<br />**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**[​](#alert_trailingstop "Direct link to 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`<br />**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**[​](#alert_dailydrawdown "Direct link to 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`<br />**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[​](#-system--session-alerts "Direct link to 🌍 System & Session Alerts")

### **Alert\_SessionChange**[​](#alert_sessionchange "Direct link to 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`<br />**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**[​](#alert_orderrejected "Direct link to 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`<br />**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**[​](#alert_highspread "Direct link to 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`<br />**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**[​](#showmanualtradeconfirmation "Direct link to 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`<br />**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[​](#️-configuration-strategies "Direct link to ⚙️ Configuration Strategies")

### **Strategy 1: Maximum Awareness (Default)**[​](#strategy-1-maximum-awareness-default "Direct link to 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**[​](#strategy-2-critical-alerts-only "Direct link to 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)**[​](#strategy-3-silent-mode-optimizationbacktesting "Direct link to strategy-3-silent-mode-optimizationbacktesting")

```
EnableAlerts = false
```

**Use When**:

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

***

### **Strategy 4: High-Frequency Trading**[​](#strategy-4-high-frequency-trading "Direct link to 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[​](#-alert-delivery-methods "Direct link to 🔍 Alert Delivery Methods")

### **Popup Alerts**[​](#popup-alerts "Direct link to 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)[​](#push-notifications-mt4-mobile-app "Direct link to 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**[​](#email-alerts "Direct link to email-alerts")

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

***

## 💡 Best Practices[​](#-best-practices "Direct link to 💡 Best Practices")

### **✅ DO:**[​](#-do "Direct link to -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:**[​](#-dont "Direct link to -dont")

* **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[​](#-troubleshooting "Direct link to 🔧 Troubleshooting")

### **Problem: No Alerts Appearing**[​](#problem-no-alerts-appearing "Direct link to 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)**[​](#problem-too-many-alerts-overwhelming "Direct link to 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**[​](#problem-missing-important-alerts "Direct link to 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-philosophy "Direct link to 📈 Alert Philosophy")

### **Alert Fatigue is Real**[​](#alert-fatigue-is-real "Direct link to alert-fatigue-is-real")

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

### **Alert Hierarchy**[​](#alert-hierarchy "Direct link to 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[​](#-related-settings "Direct link to 🔗 Related Settings")

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

***

## 📚 Further Reading[​](#-further-reading "Direct link to 📚 Further Reading")

* **[FAQ: Alert System](/banana-ea/mt4/docs/v4/faq.md)** - Common alert-related questions
* **[Quick Start Guide](/banana-ea/mt4/docs/v4/quick-start-guide.md)** - Basic setup before configuring alerts
* **[Troubleshooting](/banana-ea/mt4/docs/v4/troubleshooting.md#daily-drawdown-alerts)** - Drawdown and alert-related issues
