Close Minus by Plus, Closing unprofitable positions by searching and closing profitable positions

The X and The xCustomEA: Testing and Optimization
Swing strategy (Pendulum). Automatic opening of 2 opposite pending orders, OCO orders.
The X and The xCustomEA: Testing and Optimization
Swing strategy (Pendulum). Automatic opening of 2 opposite pending orders, OCO orders.

Close Minus by Plus, Closing unprofitable positions by searching and closing profitable positions Video Thumbnail

  • Main
  • Documentation
  • Settings
  • FAQ
  • Changelog
  • Reviews
  • Comments
  • Extra

About Close Minus by Plus

Closing unprofitable positions by identifying and closing profitable ones (Close-+).

The Expert Advisor (EA) is designed to close unprofitable positions by identifying and closing profitable ones.

This assistant searches among all positions for the most unprofitable position in the MetaTrader terminal.

Furthermore, by searching for the remaining profitable positions, it calculates a series of positions that can cover the loss when the profit of one or more positions exceeds the loss of another position.

If such a set of positions is found, the advisor closes them.

A series of positions can consist of any position.

The maximum number is adjustable in the advisor settings.

You can also specify the minimum loss for the search and additional profit required for closing.

How Close Minus by Plus Works on the Chart

Suppose:

  1. You open a BUY #1 position at a price of 1.600;
  2. The price drops to 1.550, resulting in a current loss of -50 pips;
  3. Breakeven point (Average Price) = 1.600;
  4. If we open SELL #2, SELL #3, and SELL #4;
  5. The Expert Advisor (EA) starts executing the main algorithm.
  6. Then the total profit will be +$5;
  7. The EA activates the algorithm, and 4 positions must be closed.
Close Minus by Plus Strategy Chart

How Does Close Minus by Plus Work?

Close Minus by Plus Example

Close Minus by Plus Functions

RollBack example

Close-+

Close-+ log

What do people write about Close Minus by Plus?

  • leogarcia87
    Very useful tool. Thank you
    leogarcia87
    ⭐⭐⭐⭐⭐
  • Adnow
    it's very good
    Adnow
    ⭐⭐⭐⭐⭐
  • Gellet Manchenella
    the best utility I have used. Easy to set up and works great to recover losses. But if it can close a partial lot of the profit-making trade in the direction of the trend will be better. In my case, a profit-making trade of $400 was closed against a trade of $-100. There was potential to make more money. When profit is higher than loss-making trade (with profit target) you should consider closing to the extent of loss+profit target. Hope you will consider.
    Gellet Manchenella
    ⭐⭐⭐⭐⭐
  • afsff saaa
    very smart idea i love this EA It solved many problems
    afsff saaa
    ⭐⭐⭐⭐⭐
  • E D
    So far the best utility I have used. Easy to set up and works great to recover losses. It's actually amazing to watch results. No setfiles are needed because all accounts are different. Read the instructions and practice on a demo account. Play with the settings and once you find the best settings, set it up on live account. Works great.
    E D
    ⭐⭐⭐⭐⭐
  • Vadim V.
    I love that EA - Utility. Designed very smart-well. I run it on a demo live acct and the results just excellent covering losses and minizine trading risks. I plan to use it in my live acct next week. Close + by - utility works well with other EAs too. My 5 stars to Vladislav for his work business and IT development creativity. FYI, I use TickSniper EA on live acct and like it. Well done, Vlad.
    Vadim V.
    ⭐⭐⭐⭐⭐
  • Staffan Ofwerman
    This is a great EA to add to every setup. Great help from the seller and it works fantastic. It will take away the worst trade with the help of your profit trades. And with the latest update it's even better when you can see so much info about what is happening. Is it possible to give it 6 stars?
    Staffan Ofwerman
    ⭐⭐⭐⭐⭐
  • Thank you for the good work!!! Keep up the good work!!!
    Calogero Vella
    ⭐⭐⭐⭐⭐
  • My admiration for you is as vaet as the surging river!!!It would be nice if it could be operated on the panel.
    Zhong Liang Zhao
    ⭐⭐⭐⭐⭐
  • Nepomnjashchy
    У меня все четко это один из 3 советников который стоит у меня в терминале
    Nepomnjashchy
    ⭐⭐⭐⭐⭐
  • abdelhamid khabkhabi
    Thank you a very good EA
    abdelhamid khabkhabi
    ⭐⭐⭐⭐⭐
  • bighead1971
    excellent!
    bighead1971
    ⭐⭐⭐⭐⭐
  • Nepomnjashchy
    У меня все четко это один из 3 советников который стоит у меня в терминале
    Nepomnjashchy
    ⭐⭐⭐⭐⭐

