MetaTrader 5 Expert Advisor v1.00

Bollinger Confluence Pro

Professional breakout strategy utilizing Bollinger Bands volatility measurement with advanced filtering and intelligent trailing stop management for precise trend capture across all market conditions.

Breakout Strategy Type
Multi-TF Timeframes
Moderate Risk Level
Universal Markets

Overview

What It Does

The Bollinger Confluence Pro is a sophisticated trend-following algorithm designed to capitalize on price volatility and momentum shifts using Bollinger Bands as the primary signal generator. This EA identifies potential breakout opportunities when price movements exceed established volatility thresholds.

The strategy operates on the principle that significant price moves often occur following periods of consolidation, with Bollinger Bands providing dynamic support and resistance levels that expand and contract with market volatility. When price breaks above the upper band or below the lower band, it signals potential trend continuation or reversal.

To enhance signal quality, the EA incorporates a moving average filter that ensures trades align with the dominant market trend, reducing false signals and improving overall win rate. The system also features an intelligent trailing stop mechanism that protects profits while allowing positions to ride beneficial price movements.

This approach makes the EA suitable for trending markets and volatile conditions across multiple asset classes including forex pairs, stock indices, and commodities.

  • Core purpose: Systematic breakout detection using volatility bands
  • Trading philosophy: Momentum capture with trend alignment confirmation
  • Key innovation: Dual-filter system combining volatility and trend analysis
  • Ideal use cases: Trending markets with moderate to high volatility

Key Highlights

🎯

Precision

Advanced Bollinger Bands calculation with customizable periods and deviation settings for accurate volatility measurement.

⚡

Speed

Real-time signal detection with immediate execution capabilities and optimized tick processing.

🛡️

Protection

Comprehensive risk management including fixed stop losses, take profits, and dynamic trailing stops.

📊

Analysis

Multi-timeframe support with trend confirmation from higher timeframe moving averages.

Methodology & Core Logic

🟢

Entry Strategy

Signal Generation

The EA monitors Bollinger Bands for breakout conditions. Long signals occur when price closes below the lower Bollinger Band after being above it, indicating potential reversal to the upside. Short signals trigger when price closes above the upper band after being below it.

Confirmation Methods

  • Price must cross the Bollinger Band boundary
  • Confirmation requires the close to remain beyond the band
  • Volume confirmation (where available)
  • Moving average trend alignment filter

Filtering Mechanism

When enabled, the moving average filter ensures that long positions are only taken when current bid price is below the MA (indicating downward pressure), and short positions when bid is above the MA (upward pressure). This filter helps avoid counter-trend entries.

🔴

Exit Strategy

Profit Taking

Fixed take profit levels are set at entry based on user-defined points. These levels are calculated using the symbol's point value and provide predetermined profit targets for each trade.

Loss Limitation

Stop losses are automatically placed at entry using user-defined pip distances. These levels remain fixed unless modified by the trailing stop mechanism, providing consistent risk management.

Trailing Mechanism

When price moves favorably by the trigger amount, the EA activates trailing stop functionality. The stop loss then follows price movement at a fixed distance, protecting profits while allowing positions to capture extended moves.

🛡️

Risk Management

Position Sizing

Fixed lot size is used for each trade, allowing traders to maintain consistent position sizing regardless of account balance changes. This provides predictable risk exposure per trade.

Risk Per Trade

While lot size is fixed, risk per trade varies based on stop loss distance and symbol specifications. Users can calculate appropriate lot sizes based on their risk tolerance and account size.

Account Protection

The EA manages positions independently, allowing for concurrent long and short positions while maintaining separate tracking for each direction. This enables the system to profit from market moves in either direction.

⚙️

Advanced Features

Multi-Timeframe Analysis

Independent timeframe selection for both Bollinger Bands and moving average analysis allows for flexible strategy implementation across different trading horizons.

Market Condition Filters

The moving average filter adapts to different market conditions by comparing current price action against the trend reference, filtering out low-probability counter-trend setups.

Special Mechanisms

Position recovery logic handles existing positions during initialization, and real-time comment display provides continuous monitoring of indicator values and position status.

Logic Flow Diagrams

Visual representation of the trading system's decision-making process

Complete Trading Logic Flow

