Главная
Каталог статей форекс
English instructions and articles

Для того, чтобы использовать все возможности сайта, мы рекомендуем Вам person_add Зарегистрироваться или person Войти

starРейтинг: 5.0/1

date_range Posted: 01.08.2017

date_range Updated: 01.08.2018

remove_red_eyeReviews: 97

dashboardCategory: English instructions and articles

historyHistory versions

merge_typeType: Grider

computerTerminal: МТ4

cloudOR, Swing, Pendulum, Exp, Algorithm


Read about Exp - Swing Pendulum or Swing Algorithm

Description

The model of the well-known strategy Pendulum is the sequential opening of pending orders with an increased lot.

The principle of Cheburashka's work, when two pending orders are placed and when one order is activated, the second order is re-issued before the whole basket is closed by take-profit.

Also, an algorithm for partial closing of the Exp TralPartionClose position has been added .

In our advisor there are three types of opening pending orders!

  1. Auto-opening after installation ( Instant opening AutoTrade )
  2. Opening and maintenance after manual opening ( Manual opening ManualTrade )
  3. Opening on the levels of High Low ( High Low for the past bar TFTrade )

At startup, the advisor sets two Buy Stop and Sell Stop orders at a distance of StopOrderDeltaifUSE from the current price. If Buy Stop worked, Sell Stop is deleted and Sell Stop is set in its place with BuyStop * Martin lot. If Sell Stop is triggered, Buy Stop is deleted and Buy Stop is installed in its place with the Sell Stop * Martin lot.

When the take-profit is achieved, all orders are deleted and everything starts again!

To achieve the swing effect, the parameters StopOrderDeltaifUSE and StopLoss must be equal.

Example:

1 2018.01.02 08:00 buy stop 1 0.01 1.20304 0.00000 1.20614  
2 2018.01.02 08:00 sell stop 2 0.01 1.20272 0.00000 1.19962  
3 2018.01.02 09:00 sell 2 0.01 1.20272 0.00000 1.19962  
4 2018.01.02 09:00 delete 1 0.01 1.20304 0.00000 1.20614  
5 2018.01.02 09:00 buy stop 3 0.02 1.20304 0.00000 1.20335  
6th 2018.01.02 09:00 modify 2 0.01 1.20272 1.20304 1.19962  
7th 2018.01.02 09:03 s / l 2 0.01 1.20304 1.20304 1.19962 -0.32 9999.68
8 2018.01.02 09:03 buy 3 0.02 1.20304 0.00000 1.20335  
9 2018.01.02 09:03 sell stop 4 0.04 1.20271 0.00000 1.20239  
10 2018.01.02 09:03 modify 3 0.02 1.20304 1.20271 1.20335  
eleven 2018.01.02 09:03 s / l 3 0.02 1.20271 1.20271 1.20335 -0.66 9999.02
12 2018.01.02 09:03 sell 4 0.04 1.20271 0.00000 1.20239  
13 2018.01.02 09:03 buy stop 5 0.08 1.20304 0.00000 1.20335  
14 2018.01.02 09:03 modify 4 0.04 1.20271 1.20304 1.20239  
15 2018.01.02 09:05 s / l 4 0.04 1.20304 1.20304 1.20239 -1.32 9997.70
16 2018.01.02 09:05 buy 5 0.08 1.20304 0.00000 1.20335  
17th 2018.01.02 09:05 sell stop 6th 0.16 1.20270 0.00000 1.20238  
18 2018.01.02 09:05 modify 5 0.08 1.20304 1.20270 1.20335  
19 2018.01.02 09:07 s / l 5 0.08 1.20270 1.20270 1.20335 -2.72 9994.98
20 2018.01.02 09:07 sell 6th 0.16 1.20270 0.00000 1.20238  
21 2018.01.02 09:07 buy stop 7th 0.32 1.20304 0.00000 1.20335  
22 2018.01.02 09:07 modify 6th 0.16 1.20270 1.20304 1.20238  
23 2018.01.02 09:08 s / l 6th 0.16 1.20304 1.20304 1.20238 -5.44 9989.54
24 2018.01.02 09:08 buy 7th 0.32 1.20304 0.00000 1.20335  
25 2018.01.02 09:08 sell stop 8 0.64 1.20270 0.00000 1.20237  
26th 2018.01.02 09:08 modify 7th 0.32 1.20304 1.20270 1.20335  
27th 2018.01.02 09:14 s / l 7th 0.32 1.20270 1.20270 1.20335 -10.88 9978.66
28 2018.01.02 09:14 sell 8 0.64 1.20270 0.00000 1.20237  
29 2018.01.02 09:14 buy stop 9 1.28 1.20304 0.00000 1.20335  
thirty 2018.01.02 09:14 modify 8 0.64 1.20270 1.20304 1.20237  
31 2018.01.02 09:27 s / l 8 0.64 1.20304 1.20304 1.20237 -21.76 9956.90
32 2018.01.02 09:27 buy 9 1.28 1.20304 0.00000 1.20335  
33 2018.01.02 09:27 sell stop 10 2.56 1.20270 0.00000 1.20237  
34 2018.01.02 09:27 modify 9 1.28 1.20304 1.20270 1.20335  
35 2018.01.02 09:34 s / l 9 1.28 1.20270 1.20270 1.20335 -43.52 9913.38
36 2018.01.02 09:34 sell 10 2.56 1.20270 0.00000 1.20237  
37 2018.01.02 09:34 buy stop eleven 5.12 1.20304 0.00000 1.20335  
38 2018.01.02 09:34 modify 10 2.56 1.20270 1.20304 1.20237  
39 2018.01.02 09:40 s / l 10 2.56 1.20304 1.20304 1.20237 -87.04 9826.34
40 2018.01.02 09:40 buy eleven 5.12 1.20304 0.00000 1.20335  
41 2018.01.02 09:40 sell stop 12 10.24 1.20270 0.00000 1.20237  
42 2018.01.02 09:40 modify eleven 5.12 1.20304 1.20270 1.20335  
43 2018.01.02 09:41 t / p eleven 5.12 1.20335 1.20270 1.20335 158.72 9985.06

 

 