You can Download free Close Minus by Plus

FULL for FREE!

This is FULL FREE version without limits!
You can download and install our program for free!

Looking for More Opportunities to Secure Overall Profits?

clp

CLP CloseIfProfitorLoss with Trailing. Control of the total profit or loss with profit trailing.

The Expert Advisor (EA) offers advanced features for managing and closing positions in MetaTrader, specifically upon reaching a predetermined level of total profit or loss. With the profit trailing function enabled, the EA dynamically adjusts stop levels to secure profits as they grow.

Closing unprofitable positions by searching and closing profitable positions. FREE

Useful links


Download MetaTrader

How to Buy How to Install Strategy Tester VPS MetaQuotes MT4 Log Files MT5 Log Files

Description

Closing unprofitable positions by identifying and closing profitable ones (Close Minus by Plus)

  1. This assistant searches among all positions for the most unprofitable position in the MetaTrader terminal.
  2. Furthermore, by searching for the remaining profitable positions, it calculates a series of positions that can cover the loss when the profit of one or more positions exceeds the loss of another position.
  3. If such a set of positions is found, the advisor closes them.
  4. A series of positions can consist of any position.
  5. The maximum number is adjustable in the advisor settings.
  6. You can also specify the minimum loss for the search and additional profit required for closing positions.

Continuing the topic of position leveling, we offer a more reliable and user-friendly algorithm for overlapping loss-making positions.

Of course, everyone has the right to choose their method of eliminating negative positions.

Our last article describing the assistance for the trader, namely the Closing on the total profit or loss, with trailing profit, brought quite good results.

This article describes an algorithm that was developed 11 years ago but has yet to gain widespread recognition.

However, with the presentation to our valued customers, the project has gained renewed interest.

Close Minus by Plus

Foreword

Firstly, we would like to express our gratitude to our regular clients.

The Expert Advisor Close Minus by Plus can close losing positions by identifying and closing profitable positions.

This assistant searches for the most loss-making position (Deal) among all positions in the MetaTrader terminal.

Furthermore, by searching for other positions, it calculates a series of positions (Deals) that can cover the loss and closes them with a combined average profit.

The series of positions (Deals) can include any position (Buy or Sell).

The maximum number of positions can be set in the Expert Advisor settings.

Assistant Close Minus by Plus Work

The process involves placing the Expert Advisor on a separate chart (for example, EURUSD), installing the EA, and continuing to work on your terminal.
When the strategy condition is met, the Expert Advisor activates and begins its algorithm.

Example #1: Close Minus by Plus

Close Minus by Plus Example 1

Start Working and Open BUY

Opening Buy Position

Additional SELL

Additional Sell Positions

Executing Algorithm and Closing by Total Profit

Executing Algorithm and Total Profit

Results in Report

Results Report
Strategy Tester Animation

Results in Log Files