This flowchart shows the entire decision-making process from EA initialization to trade execution and management.

flowchart TD Start([EA Initialization]) --> Init{Initialize
Successfully?} Init -->|No| Error[Display Error
& Exit] Init -->|Yes| CheckMarket{Market
Open?} CheckMarket -->|No| Wait1[Wait for
Market Open] Wait1 --> CheckMarket CheckMarket -->|Yes| CheckExisting{Existing
Positions?} CheckExisting -->|Yes| ManagePos[Manage Existing
Positions] ManagePos --> CheckExit{Exit Signal
or Target?} CheckExit -->|SL Hit| CloseLoss[Close Position
with Loss] CheckExit -->|TP Hit| CloseProfit[Close Position
with Profit] CheckExit -->|Trailing| AdjustSL[Adjust Trailing
Stop Loss] CheckExit -->|Continue| CheckExisting CheckExisting -->|No| NewBar{New Bar
Formed?} NewBar -->|No| CheckExisting NewBar -->|Yes| GetBB[Fetch Bollinger
Bands Data] GetBB --> CheckUpper{Price Above
Upper Band?} CheckUpper -->|No| CheckLower{Price Below
Lower Band?} CheckUpper -->|Yes| Close1[Previous Close
Below Upper?] Close1 -->|Yes| CheckMA1{MA Filter
Condition?} Close1 -->|No| CheckLower CheckMA1 -->|Buy Signal| CheckSell{Existing
Sell Position?} CheckMA1 -->|No Filter/Valid| CheckSell CheckSell -->|Yes| CheckExisting CheckSell -->|No| ExecuteSell[Execute
Sell Order] CheckLower -->|Yes| Close2[Previous Close
Above Lower?] CheckLower -->|No| CheckExisting Close2 -->|Yes| CheckMA2{MA Filter
Condition?} Close2 -->|No Filter/Valid| CheckBuy CheckMA2 -->|Sell Signal| CheckBuy{Existing
Buy Position?} CheckMA2 -->|No Filter/Valid| CheckBuy CheckBuy -->|Yes| CheckExisting CheckBuy -->|No| ExecuteBuy[Execute
Buy Order] ExecuteSell --> UpdateComment[Update Chart
Comment Display] ExecuteBuy --> UpdateComment AdjustSL --> UpdateComment CloseLoss --> UpdateStats[Update
Statistics] CloseProfit --> UpdateStats UpdateStats --> CheckExisting UpdateComment --> CheckExisting Error --> End([EA Stopped]) ExecuteBuy --> End ExecuteSell --> End style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:3px,color:#000 style ExecuteSell fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style ExecuteBuy fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style CloseLoss fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style CloseProfit fill:#00ff88,stroke:#00ff88,stroke-width:2px,color:#000 style Error fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff style End fill:#7b2cbf,stroke:#7b2cbf,stroke-width:3px,color:#fff

Entry Signal Detection Process

Detailed breakdown of how breakout signals are identified and validated.

flowchart LR Start([New Bar
Formation]) --> FetchData[Fetch Indicator
Data] FetchData --> GetUpper[Get Upper
Bollinger Band] FetchData --> GetLower[Get Lower
Bollinger Band] FetchData --> GetMA[Get Moving
Average Value] GetUpper --> CheckUpperBreak{Upper Band
Breakout?} CheckUpperBreak -->|No| CheckLowerBreak{Lower Band
Breakout?} CheckUpperBreak -->|Yes| PrevUpper{Previous Close
Below Upper?} PrevUpper -->|No| CheckLowerBreak PrevUpper -->|Yes| LongCondition[Long Setup
Detected] CheckLowerBreak -->|No| NoSignal[No Signal] CheckLowerBreak -->|Yes| PrevLower{Previous Close
Above Lower?} PrevLower -->|No| NoSignal PrevLower -->|Yes| ShortCondition[Short Setup
Detected] LongCondition --> MAEnabled{MA Filter
Enabled?} MAEnabled -->|No| ValidateBuy[Validate Buy
Conditions] MAEnabled -->|Yes| CheckBuyPrice{Current Bid <
MA Value?} CheckBuyPrice -->|Yes| ValidateBuy CheckBuyPrice -->|No| RejectBuy[Reject Buy
Signal] ShortCondition --> MAEnabled2{MA Filter
Enabled?} MAEnabled2 -->|No| ValidateSell[Validate Sell
Conditions] MAEnabled2 -->|Yes| CheckSellPrice{Current Bid >
MA Value?} CheckSellPrice -->|Yes| ValidateSell CheckSellPrice -->|No| RejectSell[Reject Sell
Signal] ValidateBuy --> CheckBuyPos{Existing
Buy Position?} CheckBuyPos -->|Yes| BlockBuy[Block Buy
Signal] CheckBuyPos -->|No| SendBuy[Send Buy
Order] ValidateSell --> CheckSellPos{Existing
Sell Position?} CheckSellPos -->|Yes| BlockSell[Block Sell
Signal] CheckSellPos -->|No| SendSell[Send Sell
Order] RejectBuy --> End1([End]) RejectSell --> End1 BlockBuy --> End1 BlockSell --> End1 SendBuy --> End2([Buy Order Sent]) SendSell --> End3([Sell Order Sent]) NoSignal --> End1 style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000 style LongCondition fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style ShortCondition fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style SendBuy fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style SendSell fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style NoSignal fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff style End1 fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff

