Download Close Minus by Plus
Download INFOPad
The Partial Close and Trail assistant EA is designed to close a portion of a position (referred to as a lot) during a rollback.
This EA is programmed to automatically close a profitable position in stages when the price initially moves in the direction of profits and then retraces back.
The Partial Close and Trail assistant EA is a specialized tool that operates within the context of trading and investments. Specifically, it is designed to help traders close a portion of their trading position (known as a lot) in the event of a rollback.
This means that if the market begins to move against a trader’s position, causing a potential loss, the EA can be configured to automatically close a portion of the position in order to mitigate the loss.
This feature is particularly useful for traders who are looking to manage their risk and limit their exposure to market volatility.
In addition to partial closure, the EA also includes a trail feature, which allows traders to set a trailing stop loss that follows the market as it moves in their favor.
Overall, the Partial Close and Trail assistant EA is a powerful tool that can help traders navigate the complex and ever-changing world of financial markets.
Main Documentation Settings FAQ
Changelog Reviews Comments Extra
Changelog:
ersion 24.404 2024.04.04
Global Update EAPADPRO v55
–Added: information about profit from closed positions to the chart.
The information is displayed for each bar of the current timeframe.
You can change the timeframe to see the result of trading on a certain bar of the current timeframe.
If several positions/deals are closed on one bar of the current timeframe, the trading result is summarized, and the total information for a certain bar is displayed.
The information is updated when the next position/deal is closed.
You can turn off showing history in the panel settings.
===========================================================================================
–Added: The status of the Expert Advisor operation if it was launched on the server from “VPS MQL MetaQuotes”.
When Expert Advisor is running on the server from MetaQuotes, a message will be created on the home computer that Expert Advisors are running on the server “VPS MQL MetaQuotes”. The smiley face is blue.
Attention: If an Expert Advisor is launched on both the server and the home computer, it can trade in parallel on 2 terminals (server “VPS MQL MetaQuotes” + home computer); there may be conflicts.
Attention: If the Expert Advisor is launched on the server “VPS MQL MetaQuotes”, do not Turn it on work on the home computer to avoid conflicts.
Frequency of polling the status of work on the server = 1 day.
After deinitialization of the Expert Advisor on the server – It will get the status – stopped.
To test the work on the server from “VPS MQL MetaQuotes”, pending orders are created!
===========================================================================================
–Added: The error status of the Expert Advisor operation can now be read on the EAPADPRO panel.
You can click on the Smile or the Expert Advisor operation status bar and you will be shown a message about current errors of Expert Advisor operation.
If you click on the Smile button on the panel, you will be shown the causes and errors and their solutions with pictures.
===========================================================================================
–Added: Notification of errors and opening/closing of trades to the chart in the form of InfoBox.
Notification is shown for 4 types:
—Opening a new trade;
—Closing a deal;
—Modification of a trade;
—Error received by Expert Advisor from the server;
In the EAPADPRO panel settings, you can turn on or off the notification type you need.
Notifications can be viewed as they arrive in the notification queue.
Notifications are accumulated in a data array each time you install/reinstall/change Expert Advisor settings.
In the EAPADPRO header you can also enable disable INFOBOX.
===========================================================================================
–Added: Working with Telegram (Beta version)
For Expert Advisor to work with the Telegram bot, you need to set up the bot on your phone and create a “public” or “private” channel.
To receive notifications from your account, you need to assign your bot as an administrator of your “public” or “private” channel.
Attention! Sending notifications and working with commands takes computer resources! Use the Telegram bot only for your own needs.
New settings for working with Telegram:
EAPadPRO2=” =============== Telegram bot “;
==input ENUM_UPDATE_MODE TG_UpdateMode=UPDATE_SLOW –> Update Mode. Timer speed, to receive commands from Telegram bot. The faster the timer runs, the more computer resources will be used! Please do not change it unnecessarily. 2sec,3sec,10sec
==TG_PRIORITY=TG_HOME_VPS –> Priority of work. This is the priority mode when the Telegram bot works on the MetaQuotes VPS server and your home computer.
TG_HOME_ONLY=1, // Only the HOME bot. The Telegram bot works only on the home computer.
TG_VPS_ONLY=2, // Only the VPS bot. The Telegram bot works only on the MetaQuotes VPS server.
TG_VPS_HOME=3, // First VPS bot, second HOME bot. The Telegram bot works on the MetaQuotes VPS server if you upload it to the server. If not, it will work on your home terminal. Check the work on the VPS server every 10 minutes.
TG_HOME_VPS=4, // First HOME bot, second VPS bot. The Telegram bot works on a home computer, but if the home computer/terminal is turned off, it will work on the VPS server from MetaQuotes. Check the VPS server’s work every 10 minutes.
Attention! Screenshots are not available on the VPS server from MetaQuotes!
==TG_Token=”” –> Token bot. Token (unique code) of the bot that will send notifications and receive commands
==TG_ChannelName=”” –> –> Public Channel Name @. Or “private” ID starts -100 of the private channel. That will send notifications about opening/closing/modification/errors and screenshots from the terminal.
==TG_UserNameFilter=”” –> Whitelist Usernames. List of users, starting with @, who can use the bot.
Attention! Sending notifications and working with commands takes computer resources! Use the Telegram bot only for your own needs.
==TG_UseBotTimer=false;//TG_UseBotTimer –> Working with the bot from the phone
New notification type added to EAPADPRO panel settings:
==Notice Open TG – Send a notification to the Telegram channel if a trade is open;
==Notice Close TG – Send a notification to the Telegram channel if a trade is closed;
==Notice Modify TG – Send a notification to the Telegram channel if a trade is modified;
==Notice Error TG – Send a notification to the Telegram channel if an error is received;
==ScreenShot TG – Send a screenshot to the Telegram channel if a trade is opened or closed;
Attention! This is a beta version of working with the Telegram bot. We are working on improving and adding new features.
If you have any suggestions, please write in the “Comments” section.
===========================================================================================
–Improvement: Code optimization to increase speed.
–Improvement: The speed of the panel update in the strategy tester is now calculated automatically depending on the speed of quotes arrival.
This is done to increase the speed of the program in the strategy tester.
Information update is now equal to 1 real second.
–Improvement: The speed of the program running EAPADPRO in the strategy tester.
Attention! Events in the strategy tester are processed only when a new tick is created.
If a new tick (minimum price movement) is not created, then the panel waits for the next tick.
With Visualization:
Version 48: 390sec (TickSniper 2024-2024)
Version 55: 244sec >>159% (TickSniper 2024-2024)
w/o Visualization:
Version 48: 363sec (TickSniper 2020-2024)
Version 55: 220sec >>165% (TickSniper 2020-2024)
with Visualization:
Version 48: 15750sec (TickSniper 2020-2024)
Version 55: 6220sec >>253% (TickSniper 2020-2024)
–Improvement: The color of the button to close a position on the chart changes depending on the current profit of this position.
–Improvement: Graphic improvements to optimize the Expert Advisor’s performance
–Improvement: The account deposit Symbol is cent ¢, USD $, or eur €. All others are the first letter of the deposit currency name.
–Improvement: When visual testing is completed, objects are not removed from the graph.
–Improvement: When creating screenshots after opening/closing positions, the EAPAPDPRO Control Panel will be expanded to show full information.
This is done in order to study the trading history of Expert Advisor on the visualization graph after testing is completed.
–Fixed: Managing positions and orders from the chart when the panel is minimized.
–Fixed: Corrected the error of clearing the chart from unused order labels.
–Fixed: AutoSize when switching charts.
–Fixed: Drawing errors to Print when the Expert Advisor runs on “VPS MQL MetaQuotes”
Version 24.127 2024.01.28
EAPADPRO v48
+Added languages Chinese, Japanese, Korean, and Turkish.
+Added full control from the chart. Closing positions/orders, removing Stop Loss / Take Profit.
For full management and testing of Expert Advisor in the strategy tester.
Version 24.126 2024.01.26
Eapadpro v47
Version 23.999 2023.12.27
EAPADPRO v46
Version 23.913 2023.09.18
-EAPADPRO v44
-Last Build Compilation
Version 21.612 2021.06.12
EAPADPRO v40
Version 21.503 2021.05.03
EAPADPRO v39
Version 19.802 2019.08.04
EAPADPRO v31
Version 19.109 2019.01.10
– MagicToTrailPartionClose – Added multimagics feature.
Magic order for duplication, magics can be specified separated by commas:
0 – orders opened manually;
123,345,147 – all positions with magics 123,345,147;
-1 – all magics without exception.
Version 19.107 2019.01.07
– Update EAPADPRO v25;
– Additional languages added to the panel: Spanish, Portuguese (Brazil), German, Chinese, Japanese;
The translation was made using the GOOGLE Translator + MQL + Terminal site!
if you find an error in your language, please report it in messages. Thank!
– Increase the speed of the panel;
Version 18.830 2018.08.30
Partial Close and Trail Update EAPADPRO v20
Version 18.515 2018.05.23
Partial Close and Trail
– Updated EAPADPRO v2.0 info panel;
Version 17.208 2017.11.13
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
This post is also available in: English Українська Portuguese Español Deutsch Chinese Русский Français Italiano Türkçe 日本語 한국어