################################################################################
close #2 sell 0.01 EURUSD at 1.22309 at price 1.21746
close #3 sell 0.01 EURUSD at 1.22078 at price 1.21746
close #4 sell 0.01 EURUSD at 1.22168 at price 1.21746
Tickets of profitable positions: ..2.4.3.
close #1 buy 0.01 EURUSD at 1.22524 at price 1.21708
Tickets of loss positions: 1
Numbers of positions to Close: 3
All profit from open positions: $13.17
Maximum profit ticket: 2
Maximum profit: $5.63
Maximum loss ticket: 1
Maximum loss: -$8.16
Overlapping loss positions by closing profitable positions started using the minus:
################################################################################

Example #2: Close Minus by Plus

Example #2: Close Minus by Plus

Example of How the Algorithm Works:

16:57:34 Exp - Exp - CloseMinusByPlus GBPUSD, H1: initialized

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Overlapping of loss-making positions by closing of profitable positions started:

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest negative: -51 pips

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest minus ticket: 222064678

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest plus: 22 pips

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest plus of the ticket: 222064722

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Aggregate Profit for the Positions Found: 72 pips

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Number of positions to close: 5

16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Tickets for closing unprofitable positions: 222064678

16:58:42 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064678 buy 0.10 GBPUSD at 1.65055 at price 1.65004

16:58:42 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Tickets for closing profitable positions: 222064722, 222064691, 222064750, 222064878, 222064715

16:58:53 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064878 sell 0.10 EURUSD at 1.35773 at price 1.35774

16:58:54 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064750 sell 0.10 GBPUSD at 1.65034 at price 1.65025

16:58:54 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064722 sell 0.10 GBPUSD at 1.65039 at price 1.65025

16:58:55 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064715 sell 0.10 EURUSD at 1.35765 at price 1.35773

16:58:56 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064691 sell 0.10 GBPUSD at 1.65038 at price 1.65024

As you can see from this example, we had many open positions (chaotic opening).

In the settings, we configured the calculation to start when the largest unprofitable position has a loss of -50 pips (MinLossInUnit = -50) and the aggregate profit found is 20 pips more (AdditionalProfitInUnit = 20).

Additionally, we set a limit to close no more than 5 orders (MaxPos_in_Class = 5).

  1. The EA found a position with a loss of -51 pips.
  2. Additionally, a series of orders with a profit of +72 pips.
  3. It then closed both the unprofitable position and the series of profitable positions.
Algorithm Execution Example
Profit and Loss Management

An Example of This Algorithm: Close Minus by Plus

Without Function:

Without Close Minus by Plus Function

With Closing Function by Overlapping:

With Close Minus by Plus Function

Advanced Utilities:

Software - Software Archives - Best Ideas for MetaTrader - Image 20 - partialclose

Partial Close and Trailing. Partial closing of positions on rollbacks

Partial Close and Trailing is an EA assistant that closes a portion of a position (i.e., part of the lot) during a rollback. The EA closes a profitable position partially when the price first moves in the direction of profits and then retraces.

clp

CLP CloseIfProfitorLoss with Trailing. Control of the total profit or loss with profit trailing.

The Expert Advisor (EA) offers advanced features for managing and closing positions in MetaTrader, specifically upon reaching a predetermined level of total profit or loss. With the profit trailing function enabled, the EA dynamically adjusts stop levels to secure profits as they grow.

Software - Software Archives - Best Ideas for MetaTrader - Image 15 - safetylock

SafetyLOCK PRO Protect your positions by locking using the opening of opposite pending orders. Lock Hedge

SAFETYLOCK: Secure Your Trades Against Sharp Market Reversals Trading on financial markets involves high risks, particularly during sharp market reversals. SAFETYLOCK is a unique tool that helps traders minimize losses by automatically placing a counter order for an existing position. You can now trade with confidence,

Software - Software Archives - Best Ideas for MetaTrader - Image 9 - averager

Averager. Averaging trading positions. Opening deals against the trend and on the trend!

Averaging positions. Opening of additional positions on the trend and against the trend with the function of the general trailing stop of the profit! The adviser can open additional positions on the trend and against the trend! Includes average trailing stop for a series of positions! Increasing and decreasing the lot.

