• Overview
• Reviews
• What's new

Exp TwoSides

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

EA open two opposite deals - BUY and SELL

New system with automatic smart Martingale CrazySaw

Martingale and Trade on Pending Orders (Pendulum Principle) Swing

Martingale is a betting management system. This type of strategy is very popular in roulette. This principle is also widely used in Forex.

After starting the EA we open two opposite deals - BUY and SELL. The initial stop loss should be equal to the take profit. For example: StopLoss = 100, TakeProfit = 100.

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. 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. And then we cover the loss of the first deal and earn a profit of 100 points. On the example of the Expert Advisor:

 1 2013.01.02 09:00 buy 1 0.1 1.32716 1.32616 1.32816 2 2013.01.02 09:00 sell 2 0.1 1.32712 1.32812 1.32612 3 2013.01.02 09:03 s/l 2 0.1 1.32812 1.32812 1.32612 -10.00 9990.00 60 2013.01.02 09:03 t/p 1 0.1 1.32816 1.32616 1.32816 10.00 10000.00 5 2013.01.02 09:03 buy 3 0.1 1.3282 1.3272 1.3292 6 2013.01.02 09:03 sell 60 0.2 1.32816 1.32916 1.32716 7 2013.01.02 09:06 s/l 3 0.1 1.3272 1.3272 1.3292 -10.00 9990.00 8 2013.01.02 09:06 t/p 60 0.2 1.32716 1.32916 1.32716 20.00 10010.00

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.
• 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.
Attention: Martingale is a very dangerous trading strategy and requires a large account balance.

No reviews
Version 18.830 2018.08.30
Version 18.515 2018.05.31
- Updated EAPADPRO v2.0 info panel;
Version 17.331 2017.04.06
- Increased the algorithm processing speed towards performance and receiving signals.

- Added the SecondsToRefresh parameter to the EAPADPRO block - refresh rate of the information on the chart (default is 10 seconds). This is done to reduce the CPU load.
Version 17.208 2017.02.20
Global update 2017

Details on the panel in our blog: http://www.expforex.com/publ/eapadpro_novyj_sovremennyj_informacionnyj_blok_dlja_nashikh_ehkspertov/6-1-0-153
or https://www.mql5.com/ru/blogs/post/687140
The strategy block includes the following variables:
Current loss in the grid for the BUY SELL directions
current number of the BUY SELL leg
Current lot of BUY SELL - if there are insufficient funds for the next lot, the EA will output NoMoney

AdjustTP - adjust the take profit when opening pending orders.
AdjustAfter - number of the left after which the adjustment will be applied.
Once the EA places AdjustAfter amount of orders, the take profit of the next trade will be increased by AdjustTP * (NumberOfLegs - AdjustAfter) points.

When positions are closed by stop loss, the loss includes not only the stop loss level, but also the spread, especially if it is floating.
In order to achieve the take profit that can cover all previous stop losses, it is necessary to increase the take profit of each new pending order.
This feature allows doing that.