Use cases

In our advisor there are three types of opening pending orders!

  1. Auto-open after installation,
  2. Opening and maintenance after a manual opening
  3. opening on High Low!

TypeofTrade - Choosing an Expert Advisor Trading Mode!

We made the Expert Advisor so that it worked in 3 different types. Let us examine them in more detail:

AutoTrade or opening after installation :

In this mode, the advisor works to maintain the manual positions:

Algorithm:

  1. At startup, the advisor sets two Buy Stop and Sell Stop orders at a distance of StopOrderDeltaifUSE from the current price.
  2. If Buy Stop worked, Sell Stop is deleted and Sell Stop is set in its place with BuyStop * Martin lot.
  3. If Sell Stop is triggered, Buy Stop is deleted and Buy Stop is installed in its place with the Sell Stop * Martin lot.
  4. If the position receives a loss, then the current series is considered not closed! And the advisor continues to work with the algorithm!
  5. If the position received a take-profit, then the position is closed and everything starts again.

 

Result of work:

ManualTrade or tracking after manual opening :

In this mode, the EA waits for the trader to open the position using our panel for the EAPADPRO advisor

Algorithm:

  1. On startup, the Expert Advisor waits until the user opens the position from our EAPADPRO panel.
  2. Only after the trader opens the position using our panel, the advisor will put the opposite pending order, while the take-profit and stop-loss will be modified according to the system settings
  3. If Buy is open, Sell Stop is set with Buy * Martin lot.
  4. If Sell is open, Buy Stop is installed with the Sell * Martin lot.
  5. If the position receives a loss, then the current series is considered not closed! And the advisor continues to work with the algorithm!
  6. If the position received a take-profit, then the position is closed and everything starts again.
  7. The advisor stops his work until the trader opens a new position.

 

Result of work:

 

TFTrade or work on High Low levels :

In this mode, the Expert Advisor works in the High and Low levels set by the variables:

TFTrade_PERIOD = PERIOD_D1; - Timeframe, according to which the advisor will determine the levels of High Low 
TFTrade_Num = 1; - The number of bars to determine the level.

Code:

 StopOrdersDistance = (iHigh (Symbol (), TFTrade_PERIOD, iHighest (Symbol (), TFTrade_PERIOD, MODE_HIGH, TFTrade_Num, 1))
 -iLow (Symbol (), TFTrade_PERIOD, iLowest (Symbol (), TFTrade_PERIOD, MODE_LOW, TFTrade_Num, 1)))
 / MarketInfo (Symbol (), MODE_POINT); 

