• 概述
  • 评论
  • 评论 (19)
  • 新特性

Exp TwoSides

Description:

An Expert Advisor based on the "Two sides of the martingale" strategy. 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.10 1.32716 1.32616 1.32816
2 2013.01.02 09:00 sell 2 0.10 1.32712 1.32812 1.32612
3 2013.01.02 09:03 s/l 2 0.10 1.32812 1.32812 1.32612 -10.00 9990.00
4 2013.01.02 09:03 t/p 1 0.10 1.32816 1.32616 1.32816 10.00 10000.00
5 2013.01.02 09:03 buy 3 0.10 1.32820 1.32720 1.32920
6 2013.01.02 09:03 sell 4 0.20 1.32816 1.32916 1.32716
7 2013.01.02 09:06 s/l 3 0.10 1.32720 1.32720 1.32920 -10.00 9990.00
8 2013.01.02 09:06 t/p 4 0.20 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 coefficient of the martingale for the deal following the losing one. If 1, then it is not used.
  • TrailingStopUSE - use of the trailing stop.
  • IfProfTrail - use the no-loss mode only for profitable positions.
  • TrailingStop - trailing distance, 0 - the minimum allowed.
  • TrailingStep - trailing step.
无评论
版本 16.729 - 2016.08.03
The Expert Advisor has been compiled in the latest terminal build.