• Overview
  • Reviews (1)
  • Comments (23)
  • What's new

Exp TralPartionClose

"Exp TralPartionClose" - assistant EA. Closes a part of a position during rollback.


Description:

This is an assistant EA fixing part of the profit at the rollback movement of the currency pair.

The tactics of profit fixing is provided on our website.


Example:

1 2013.03.07 00:00 buy 1 2.00 1.29667 0.00000 0.00000 
3 2013.03.07 04:07 modify1 2.00 1.29667 1.29667 0.00000 
4 2013.03.07 11:07 close 1 0.40 1.30174 1.29667 0.00000 202.80 10202.80
5 2013.03.07 11:07 buy 3 1.60 1.29667 1.29667 0.00000 
6 2013.03.07 15:49 close 3 0.40 1.30668 1.29667 0.00000 400.40 10603.20
7 2013.03.07 15:49 buy 4 1.20 1.29667 1.29667 0.00000 
8 2013.03.07 16:51 close 4 0.40 1.30982 1.29667 0.00000 526.00 11129.20
9 2013.03.07 16:51 buy 5 0.80 1.29667 1.29667 0.00000 
10 2013.03.08 16:08 s/l 5 0.80 1.29667 1.29667 0.00000 -2.88   11126.32
  • 1 - opened a Buy deal.
  • 2 - after passing StartPointToTral points, set breakeven (if MovingInWLUSE=true).
  • The price goes up, we trail the rollback start line up following the price.
  • 3 - after a rollback from our line of more than OtkatPoint points down, we fix profit, closing PercentLotToClose percent of our lot. In this case, the next level of the rollback start is equal to "our current rollback line" + StepPointToFixLevel points. That is, the price must again pass StepPointToFixLevel points up from the line, and only then the algorithm is active again.
  • 5 - again rollback, again fix profit of 20% of the initial volume. The algorithm is repeated.
  • 10 - trend reversal, the position is closed at the breakeven (+swap). Our profit is about 1,125 dollars.


Settings:

  • StartPointToTral - the level in points to start using trailing.
  • OtkatPoint - the number of rollback points to close a part of the position.
  • PercentLotToClose - percent of the initial volume to close a position.
  • StepPointToFixLevel - the number of points to fix the next level.
  • MovingInWLUSE - set the position to breakeven with the first level of the trailing stop.
  • OrderToAverage - the type of orders. -1 - all orders, 1 - Sell, 0 - Buy.
  • MagikToAverage - the magic number of the orders. -1 - all orders.
Victor Epand
715
2017.02.10 13:03 
 

This is a valuable and profitable utility for trailing partial take profits.

Version 17.208 - 2017.02.20
General improvements of EAPADPRO

- Added the DisableLockClose option - disable using the partial closure algorithm, if a LOCK of two positions in different directions with the same lot size has been detected on the account.
For example: if you use the SafetyLock EA and your positions has been locked in a "safe lock", this option (DisableLockClose = true) disabled partially closing this LOCK.
Version 17.121 - 2017.01.27
- Added parameter
NumbersOfClose - The number of position closures by trailing. 0 - unlimited
- Added parameter
FixLotToClose - Fixed lot value for closing each step. 0 - considers the lot percentage PercentLotToClose.
- Added parameter
FixTrailingStopLevel - Fix the stop loss level when new level appear, for example:
FixTrailingStopLevel = 100. if the price breaks the fixing level of StepPointToFixLevel(Orange Violet),
then the stop loss is placed at the Current level (Red Blue)+-FixTrailingStopLevel points

- Added lines to the chart:
Red Blue - Main lines of the defined levels
Yellow - Rollback level
Orange Violet - Next levels for fixing

If the position passes Red Blue, Yellow line appears for a rollback and Orange Violet line for fixing the next level


Fixed working with long tickets
Fixed errors with StepPointToFixLevel
Otkat was renamed to RollBack
- Added the EAPADPRO information panel
Details on the panel in our blog:
or https://www.mql5.com/ru/blogs/post/687140

The following data has been moved to the Strategy Info block:
"BUY Next Level" - Next fixing level for BUY
"SELL Next Level" - Next fixing level for SELL
"BUY Rollback" - Partial closure level for BUY
"SELL Rollback" - Partial closure level for SELL
"BUY LotToClose" - Partial closure lot for BUY
"SELL LotToClose" - Partial closure lot for SELL

Attention: The data is displayed for 1 BUY and 1 SELL position.
Version 15.126 - 2015.01.27
Re-compiled for the new build