Forex Exp Two Sides Robot

An Expert Advisor based on the “Two sides of he martingale” strategy.

EA open two opposite deals – BUY and SELL

How it Works?

  1. After starting the EA we open two opposite deals – BUY and SELL.
  2. ‘The initial stop loss should be equal to the take profit. For example: StopLoss = 100, TakeProfit = 100.
  3. In this case, when stop loss triggers on one order, we get the activation of take profit on the second one. Thus the result is 0.
  4. Then the next series of deals is opened, but on the following condition. The volume of the next deal of the same type is equal to Lot * martingale.
  5. And then we cover the loss of the first deal and earn a profit of 100 points.

Test results:

Forex Exp Two Sides Robot

  • Parameters:

    • Magic – magic number.
    • StopLoss – the stop loss value, 0 – not used.
    • TakeProfit – the take profit value, 0 – not used
    • Slippage – slippage
    • MarketWatch – trading mode. If MarketWatch = true, first positions/orders without stops are placed, and then they are modified (for some brokers).
    • Lots – fixed lot.
    • Martin – the martingale coefficient for the deal following the losing one. If 1, then it is not used.
    • MaxSpreadToNotTrade – maximum spread filter for opening trades.
    • MinSpreadToNotTrade – minimum spread filter for opening trades.
    • MaxOrders = maximum number of legs (trades) in one series in one series.
    • AdjustTP – adjustment of the take profit in points.
    • AdjustAfter – the number of the leg, after which the take profit will be increased\decreased by AdjustTP points.
    • StopDayTradingEaAfterTP – stop the EA operation after reaching take profit in the current day. The EA starts trading the next day only.
    • TrailingStopUSE – use trailing stop.
    • IfProfTrail – use the breakeven mode only for profitable positions.
    • TrailingStop – trailing distance, 0 – the minimum allowed.
    • TrailingStep – trailing step.

Free Download

Forex Exp Two Sides Robot for MetaTrader 4


Copy and paste the file into the MQL4 Experts folder of the Metatrader 4 trading platform.

You can access this folder from the top menu as follows:

File > Open Data Folder > MQL4 > Experts (paste here)

Other forex indicators and strategies

Leave a Comment