Algorithm:

  1. At startup, the Expert Advisor calculates the HIGH and LOW levels according to the set TimeFrame.
  2. Using the formula, the EA calculates the distance and places two pending orders Buy Stop and Sell Stop at a distance StopOrderDeltaifUSE from the current price
  3. If Buy Stop worked, Sell Stop is deleted and Sell Stop is set in its place with BuyStop * Martin lot.
  4. If Sell Stop is triggered, Buy Stop is deleted and Buy Stop is installed in its place with the Sell Stop * Martin lot.
  5. If the position receives a loss, then the current series is considered not closed! And the advisor continues to work with the algorithm!
  6. If the position received a take-profit, then the position is closed and everything starts again.

 

Result of work:

 

Optimization tips

We created this adviser on the Cheburashka algorithm. And the logic of the Expert Advisor's work is designed to perform a mathematical algorithm.

Therefore, all parameters are automatically configured, except for the distance between two pending orders.

You can optimize all the parameters, but we will give some recommendations:

Optimization for TypeofTrade = Manual Trade and AutoTrade

Manual Trade - Maintenance of manual opening

Auto Trade - Constant opening of pending orders

It makes sense to optimize only the parameters: StopOrdersDistance, MaxOrders and Martingale

Optimization of StopOrdersDistance values : It is recommended to set parameters individually for each pair.

  1. For example : If this is the EURUSD currency pair and you trade on the M30 period and the average price movement in the period, for example, 50 bars = 7500 points, then set this parameter for optimization as: start 0, step 100, stop 1000.
  2. For example : If this is the XUGUSD currency pair and you trade on the M1 period and the average price movement in the period, for example, 50 bars = 100 points, then set this parameter for optimization so: start 0, step 10, stop 100.
  3. For example : you need confirmation of the opening signal, and the average price movement in the period, for example 100 bars = 1000 points, then start 0, step 50, stop 500.

Optimizing MaxOrders : In this parameter, you can specify the maximum number of knees in a series of orders, so as not to merge your deposit.

  1. Start = 0; Step = 1; Stop = 10;

Optimizing Martingale values : In this parameter, you can specify an increase in the lot of the next pending router.

 

Start = 0.1 (If Lots> Minimum lot ); Step = 0.1; Stop = 2;

  1. If Martin is less than 1, then each next position and its lot will be less than the previous one.
  2. Values ​​less than 1 it makes sense to use only when the Lots   positions is greater than the minimum lot on the server.
  3. If Martin is greater than 1, then each next position and its lot will be larger than the previous one.
  4. The higher the value of Martin , the more dangerous the trade adviser.
  5. Martingale is a very simple and dangerous strategy.

The difference from ManualTrade is that with manual accompaniment, the adviser performs the task of closing a series of orders in profit and stops the work.

 

Optimization for TypeofTrade = TFTrade

TF Trade -

In this mode, the Expert Advisor works in the High and Low levels set by the variables:

TFTrade_PERIOD = PERIOD_D1; - Timeframe, according to which the advisor will determine the levels of High Low 
TFTrade_Num = 1; - The number of bars to determine the level.

It makes sense to optimize only the parameters: TFTrade_PERIOD, TFTrade_Num

Optimizing TFTrade_PERIOD values : This is the period by which the High and Low levels are built

  1. Start = Period_M1; Stop = Period_D1;

Optimization of TFTrade_Num values : The number of last bars, to determine the levels

  1. Start = 0; Step = 1; Stop = 10;