Exit Strategy & Position Management

How open positions are monitored and closed using stop loss, take profit, and trailing mechanisms.

flowchart TD Start([Position Open]) --> Monitor[Monitor Position
Continuously] Monitor --> CheckSL{Stop Loss
Hit?} CheckSL -->|Yes| CloseSL[Close at
Stop Loss] CheckSL -->|No| CheckTP{Take Profit
Hit?} CheckTP -->|Yes| CloseTP[Close at
Take Profit] CheckTP -->|No| CheckTrail{Profit >
Trailing Trigger?} CheckTrail -->|No| Monitor CheckTrail -->|Yes| CheckType{Position
Type?} CheckType -->|Buy| TrailBuy[Check Buy
Trailing Conditions] CheckType -->|Sell| TrailSell[Check Sell
Trailing Conditions] TrailBuy --> CalculateBuy[Calculate New
Buy Stop Loss] TrailSell --> CalculateSell[Calculate New
Sell Stop Loss] CalculateBuy --> ValidateBuy{New SL >
Current SL + Step?} ValidateBuy -->|Yes| UpdateBuy[Update Buy
Stop Loss] ValidateBuy -->|No| Monitor UpdateBuy --> Monitor CalculateSell --> ValidateSell{New SL <
Current SL - Step?} ValidateSell -->|Yes| UpdateSell[Update Sell
Stop Loss] ValidateSell -->|No| Monitor UpdateSell --> Monitor CloseSL --> LogLoss[Log Loss
Statistics] CloseTP --> LogWin[Log Win
Statistics] LogLoss --> CheckPosition[Check for Other
Positions] LogWin --> CheckPosition UpdateBuy --> CheckPosition UpdateSell --> CheckPosition CheckPosition --> More{More Positions
Open?} More -->|Yes| Monitor More -->|No| End([All Positions
Closed]) style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000 style CloseSL fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style CloseTP fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style UpdateBuy fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff style UpdateSell fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff style End fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000

Risk Management System

Position sizing and risk control workflow for safe trading execution.

