Download Exp – Templates
Download Partial Close and Trail
Closing unprofitable positions by searching and closing profitable positions
This assistant searches through all positions in the terminal to find the least profitable one.
Then, it looks for other positions that are profitable and can cover the loss of the unprofitable position.
By calculating the profits and losses of different positions, the assistant can determine which positions can offset each other’s losses and generate overall profit.
Main Documentation Settings FAQ
Changelog Reviews Comments Extra
Changelog:
Version 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
+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.
EAPADPRO v48
Version 24.125 2024.01.25
Eapadpro v47
Version 23.999 2023.12.27
EAPADPRO v46
Version 23.913 2023.09.18
-EAPADPRO v44
-Last Build Compilation
Version 22.114 2022.01.14
Косметические изменения
Version 22.110 2022.01.12
Update EAPADPRO
Version 21.614 2021.06.12
Correction of information output on Inputs
Version 21.612 2021.06.12
EAPADPRO v40 update, according to the new rules for using the MQL5 Market
Version 21.432 2021.04.30
Version 4/32
Version 21.431 2021.04.30
Up Up date date
Version 21.430 2021.04.30
EAPADPRO v39
-Added additional information that will be displayed on the “Strategy” tab of our panel.
This will help monitor the current situation when closing positions.
Version 20.119 2020.01.19
Исправлена ошибка с MagicToClose
Version 20.116 2020.01.15
UpDateUpDateUpDate
Version 20.115 2020.01.15
Исправление ошибки SymbolToClose
Version 20.112 2020.01.12
Closing algorithm update.
EAPADPRO v33
Version 19.999 2019.12.24
EAPAPDPRO v 33
Version 19.802 2019.08.03
EAPADPRO v31
Added tooltips for parameters in external settings.
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
Close Minus by Plus Update EAPADPRO v 20
Version 18.515 2018.05.29
– Updated EAPADPRO v2.0 info panel;
Attention!
– Renamed the parameters:
TypyClose = TypeOfUnitToClose
MinLossPoss_in_unit = MinLossInUnit
ProfitPerLoss_in_unit = AdditionalProfitInUnit
MagikToClose = MagicToClose
Version 17.208 2017.02.14
Improved EAPADPRO
Version 17.123 2017.01.27
– Added the EAPADPRO information panel
Details on the panel in our blog: https://www.mql5.com/en/blogs/post/687140
Version 16.121 2016.04.07
Fixed the error of closing the profitable trades when there are no unprofitable ones and the MinLossPoss_in_unit parameter is set to +
MinLossPoss_in_unit – should be set in the negative zone. This is the upper limit when searching for unprofitable positions.
If the parameter is set to MinLossPoss_in_unit=-10, then the unprofitable trade (covered by the profitable ones) must be less than -10 dollars (points)
MinLossPoss_in_unit = parameter that limits the EA operation if the negative trade is greater than the MinLossPoss_in_unit. For example, when opening a trade, it profit = -spread.
Version 15.731 2015.08.03
Added the message to the strategy tester stating that the product cannot be tested in the strategy tester.
Version 15.729 2015.07.30
Added: disabling algorithm if there are more than 1 positive trade.
The algorithm works if there are 2 or more positions to be closed.
Version 14.965 2014.12.23
– Compiled under new build.
– Added enumerations to select calculation and close type.
Version 14.709 2014.07.09
Added array release before every pass to avoid closing positions with the same tickets.
This post is also available in: English Українська Portuguese Español Deutsch Chinese Русский Français Italiano Türkçe 日本語 한국어