Binario Expert Advisor for MT4/MT5 – Dual EMA Breakout Trading System

12/15/2022

The Binario Expert Advisor is an automated trading system for MetaTrader 4 and MetaTrader 5, built around a dual Exponential Moving Average (EMA) breakout strategy. Unlike traditional MA crossover systems, Binario uses two EMAs of the same period calculated on different price types — High and Low, forming a dynamic price range.

The EA is designed to trade price breakouts that occur when the market moves decisively outside this EMA range, filtering out weak or sideways market conditions.

Trading Strategy
Binario Expert Advisor places two pending orders simultaneously:

  • A Buy Stop order slightly above the EMA calculated on High prices
  • A Sell Stop order slightly below the EMA calculated on Low prices

Both orders are placed using a configurable buffer distance from the EMAs to avoid false breakouts.

When one pending order is triggered, the opposite order is automatically canceled.

The stop-loss is set at the opposite EMA level, while the take-profit is defined as a fixed number of pips chosen by the trader. This structure allows the EA to capture strong directional moves while controlling downside risk.

In simple terms, the EA trades only when the price breaks out of the range formed by the two EMAs, aiming to stay aligned with sustained market momentum.

Input Parameters
Main Settings

  • MA_Period (default: 144): Period used for both EMAs
  • MA_Method (default: MODE_EMA): Moving average calculation method
  • TakeProfit (default: 115): Take-profit distance in pips
  • PipDifference (default: 20): Distance in pips between the EMA and the pending orders

Money Management

  • Lots (default: 0.1): Fixed trade volume (disabled if MaximumRisk > 0)
  • MaximumRisk (default: 1): Risk-based position sizing coefficient; set to 0 to disable

Miscellaneous

  • Slippage (default: 30): Maximum allowed slippage in points
  • OrderCommentary (default: “Binario”): Comment applied to EA trades
  • Magic (default: 16384): Magic number used to identify EA positions

Backtesting Performance
Automated backtesting of the Binario Expert Advisor was conducted on the EUR/USD pair using a daily timeframe, with the MaximumRisk parameter set to 2.

Backtest details:

  • Initial Deposit: $10,000
  • Net Profit: approximately $8,800
  • Maximum Drawdown: 27%
  • Test Period: January 1, 2013 – April 19, 2022
  • Average Trade Frequency: approximately one trade per month

During the test period:

  • Average Loss: $647
  • Average Profit: $643

The results show that profitable trades tend to occur when price breaks clearly outside the EMA range, while losing trades often happen when price remains inside the EMA range, confirming the breakout nature of the strategy.

Binario | MT4
Binario | MT5

Password:forexsignalpro.net

Disclaimer: Always test the robot on a demo account before using real money. Trading involves risk.