Software - Software Archives - Best Ideas for MetaTrader - Image 22 - markettimepad

Market Time Pad. Indicator for MetaTrader with trading sessions

The Time Indicator displays the current time across the major world markets and highlights the active trading session. It is easy to use and takes up minimal space on the chart, making it ideal for seamless integration with Expert Advisors and other tools like VirtualTradePad.

Software - Software Archives - Best Ideas for MetaTrader - Image 23 - infopad

InfoPad, Online Information Panel for MetaTrader

InfoPad is a highly useful information panel designed to provide crucial information on the specific currency pair selected in the MetaTrader terminal. This panel offers in-depth and real-time data such as the current Bid and Ask prices, spread, high and low prices, and much more.

External Variables and Settings

NameDescription
TypeOfUnitToCloseType of profit and loss.
In dollars or points (pips).
MinLossInUnitMinimum loss of a position in units (TypeOfUnitToClose) considered by the EA.
An order with a loss of “MinLossInUnit” units (dollars or pips) must be in the negative zone.
This is important for identifying loss-making positions.

For example:
MinLossInUnit = -100  TypeOfUnitToClose = dollars,
the EA looks for or expects a position with a loss of -100 dollars or more, 
e.g., -100 dollars, -150 dollars, -200 dollars, etc.
A position with a loss of -99 dollars is ignored.
AdditionalProfitInUnitThe number of profit units required to cover the loss.
A position (one or several deals) with a total profit exceeding the loss by “AdditionalProfitInUnit” units.

For example:
AdditionalProfitInUnit = 10  MinLossInUnit = -100  TypeOfUnitToClose = dollars:
The advisor looks for at least two positions, one with a loss of -100 dollars and another with a profit of +110 dollars.
If such positions (Deals) are found, the Expert Advisor (EA) will close these positions (Deals).
MaxPos_in_ClassThe “MaxPos_in_Class” parameter limits the number of profitable positions to close.
For example:
MaxPos_in_Class = 3, then the EA will look for a set to close from a maximum of 3 profitable positions plus 1 unprofitable.
FirstSymbolCloseSearch for pairs of positions and close only the currency pair being processed.
You can turn off (false) the FirstSymbolClose parameter; 
then, the EA will close any pair from the losing and profitable positions across the entire account, regardless of the currency pair.
When you turn on (true) FirstSymbolClose, the EA monitors and closes a series of positions from one currency pair.
OpenHoura OpenMinuteaThe start time of the Expert Advisor.
CloseHoura CloseMinuteaThe end time of the Expert Advisor.
OrderToClosePosition Type:
-1 = All Orders,
1 = Sell,
0 = Buy.
MagicToCloseMagic Number of positions:
-1 = any magic numbers.
You can specify a unique magic number for positions to be processed.
You can specify multiple magic numbers separated by commas.
For example: 777,888,999
SymbolToCloseThe currency pair for monitoring:
-1 = All symbols
1 = Only the current symbol (the symbol where the EA is installed)
You can list multiple currency pairs separated by commas.
For example: EURUSD, USDCHF, USDJPY

FAQ about Close Minus by Plus

Our General FAQ

FAQ Answers to the most popular questions

You can download my EA in the Files section!

If you wish to thank the author for this project – you can click the Thank You button.

Or buy one of our products

What is the Close Minus by Plus Expert Advisor?

The Close Minus by Plus Expert Advisor is designed to close unprofitable positions by identifying and closing profitable ones to offset losses, enhancing overall trading efficiency.

How does the Close Minus by Plus EA identify unprofitable positions?

The EA scans all open positions in the terminal to find the most unprofitable position, targeting it for closure by offsetting with profitable positions.

What criteria does the EA use to close positions?

The EA closes positions based on minimum loss thresholds and requires an additional profit to cover the losses, ensuring that closed positions result in a net positive outcome.