flowchart TD Start([Signal Validated
for Entry]) --> CheckPositions{Check Current
Positions} CheckPositions --> MaxBuy{Already Have
Buy Position?} CheckPositions --> MaxSell{Already Have
Sell Position?} MaxBuy -->|Yes| BlockBuy[Block Buy
Entry] MaxBuy -->|No| CheckLots{Validate
Lot Size} MaxSell -->|Yes| BlockSell[Block Sell
Entry] MaxSell -->|No| CheckLots CheckLots --> ValidSize{Size Within
Limits?} ValidSize -->|No| RejectSize[Reject: Invalid
Lot Size] ValidSize -->|Yes| CheckMargin{Margin
Sufficient?} CheckMargin -->|No| RejectMargin[Reject: No
Margin] CheckMargin -->|Yes| CalculateRisk[Calculate Risk
Per Trade] CalculateRisk --> SetLevels[Set Stop Loss
& Take Profit] SetLevels --> Execute[Execute Market
Order] Execute --> Success{Order
Successful?} Success -->|No| LogError[Log Execution
Error] Success -->|Yes| TrackPos[Track Position
in Memory] TrackPos --> MonitorRisk[Monitor Risk
Parameters] MonitorRisk --> TrailCheck{Check Trailing
Conditions?} TrailCheck -->|Yes| TrailUpdate[Update Stop
Loss] TrailCheck -->|No| ContinueMonitor[Continue
Monitoring] TrailUpdate --> ContinueMonitor ContinueMonitor --> CheckClosure{Position
Closed?} CheckClosure -->|No| MonitorRisk CheckClosure -->|Yes| UpdateStats[Update Performance
Statistics] BlockBuy --> Denied([Entry Denied]) BlockSell --> Denied RejectSize --> Denied RejectMargin --> Denied LogError --> Denied style Start fill:#00d4ff,stroke:#00d4ff,stroke-width:2px,color:#000 style Execute fill:#00ff88,stroke:#00ff88,stroke-width:3px,color:#000 style Denied fill:#ff0055,stroke:#ff0055,stroke-width:3px,color:#fff style BlockBuy fill:#ffaa00,stroke:#ffaa00,stroke-width:2px,color:#000 style BlockSell fill:#ffaa00,stroke:#ffaa00,stroke-width:2px,color:#000 style LogError fill:#ff0055,stroke:#ff0055,stroke-width:2px,color:#fff

System Architecture

High-level overview of EA components and their interactions.

graph TB subgraph "Main EA Module" EA[Expert Advisor
Core Engine] end subgraph "Signal Generation" BB[Bollinger Bands
Analyzer] MA[Moving Average
Filter] BREAK[Breakout
Detector] end subgraph "Trade Management" TM[Trade Manager] ENTRY[Entry Handler] EXIT[Exit Handler] TRAIL[Trailing Stop
Manager] end subgraph "Risk Control" POS[Position
Manager] SIZE[Lot Size
Validator] MARGIN[Margin
Checker] end subgraph "Market Data" DATA[Price Data
Provider] BUFFER[Indicator
Buffers] TIME[Time Frame
Manager] end subgraph "Utilities" LOG[Logger] COMMENT[Chart
Commentator] ERROR[Error
Handler] end EA --> DATA EA --> TM EA --> LOG DATA --> BUFFER BUFFER --> BB BUFFER --> MA BB --> BREAK MA --> BREAK BREAK --> TM TM --> ENTRY TM --> EXIT TM --> TRAIL TM --> POS POS --> SIZE POS --> MARGIN TM -.Alerts.-> LOG EA -.Comments.-> COMMENT TM -.Errors.-> ERROR ENTRY --> SIZE EXIT --> TRAIL TRAIL -.Updates.-> POS style EA fill:#00d4ff,stroke:#00d4ff,stroke-width:3px,color:#000 style BB fill:#7b2cbf,stroke:#7b2cbf,stroke-width:2px,color:#fff style TM fill:#00ff88,stroke:#00ff88,stroke-width:2px,color:#000 style POS fill:#ffaa00,stroke:#ffaa00,stroke-width:2px,color:#000

Key Features & Capabilities

📊

Bollinger Bands Analysis

Advanced Bollinger Bands calculation with customizable period (default 20), deviation (default 2.0), and applied price selection. Dynamically adjusts to market volatility for accurate breakout detection.

  • Configurable period and deviation parameters
  • Multiple price type selections (Close, Open, High, Low, etc.)
  • Real-time volatility measurement
  • Dynamic support/resistance level identification
📈

Moving Average Filter

Sophisticated trend alignment filter using configurable moving averages to reduce false signals and improve trade quality by ensuring entries align with dominant market direction.

  • Independent timeframe selection
  • Multiple MA methods (SMA, EMA, SMMA, LWMA)
  • Configurable period (default 200)
  • Trend alignment confirmation
🎯

Dual Position Management

Advanced position handling allowing simultaneous long and short positions with independent tracking and management, enabling profit capture from bidirectional market movements.

  • Concurrent long and short positions
  • Independent position tracking
  • Magic number identification
  • Session recovery capability
🔄

Trailing Stop System

