πŸ””Alerts & Notifications

Overview

BananaEA v{{ variables.productionVersion }} includes a comprehensive Smart Alert System that provides real-time notifications for all critical trading events. The system is designed with professional traders in mind, offering granular control over alert types while automatically disabling during backtesting and optimization to prevent spam.

circle-check

Master Alert Control

Enable/Disable All Alerts

The master switch provides instant control over the entire alert system:

EnableAlerts = true   // All alerts active (default)
EnableAlerts = false  // All alerts disabled

When to disable:

  • During live trading setup/testing phase

  • When running multiple EA instances (reduce alert volume)

  • If you prefer quiet operation

circle-info

Individual alert switches work ONLY when EnableAlerts = true. The master switch overrides all individual settings.


Alert Categories

1. Trade Execution Alerts

Real-time notifications for all trade placement and management events.

Signal Triggered Trade

Parameter: Alert_Signal = true

Notifies when a Banana or Seed signal results in trade placement (market or pending order).

Alert Format:

When triggered:

  • Banana Buy/Sell signals (Bu1, Bu2, Bu3, Be1, Be2, Be3)

  • Seed signals (small pattern confirmation)

  • External indicator signals (if enabled)


Pending Order Placed

Parameter: Alert_PendingOrder = true

Confirms when pending orders (BuyStop, SellStop, BuyLimit, SellLimit) are successfully placed.

Alert Format:


Pending Order Deleted

Parameter: Alert_PendingDelete = true

Notifies when pending orders are removed (replaced by better signal, expired, or manually deleted).

Alert Format:


Partial Close Executed

Parameter: Alert_PartialClose = true

Alerts when the EA closes a portion of the position (typically 50% at partial close trigger).

Alert Format:

Trigger Points:

  • Fixed level (e.g., +50 pips)

  • Candle range multiplier (e.g., 2Γ— signal candle)

  • ATR multiplier (e.g., 3Γ— ATR from entry)


Trade Fully Closed

Parameter: Alert_TradeClose = true

Confirms when trades are completely closed (by SL, TP, trailing stop, or manual intervention).

Alert Format:


2. Risk Management Alerts

Automated protection mechanisms and safety triggers.

Break-Even Activated

Parameter: Alert_BreakEven = true

Notifies when the EA moves stop loss to entry price (zero-risk position).

Alert Format:

Trigger Methods:

  • Fixed: After X pips in profit

  • Candle Range: After price moves XΓ— signal candle size

  • ATR-based: After price moves XΓ— ATR from entry (default: 4Γ— ATR)


Trailing Stop Started

Parameter: Alert_TrailingStop = true

Confirms when dynamic trailing stop activation begins.

Alert Format:


Daily Drawdown Warnings

Parameter: Alert_DailyDrawdown = true

Progressive alerts as daily loss limits approach critical thresholds.

Alert Levels:

⚠️ Warning (60-80% of limit):

πŸ›‘ Critical (80-100% of limit):

🚨 Limit Reached (100%):


3. System & Session Alerts

Market conditions and operational status notifications.

Session Status Change

Parameter: Alert_SessionChange = true

Alerts when trading windows activate or deactivate.

Alert Format (Active):

Alert Format (Inactive):


Order Rejection

Parameter: Alert_OrderRejected = true

Critical alert when broker rejects order placement.

Alert Format:

Common Rejection Reasons:

  • ERR_INVALID_STOPS: SL/TP too close to entry price

  • ERR_NOT_ENOUGH_MONEY: Insufficient margin

  • ERR_TRADE_DISABLED: Trading disabled for symbol

  • ERR_TRADE_NOT_ALLOWED: EA trading permission denied


High Spread Warning

Parameter: Alert_HighSpread = false (disabled by default)

Optional alert for abnormal spread conditions.

Alert Format:

Configuration:

circle-exclamation

Alert Protection Mechanisms

Automatic Backtest/Optimization Silence

The Smart Alert System includes four-layer protection to prevent alert spam:

Result: Zero configuration needed - alerts automatically work only during live/demo trading.


Anti-Spam for Break-Even & Trailing Stop

Special tracking prevents duplicate alerts for the same trade:

Problem: Trade #12345 moves SL 10 times during trailing stop β†’ 10 alerts ❌ Solution: Alert only on FIRST SL move β†’ 1 alert per trade βœ…

Implementation:

  • Break-Even: Alert once when SL first moved to entry price

  • Trailing Stop: Alert once when trailing first activates

  • Subsequent SL adjustments: Silent (logged only)


Alert Configuration Profiles

Conservative Trader

Goal: Maximum awareness, all alerts enabled


Balanced Trader (Default)

Goal: Essential alerts only, minimal noise


Silent Trader

Goal: Minimal interruptions, critical alerts only


Completely Silent (Manual Monitoring)

Goal: No interruptions, full manual control


Alert Format Standards

All BananaEA alerts follow consistent formatting:

Prefix

Structure

Example


Technical Notes

Alert Performance

  • Processing Time: <0.1ms per alert (negligible overhead)

  • Memory Usage: ~200 bytes per alert message

  • Optimization Impact: Zero (alerts disabled automatically)

  • Backtest Impact: Zero (alerts disabled automatically)

Alert Triggers

Synchronous (Immediate):

  • Trade execution alerts (signal, pending order, close)

  • Order rejection alerts

  • Break-even activation

  • Trailing stop activation

Asynchronous (On Next Tick):

  • Session status changes (evaluated once per bar)

  • Daily drawdown warnings (evaluated on new trades)

  • High spread warnings (evaluated before signal execution)


Troubleshooting

Not Receiving Alerts

Check 1: Master Switch

Check 2: Individual Switch

Check 3: Trading Mode

Check 4: MT4 Settings


Too Many Alerts

Solution 1: Disable Noisy Alerts

Solution 2: Use Balanced Profile

  • Enable only critical alerts (close, rejection, drawdown)

  • Disable informational alerts (session change, pending orders)

Solution 3: Silent Mode


Missing Specific Alerts

Break-Even not alerting?

Trailing Stop not alerting?

Daily Drawdown not alerting?


Best Practices

1. Start with Defaults

Use the Balanced Trader profile initially. Adjust based on your monitoring style after 1-2 weeks.

2. Enable Critical Alerts Always

Mandatory Alerts (should always be enabled):

  • Alert_OrderRejected = true - Must know when orders fail

  • Alert_DailyDrawdown = true - Must know risk limits approaching

  • Alert_TradeClose = true - Must know final trade results

3. Progressive Alert Reduction

Week 1: Enable all alerts β†’ Understand EA behavior Week 2: Disable noisy alerts β†’ Find your comfort level Week 3+: Fine-tune to minimal essential alerts β†’ Long-term sustainability

4. Mobile Notifications

MT4 Mobile App: Alerts sync to mobile automatically if:

  • MT4 Mobile installed and logged in

  • Push notifications enabled in mobile settings

  • Same account used on desktop and mobile

5. Alert Logs

All alerts are also logged to MT4 Experts tab:

Filter logs: Right-click β†’ Filter β†’ "ALERT"


Version History

Version
Alert Feature
Description

v3.13.x

Smart Alert System

Comprehensive 11-alert system with automatic backtest/optimization silence

v3.13.12

ATR Filter Alert

Added ATR volatility filter rejection notifications

v3.13.13

Daily Range Alert

Added daily range exceeded and session movement alerts

v3.13.x

Alert Anti-Spam

Break-even and trailing stop duplicate alert prevention



circle-check

Last updated