Can the number of positions to close be adjusted?

Yes, the maximum number of positions that the EA can close is adjustable in the advisor settings, allowing traders to customize based on their trading strategy.

How do I install the Close Minus by Plus EA?

To install the EA, place it on a separate chart (e.g., EURUSD) in your MetaTrader terminal, then activate the EA to begin its operations based on your configured settings.

What settings can be configured in the EA?

You can configure settings such as the minimum loss to trigger the EA, the additional profit required to cover losses, and the maximum number of positions to close simultaneously.

Does the EA work with both Buy and Sell positions?

Yes, the EA can handle both Buy and Sell positions, allowing it to close any type of position that meets the defined criteria.

How does the EA calculate the positions to close?

The EA calculates a series of profitable positions whose combined profit exceeds the loss of the unprofitable position, ensuring that closing these positions covers the loss effectively.

Is there a limit to the number of positions the EA can handle?

The maximum number of positions the EA can handle is configurable, allowing traders to set it according to their trading volume and risk management preferences.

Can I specify the minimum loss for the EA to activate?

Yes, you can set a minimum loss threshold in the EA settings, which determines when the EA should start searching for profitable positions to offset the loss.

What is the AdditionalProfitInUnit parameter?

The AdditionalProfitInUnit parameter specifies the extra profit required from closing positions to ensure that the total profit exceeds the loss by a defined amount.

How does the EA handle multiple loss-making positions?

The EA identifies the largest loss-making position and attempts to cover its loss by closing a series of profitable positions, effectively managing multiple losses by prioritizing the biggest one.

Can the EA close positions of any size?

Yes, the EA can close positions of any size, as long as they meet the criteria set in the advisor’s settings for minimum loss and additional profit.

Does the EA support trailing profits?

Yes, the EA supports trailing profits, allowing it to lock in profits as they accumulate while managing and closing positions to optimize overall performance.

How does the EA ensure it doesn’t close too many positions?

The EA uses the MaxPos_in_Class setting to limit the number of positions it can close at one time, preventing excessive closures and maintaining control over trading activities.

What kind of reports does the EA generate?

The EA generates detailed reports and log files that include information about closed positions, profits, losses, and the overall performance of the algorithm.

Is the Close Minus by Plus EA suitable for all trading strategies?

While the EA is versatile, it is best suited for traders who actively manage multiple positions and seek to automate the process of mitigating losses through profitable closures.

How reliable is the Close Minus by Plus algorithm?

Developed and refined over the years, the Close Minus by Plus algorithm has proven to be reliable and effective in managing and offsetting losses through strategic position closures.

Can I customize the EA to fit my trading needs?

Yes, the EA offers various customizable settings, including loss thresholds, additional profit requirements, and maximum positions to close, allowing you to tailor it to your specific trading strategy.

Does the EA work on all currency pairs?

The EA can be applied to any currency pair available in your MetaTrader terminal, giving you the flexibility to use it across different markets.

What are the benefits of using the Close Minus by Plus EA?

Benefits include automated management of unprofitable positions, enhanced risk management, and the ability to maximize profits by strategically closing profitable positions to offset losses.

Is there a limit to how much profit the EA can generate?

The potential profit is determined by the number and size of profitable positions available to offset losses, as well as the settings you configure within the EA.

How does the EA prioritize which positions to close?

The EA prioritizes closing the largest loss-making position first and then selects profitable positions that collectively cover the loss, ensuring efficient loss mitigation.

Can the EA handle different lot sizes?

Yes, the EA can manage positions with varying lot sizes, as long as they meet the defined criteria for loss and profit within the settings.

Does using the EA require advanced trading knowledge?

While some understanding of trading concepts is beneficial, the EA is designed to automate complex tasks, making it accessible even to traders with basic knowledge.

How does the EA affect my overall trading strategy?

The EA complements your trading strategy by automating the closure of unprofitable positions, allowing you to focus on other aspects of trading while effectively managing risks.