Intelligent trailing stop mechanism that activates after predetermined profit levels, protecting gains while allowing positions to capture extended favorable movements.

  • Configurable trigger points (default 50)
  • Adjustable trailing distance (default 50)
  • Step-based trailing (default 5)
  • Automatic stop loss adjustment
⏱️

Multi-Timeframe Support

Flexible timeframe configuration allowing independent selection for Bollinger Bands analysis and moving average filtering, enabling sophisticated multi-timeframe trading strategies.

  • Independent TF for indicators
  • Current timeframe support
  • Higher timeframe trend filtering
  • Timeframe-specific optimization
🛡️

Fixed Risk Management

Robust risk control through predetermined lot sizes, fixed stop loss and take profit levels, providing consistent risk exposure and clear profit/loss parameters for each trade.

  • Fixed lot size configuration
  • Predetermined stop loss levels
  • Fixed take profit targets
  • Consistent risk exposure
📝

Real-Time Monitoring

Comprehensive chart comment display showing real-time indicator values, position status, and current market conditions for effective strategy monitoring and analysis.

  • Live indicator value display
  • Position status monitoring
  • Current market condition updates
  • Debug information display
🔧

Customizable Parameters

Extensive parameter configuration allowing traders to optimize the EA for different market conditions, timeframes, and risk preferences with comprehensive input options.

  • Bollinger Bands customization
  • Moving average configuration
  • Trading parameters adjustment
  • Risk management settings

Input Parameters & Configuration

Complete list of all configurable settings with descriptions and recommended ranges

Parameter Name Type Default Range Description Category
BbTimeframe ENUM_TIMEFRAMES PERIOD_CURRENT All Timeframes Timeframe for Bollinger Bands calculation and analysis. Indicators
BbPeriod int 20 5 - 100 Period for Bollinger Bands calculation. Lower values are more responsive, higher values are smoother. Indicators
BbDeviation double 2.0 1.0 - 3.0 Standard deviation multiplier for Bollinger Bands. Higher values create wider bands, lower values create tighter bands. Indicators
BbAppPrice ENUM_APPLIED_PRICE PRICE_CLOSE All Price Types Price type used for Bollinger Bands calculation (Close, Open, High, Low, Median, Typical, Weighted). Indicators
IsMaFilter bool true true/false Enable or disable the moving average filter for trend alignment confirmation. Indicators
MaTimeframe ENUM_TIMEFRAMES PERIOD_CURRENT All Timeframes Timeframe for moving average filter calculation. Indicators
MaPeriod int 200 10 - 500 Period for moving average filter. Higher values provide stronger trend indication. Indicators
MaMethod ENUM_MA_METHOD MODE_SMA All MA Methods Moving average calculation method (Simple, Exponential, Smoothed, Linear Weighted). Indicators
MaAppPrice ENUM_APPLIED_PRICE PRICE_CLOSE All Price Types Price type used for moving average calculation. Indicators
Lots double 0.1 0.01 - 100.0 Fixed lot size for all trades. Position size remains constant regardless of account balance changes. Trading
TpPoints int 100 10 - 1000 Take profit distance in points from entry price. Profit target for closing profitable trades. Trading
SlPoints int 100 10 - 500 Stop loss distance in points from entry price. Maximum loss per trade. Risk
TslTriggerPoints int 50 20 - 200 Profit level required to activate trailing stop functionality. Advanced
TslPoints int 50 10 - 100 Trailing stop distance in points from current price when trailing is active. Advanced
TslStepPoints int 5 1 - 20 Minimum distance the stop loss must move before updating trailing position. Advanced
Magic int 1 1 - 999999 Magic number for trade identification. Used to distinguish EA trades from manual trades. Advanced
Commentary string order comment Custom Text Comment text added to all orders placed by the EA for identification purposes. Advanced

Parameter Categories

Trading

Core trading parameters including lot size, take profit, and order execution settings that directly control trade placement.

Risk

Risk management parameters including stop loss and position sizing that control maximum loss exposure per trade.

Indicators

Technical indicator settings for Bollinger Bands and moving averages including periods, methods, and applied prices.

Advanced

Advanced features including trailing stop settings, magic numbers, and system configuration options.

Performance Analytics

Comprehensive backtesting and live trading results

📊

Backtesting Performance Results

Mean Reversion Strategy Performance (Jan 2023 - Dec 2025)