Options:

  1. trade_ - section "Trade settings".
  2. TypeofTrade - Choosing an Expert Advisor Trading Mode!
  3. StopOrderDeltaifUSE - distance for pending orders (100).
  4. MaxOrders - Maximum number of knees
  5. Magic is the magic number (777).
  6. StopLoss - stop loss, by default it is not used (0).
  7. ModifyStopLossAtOrdersopen - modify the stop-loss of the transaction to the level of opening a pending order
  8. TakeProfit is a take profit, it is not used by default (0). If TakeProfit = -1, then TakeProfit = StopOrdersDistance
  9. AdjustTP - adjustment of take-profit when opening pending orders. 
    AdjustAfter - the number of the knee, after which there will be an adjustment.
  10. StopDayTradingEaAfterTP - if the last position is closed by take profit, the EA stops work until the next day
  11. DeleteOppositeOrder - Delete the opposite order, when triggered.
  12. CloseOppositePositionsAfterTP - Close opposite orders \ positions if the current closed on the takeprofit.
  13. Slippage - slippage (0).
  14. MaxSpreadToNotTrade - The maximum spread at which the Expert Advisor can open the grid 
    MinSpreadToNotTrade - Minimal spread, at which the Expert Advisor can open the grid
  15. LotFix - lots separated by commas to open coups, for example "0.1,0.2,0.3,0.6,0.8,1"
  16. MartinFix - The Martingale coefficient, separated by commas, for opening coups, for example "2,3,1,5,2,1"
  17. MarketWatch - the trading mode (false). At true, first positions / orders are placed without stops, then modification takes place. Suitable for some brokers.
  18. Lots - fixed lot (0.1).
  19. Martin is the Martingale ratio for the next open deal after losing (2).
  20. timetrade_ - section "Trade time settings".
  21. Open Hour is the opening hour for trades (0).
  22. OpenMinute - the minute of opening trades (0).
  23. CloseHour is the closing hour for trades (23).
  24. CloseMinute is the closing time of the trade (59).
  25. Trailing_ - section "Trailing Stop Settings".
  26. TrailingStopUSE - use trailing stop (false).
  27. IfProfTrail - break -even mode, use only for profitable positions (false).
  28. TrailingStop - trailing stop distance, by default the minimum allowed (0) is used.
  29. TrailingStep - the distance step (1).
  30. StartPointToTrail - from what level of profit in points to begin to use the trawl.
  31. RollbackPoint - the number of rollback points to close part of the position.
  32. PercentLotToClose - the number of percent of the initial lot to close the position.
  33. StepPointToFixLevel - the number of items for fixing the next level.
  34. MovingInWLUSE - transfer of the position to the breakeven at the first level of the trailing stop.
  35. Volatility LIMIT Sets 
    TradebyVolatility - Take into account volatility when opening the initial order grid. 
    TFVolatility - Timeframe, by which we will calculate volatility. 
    BarVolatility - The number of bars for determining volatility. 
    PointVolatility - The number of items to determine volatility.

Exp - Swing Pendulum or Swing Algorithm_1
Здесь можно скачать Exp - Swing Pendulum or Swing Algorithm
Купить Exp - Swing Pendulum or Swing Algorithm можно здесь - Прочитать о Exp - Swing Pendulum or Swing Algorithm можно здесь - Обсуждение Exp - Swing Pendulum or Swing Algorithm - стейты, отзывы, комментарии - Отзывы о Exp - Swing Pendulum or Swing Algorithm - Настройки к Exp - Swing Pendulum or Swing Algorithm - Мониторинг Exp - Swing Pendulum or Swing Algorithm - Download Exp - Swing Pendulum or Swing Algorithm - Buy Exp - Swing Pendulum or Swing Algorithm - Read about Exp - Swing Pendulum or Swing Algorithm - Discusion of Exp - Swing Pendulum or Swing Algorithm - Comments of Exp - Swing Pendulum or Swing Algorithm - Settings Exp - Swing Pendulum or Swing Algorithm - Monitoring Exp - Swing Pendulum or Swing Algorithm - Exp - Swing Pendulum or Swing Algorithm скачать бесплатно - Exp - Swing Pendulum or Swing Algorithm ключ - Exp - Swing Pendulum or Swing Algorithm открытый код - Exp - Swing Pendulum or Swing Algorithm скачать
-
Читать Exp - Swing Pendulum or Swing Algorithm
0 $

The model of the well-known strategy Pendulum is the sequential opening of pending orders with an increased lot.

The principle of Cheburashka's work, when two pending orders are placed and when one order is activated, the second order is re-issued before the whole basket is closed by take-profit.

Also, an algorithm for partial closing of the Exp TralPartionClose position has been added .

In our advisor there are three types of opening pending orders!

  1. Auto-opening after installation ( Instant opening AutoTrade )
  2. Opening and maintenance after manual opening ( Manual opening ManualTrade )
  3. Opening on the levels of High Low ( High Low for the past bar TFTrade )
English instructions and articles FinanceApplication Windows 01.08.2018
5 1
Expforex Идеи для Форекс https://www.expforex.com/1NEWDESIGN/NEWLOGO/LOGONEW.png expforex@meta.ua Украина expforex2