Is customer support available for the EA?

Yes, our team provides customer support to assist you with installation, configuration, and any issues you may encounter while using the EA.

Can I use the EA on multiple charts simultaneously?

Yes, you can deploy the EA on multiple charts and currency pairs simultaneously, allowing it to manage positions across different markets effectively.

Does the EA require continuous monitoring?

Once configured, the EA operates automatically without the need for constant monitoring, though it’s advisable to review its performance periodically.

How does the EA handle partial closures?

The EA can execute partial closures of positions based on the settings, allowing for flexible management of profits and losses.

Changelog for Close Minus by Plus

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.

How To set Telegram bot:

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.

Reviews about Close Minus by Plus

Zhong Liang Zhao

⭐⭐⭐⭐⭐


My admiration for you is as vaet as the surging river!!!It would be nice if it could be operated on the panel.

Calogero Vella

⭐⭐⭐⭐⭐


Thank you for the good work!!! Keep up the good work!!!

Darrel Balucos

⭐⭐⭐⭐⭐


this tool is very good. because of this, it is easy for me to calculate hedging trades because the total lots that I should counter in case I make a mistake in my setup are displayed immediately

Vladimir

⭐⭐⭐⭐


магики через запитую не подхватывает. берет в работу только один магик тот что первый в строке Хорошо бы исправить

Nepomnjashchy

⭐⭐⭐⭐⭐


Nepomnjashchy
У меня все четко это один из 3 советников который стоит у меня в терминале

Nepomnjashchy

⭐⭐⭐⭐⭐


Nepomnjashchy
У меня все четко это один из 3 советников который стоит у меня в терминале

Valery Kokoritch


Valery Kokoritch 2021.12.10 12:57
было бы интересно, если советник "откусывал" от убытка. по минимальному лоту

Gellet Manchenella

⭐⭐⭐⭐⭐


Gellet Manchenella
the best utility I have used. Easy to set up and works great to recover losses. But if it can close a partial lot of the profit-making trade in the direction of the trend will be better. In my case, a profit-making trade of $400 was closed against a trade of $-100. There was potential to make more money. When profit is higher than loss-making trade (with profit target) you should consider closing to the extent of loss+profit target. Hope you will consider.

leogarcia87

⭐⭐⭐⭐⭐


leogarcia87
Very useful tool. Thank you

afsff saaa

⭐⭐⭐⭐⭐


afsff saaa
very smart idea i love this EA It solved many problems

111992086


111992086 2022.05.02 09:26
Советник заинтересовал, но не работает,видимо снова надо обновить

abdelhamid khabkhabi

⭐⭐⭐⭐⭐


abdelhamid khabkhabi
Thank you a very good EA

bighead1971

⭐⭐⭐⭐⭐


bighead1971
excellent!

Vadim V


Vadim V. 2022.01.12 03:26
The EA does not work in new update MT5. See my mote in the Comments.
Vladislav Andruschenko
Reply from developer Vladislav 2022.01.12 08:57 
Please Update

Adnow

⭐⭐⭐⭐⭐


Adnow
it's very good

E D

⭐⭐⭐⭐⭐


E D
So far the best utility I have used. Easy to set up and works great to recover losses. It's actually amazing to watch results. No setfiles are needed because all accounts are different. Read the instructions and practice on a demo account. Play with the settings and once you find the best settings, set it up on live account. Works great.

Vadim V.

⭐⭐⭐⭐⭐


Vadim V.
I love that EA - Utility. Designed very smart-well. I run it on a demo live acct and the results just excellent covering losses and minizine trading risks. I plan to use it in my live acct next week. Close + by - utility works well with other EAs too. My 5 stars to Vladislav for his work business and IT development creativity. FYI, I use TickSniper EA on live acct and like it. Well done, Vlad.

ROBERT URBANSKI

⭐⭐⭐⭐⭐