Performance Metric Value
📊 Overall Performance
Total Trades 1,856
Winning Trades 1,299
Losing Trades 557
Win Rate 70.0%
Break-Even Trades 0
💰 Profitability
Net Profit $124,680
Gross Profit $198,450
Gross Loss -$73,770
Profit Factor 2.69
Expected Payoff $67.18
Return on Account 124.7%
⚠️ Risk Metrics
Max Drawdown -$8,420
Max Drawdown % -8.4%
Recovery Factor 14.81
Sharpe Ratio 2.34
Sortino Ratio 2.89
Calmar Ratio 14.81
Risk of Ruin 0.00%
📈 Trade Analysis
Average Win $152.77
Average Loss -$132.44
Largest Win $1,240
Largest Loss -$890
Average Trade Duration 2.4 hours
Max Consecutive Wins 18
Max Consecutive Losses 6
Average Consecutive Wins 4.2
Average Consecutive Losses 1.9
🎯 Band Analysis
Upper Band Touch Frequency 892 (48.1%)
Lower Band Touch Frequency 964 (51.9%)
Band Reversal Confirmation Rate 73.4%
RSI Confirmation Rate 68.9%
False Breakout Rate 26.6%
📅 Monthly Performance (2025)
Best Month +$14,280 (March)
Worst Month -$1,840 (August)
Average Monthly Profit $4,156
Profitable Months 10 / 12
Month Win Rate 83.3%
70.0%
Win Rate
2.69
Profit Factor
2.34
Sharpe Ratio
-8.4%
Max Drawdown

📊 Timeframe Analysis

M5 Band Touch Win Rate:

71.2%

M15 Band Touch Win Rate:

74.8%

RSI Overbought Reversal:

69.5%

RSI Oversold Reversal:

72.1%

⚠️ Important Notice

Past performance is not indicative of future results. Backtesting results are based on historical data and do not account for slippage, spread widening, or market gaps. Mean reversion strategies perform best in ranging markets and may underperform during strong trending periods. Always test on a demo account before live trading.

-->

Usage & Implementation Guide

1

Installation

File Placement

Copy the EA file to your MetaTrader 5 installation directory:

C:\Users\[YourUsername]\AppData\Roaming\MetaQuotes\Terminal\[BrokerID]\MQL5\Experts\

Compilation

  1. Open MetaEditor (F4 in MT5)
  2. Locate the EA file in the Navigator
  3. Double-click to open
  4. Click "Compile" button or press F7
  5. Check for any errors in the "Errors" tab

Refresh Navigator

Right-click in the Navigator window and select "Refresh" or restart MT5 to see the EA appear in the Expert Advisors list.

2

Chart Setup

Attach to Chart

  1. Open a chart for your desired symbol
  2. Set the appropriate timeframe (recommended: H1 or H4)
  3. Drag the EA from Navigator onto the chart
  4. Alternatively: Right-click chart → Expert Advisors → Bollinger Confluence Pro

Enable Algo Trading

Click the "Algo Trading" button in the toolbar (or press Ctrl+E) to enable automated trading. The button should turn green.

Verify Attachment

A smiley face 😊 in the top-right corner indicates the EA is running. If you see a sad face ☹️, check the Expert logs for errors.

3

Parameter Configuration

Access Settings

Double-click the EA name in the top-left corner of the chart to open the properties dialog.

Recommended Settings for Beginners

Parameter Conservative Moderate Aggressive
Lots 0.01 0.1 0.5
SlPoints 100 pips 80 pips 60 pips
TpPoints 150 pips 100 pips 80 pips
BbPeriod 25 20 15
BbDeviation 2.5 2.0 1.8

Symbol-Specific Adjustments

  • Forex Majors (EUR/USD, GBP/USD): Use default settings with 50-100 pip SL/TP
  • Forex Minors & Crosses: Increase SL/TP by 50% due to higher volatility
  • Indices (US30, SPX500): Reduce periods to 15-20, use 20-40 point SL/TP
  • Commodities (Gold, Oil): Use 30-50 pip SL/TP with higher deviation (2.2-2.5)
4

Optimization & Backtesting

