Skip to content
Forex Indicator System Thailand
Back to marketplace
TrendEAMedium

Binario (Moving Average band breakout EA)

EA that places buy stop and sell stop orders outside an MA band built on High and Low prices

Binario (Moving Average band breakout EA) on an MT5 chart
Example on an MT5 chart

Download this EA for free

Download right away. Nothing to fill in.

Version
1.01
Published
11/21/2026
File size
33 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.01Current11/21/2026 · 33 KB

    First release on this site.

How to use

Drag the EA onto a chart and enable Algo Trading. It uses the symbol and timeframe of that chart and needs at least 144 bars on the chart, otherwise it does not trade.

For a fixed lot set MaximumRisk to 0 and set Lots. The EA does not place orders if free margin is below 1000 times the calculated lot. TakeProfit and PipDifference are in pips, with the code adjusting for 5-digit and 3-digit symbols.

Parameters

NameDefaultDescription
MA_Period144Period of the two MAs that form the band, one calculated on High prices and one on Low prices.
MA_MethodMODE_EMAMA method (SMA, EMA, SMMA or LWMA).
TakeProfit115Take-profit distance in pips, measured from the calculated entry level.
PipDifference20Distance in pips from the MA band edge at which the pending orders are placed, so price has to break out first.
Lots0.1Fixed lot size. It is only used when MaximumRisk is 0.
MaximumRisk2Multiplier for sizing the lot from free margin (lot = free margin x this value / 50000). If above 0 the Lots input is ignored. 0 means fixed Lots.
Slippage3Maximum accepted slippage in points.
OrderCommentaryBinarioComment text put on the orders the EA places.
Magic16384Magic number that separates this EA's orders from other orders.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

The EA builds a band from two moving averages of the same period, the upper one calculated on High prices and the lower one on Low prices. While the Bid is inside the band it places a buy stop above the upper line and a sell stop below the lower line, offset from the band edge by PipDifference.

Every order carries a stop-loss and a take-profit. The buy stop-loss sits at the lower band line and the sell stop-loss at the upper band line; take-profit is TakeProfit pips beyond the entry level. Pending orders, and the stop-loss of open positions, are updated on every tick to follow the MA lines.

With the default settings the lot size is calculated from free margin (MaximumRisk is above 0, so Lots is not used), so the lot grows as the account grows.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.