ROBERT URBANSKI 2020.08.06 13:55
Excellent Utility and very usefull. Many time rescue my .... :). Thank you Vladislav and you team

Evolve

⭐⭐⭐⭐⭐


Evolve 2020.07.26 07:42
Excellent Utility !

Vasil lupanov

⭐⭐⭐⭐⭐


Vasil lupanov 2019.12.30 19:40
Five stars for the helper and 10 gold stars for its creator. Well done !!!

Staffan Ofwerman

⭐⭐⭐⭐⭐


Staffan Ofwerman
This is a great EA to add to every setup. Great help from the seller and it works fantastic. It will take away the worst trade with the help of your profit trades. And with the latest update it's even better when you can see so much info about what is happening. Is it possible to give it 6 stars?

eriva

⭐⭐⭐⭐⭐


eriva 2019.01.13 11:08
I use many products from Vladislav, the utilities are exceptional even if they require a bit of patience to find the right settings based on their use. Each reviewed utility is used in my real account. Vladislav is a kind and helpful person for any help required. Great Vladislav !!

Gusstaw

⭐⭐⭐⭐⭐


Gusstaw 2015.05.16 12:17
работает на 5+,любой счет,любой депозит,полезен новичкам,те постоянно в минуса лезут,закрывает и -10 и -100,настройки минимальны и очень просты,авторы всегда помогут,если и закрывает с минусом,то минимальным..поверьте-это один из лучших помошников

Alexey Lushnikov

⭐⭐⭐⭐⭐


Alexey Lushnikov 2015.04.09 23:00
я так понял главное правильно настроить. И в принципе из 10 пар закрывает пачку ордеров плюс минус.

savagerus

⭐⭐⭐⭐⭐


savagerus 2015.01.15 15:42
Отличный и полезный советник

Gellet Manchenella 2023.11.09 13:53  # 

   RU

the best utility I have used. Easy to set up and works great to recover losses. But if it can close a partial lot of the profit-making trade in the direction of the trend will be better. In my case, a profit-making trade of $400 was closed against a trade of $-100. There was potential to make more money. When profit is higher than loss-making trade (with profit target) you should consider closing to the extent of loss+profit target. Hope you will consider.

afsff saaa

18

afsff saaa 2023.03.18 22:22  # 

   RU

very smart idea i love this EA It solved many problems

abdelhamid khabkhabi

42

abdelhamid khabkhabi 2022.03.22 11:39  # 

   RU

Thank you a very good EA

bighead1971

2350

bighead1971 2022.03.06 04:02  # 

   RU

excellent!

E D

56

E D 2021.04.17 01:27  # 

   RU

So far the best utility I have used. Easy to set up and works great to recover losses. It’s actually amazing to watch results. No setfiles are needed because all accounts are different. Read the instructions and practice on a demo account. Play with the settings and once you find the best settings, set it up on live account. Works great.

Vladislav Andruschenko

354035

Reply from developer Vladislav Andruschenko 2021.04.17 07:09 #  RU

Thank you very much for your feedback.

Vadim V.

486

Vadim V. 2020.12.04 21:37  # 

   RU

I love that EA – Utility. Designed very smart-well. I run it on a demo live acct and the results just excellent covering losses and minizine trading risks. I plan to use it in my live acct next week. Close + by – utility works well with other EAs too. My 5 stars to Vladislav for his work business and IT development creativity. FYI, I use TickSniper EA on live acct and like it. Well done, Vlad.

Vladislav Andruschenko

354035

Reply from developer Vladislav Andruschenko 2020.12.04 22:12 #  RU

Thank you for your feedback. )))

ROBERT URBANSKI

893

ROBERT URBANSKI 2020.08.06 13:55  # 

   RU

Excellent Utility and very usefull. Many time rescue my …. :). Thank you Vladislav and you team

Evolve

225

Evolve 2020.07.26 07:42  # 

   RU

Excellent Utility !