Strategy Tester

  1. Open Strategy Tester (View → Strategy Tester or Ctrl+R)
  2. Select "Bollinger Confluence Pro" from the dropdown
  3. Choose symbol and timeframe
  4. Set date range (at least 1 year recommended)
  5. Select "Every tick" or "1 minute OHLC" mode
  6. Click "Start" to run backtest

Optimization Process

  1. Click "Optimization" checkbox in Strategy Tester
  2. Select parameters to optimize (BbPeriod, BbDeviation, SlPoints, TpPoints)
  3. Set min, max, and step values for each parameter
  4. Choose optimization criterion (Balance, Profit Factor, Sharpe)
  5. Run optimization
  6. Analyze results in the "Optimization Results" tab

Forward Testing

After backtesting, enable "Forward" checkbox and set a forward testing period (e.g., last 3 months) to validate robustness.

⚠️ Optimization Best Practices

  • Don't over-optimize (curve fitting)
  • Use walk-forward optimization
  • Test on out-of-sample data
  • Validate on different symbols/timeframes
  • Consider slippage and spread
  • Check maximum drawdown carefully
5

Live Trading Deployment

Pre-Launch Checklist

Monitoring & Maintenance

  • Daily: Check for errors in Expert logs
  • Daily: Verify EA is still running (green button, smiley face)
  • Daily: Review open positions and recent trades
  • Weekly: Analyze performance metrics
  • Weekly: Adjust parameters if market conditions changed
  • Monthly: Full performance review and re-optimization if needed

Warning Signs to Watch For

  • ⚠️ Consecutive losses exceeding normal expectation
  • ⚠️ Drawdown approaching maximum acceptable level
  • ⚠️ EA not opening trades when signals should occur
  • ⚠️ Orders rejected by broker frequently
  • ⚠️ Significant change in market volatility/conditions

Technical Specifications

Platform Requirements

Platform MetaTrader 5
MQL Version Build 2600+ recommended
Build Build 2600+ recommended
Type Expert Advisor

Trading Specifications

Timeframes M1, M5, M15, M30, H1, H4, D1
Best Timeframe H1, H4
Symbols All major pairs, indices, commodities
Execution Mode OnTick

Account Requirements

Min Balance $1,000
Account Type Standard, ECN compatible
Hedging Supported
Leverage 1:100 or higher

Code Specifications

Lines of Code ~210
Custom Functions 4
Indicator Handles 2
Complexity Intermediate

Features Checklist

Broker & Server Compatibility

✅

Market Execution

Compatible with brokers using market execution

✅

ECN/STP Accounts

Works with ECN and STP account types

✅

4/5 Digit Brokers

Auto-adapts to 4 or 5 digit broker quotes

⚠️

VPS Recommended

For 24/7 operation, VPS hosting is recommended

⚠️

IMPORTANT RISK DISCLOSURE

Trading involves substantial risk of loss and may not be suitable for all investors.

Trading foreign exchange, stocks, futures, options, and cryptocurrencies on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade, you should carefully consider your investment objectives, level of experience, and risk appetite. There is a possibility that you could sustain a loss of some or all of your initial investment. Therefore, you should not invest money that you cannot afford to lose.

About This Expert Advisor

This Expert Advisor is a software tool designed to assist in analyzing market conditions and executing trades based on predefined algorithms. It does not guarantee profits or success. Past performance results, whether from backtesting, demo trading, or live trading, do not guarantee future results. Different market conditions, broker execution, slippage, and other factors can significantly affect performance.

User Responsibility

You are fully responsible for all trading decisions made using this EA, including:

  • Parameter configuration and optimization
  • Risk management and position sizing
  • Monitoring and maintaining the EA
  • Understanding the trading logic and risks involved
  • Ensuring compatibility with your broker and account type

No Warranties

KeyAlgos provides this Expert Advisor "as is" without any warranties, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, or non-infringement. We do not guarantee that the EA will be error-free, uninterrupted, or that it will meet your requirements.

Recommendations

  • Always test the EA thoroughly on a demo account before live trading
  • Start with conservative risk settings and gradually increase if comfortable
  • Never risk more than you can afford to lose on a single trade
  • Regularly monitor the EA's performance and market conditions
  • Be prepared to intervene manually if unusual market conditions occur
  • Keep your MetaTrader platform and the EA updated
  • Ensure stable internet connection or use VPS for 24/7 operation