Vasil lupanov

721

Vasil lupanov 2019.12.30 19:40  # 

   RU

Five stars for the helper and 10 gold stars for its creator. Well done !!!

[Deleted] 2019.12.25 16:04  # 

 RU

User didn’t leave any comment to the rating

Staffan Ofwerman

2073

Staffan Ofwerman 2019.04.03 11:24  # 

   RU

This is a great EA to add to every setup. Great help from the seller and it works fantastic. It will take away the worst trade with the help of your profit trades. And with the latest update it’s even better when you can see so much info about what is happening. Is it possible to give it 6 stars?

Vladislav Andruschenko

354035

Reply from developer Vladislav Andruschenko 2021.05.03 10:37 #  RU

Thank you.

eriva

263

eriva 2019.01.13 11:08  # 

   RU

I use many products from Vladislav, the utilities are exceptional even if they require a bit of patience to find the right settings based on their use. Each reviewed utility is used in my real account. Vladislav is a kind and helpful person for any help required. Great Vladislav !!

Gusstaw

33

Gusstaw 2015.05.16 12:17  # 

   RU

работает на 5+,любой счет,любой депозит,полезен новичкам,те постоянно в минуса лезут,закрывает и -10 и -100,настройки минимальны и очень просты,авторы всегда помогут,если и закрывает с минусом,то минимальным..поверьте-это один из лучших помошников

Alexey Lushnikov

1792

Alexey Lushnikov 2015.04.09 23:00  # 

   RU

я так понял главное правильно настроить. И в принципе из 10 пар закрывает пачку ордеров плюс минус.

savagerus

121

savagerus 2015.01.15 15:42  # 

   RU

Отличный и полезный советник

leogarcia87 2023.08.25 10:00  # 

   RU

Very useful tool. Thank you

111992086

259

111992086 2022.05.02 09:26  # 

   RU

Советник заинтересовал, но не работает,видимо снова надо обновить

Vadim V.

486

Vadim V. 2022.01.12 03:26  # 

   RU

The EA does not work in new update MT5. See my mote in the Comments.

Vladislav Andruschenko

354035

Reply from developer Vladislav Andruschenko 2022.01.12 08:57 #  RU

Please Update

Valery Kokoritch

425

Valery Kokoritch 2021.12.10 12:57  # 

   RU

было бы интересно, если советник “откусывал” от убытка. по минимальному лоту

Adnow

53

Adnow 2021.06.25 15:40  # 

   RU

it’s very good

complain

Vladislav Andruschenko

354035

Reply from developer Vladislav Andruschenko 2021.06.25 16:33 #  RU

Thank you.

Comments about Close Minus by Plus

Leave a Reply

Your email address will not be published. Required fields are marked *

11 responses to “Close Minus by Plus, Closing unprofitable positions by searching and closing profitable positions”

  1. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

    1. Expforex Vladislav Avatar

      If TypeOfUnitToClose ==2 clauses are used, then commission and swap are not taken into account. Only clauses.
      If deposit currency is used TypeOfUnitToClose=1, then both swap and commission are used

  2. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  3. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  4. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  5. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  6. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  7. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  8. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  9. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

  10. Andrew Avatar
    Andrew

    Are swap costs included in the calculations? If not, could that be added as an option?

Extra

Navigation by tabs

This post is also available in: English Українська Portuguese Español Deutsch Chinese Русский Français Italiano Türkçe 日本語 한국어

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


     

    Risk Warning:


    Past trading performance does not guarantee future results.

    Trading foreign exchange on margin carries a high degree of risk and may not be suitable for all investors.

    Be aware that using trading robots involves substantial risk, and you could lose more than your initial investment.

    Please proceed with caution, assess your financial situation carefully, and consider seeking advice from a qualified professional.

    Disclaimer

    This website uses cookies to improve your experience. By using this website you agree to our Data Protection Policy and Disclaimer.
    Read More