Главная
Каталог статей форекс
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: 70

dashboardCategory: English instructions and articles

historyHistory versions

computerTerminal: МТ4

cloudcover, we, loss-making, Exp, by, minus, positions, Plus, Close


Read about Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions

Description

In the continuation of the topic of leveling positions , I want to offer you a more reliable and pleasant algorithm for overlapping loss-making positions. Of course, everyone has the right to choose their own way of getting rid of negative positions. Our last article describing the assistant for the trader, namely the Closing on the total profit or loss, with the trailing of the profit obtained , brought quite good results.

This article describes an algorithm that was written 4 years ago, but has not been brought to mind. But with the presentation of our valued customers, the project has earned again.
close-by +

Foreword

 
To begin with, I would like to express my gratitude to our regular customer. Thanks to Alexander Puzanov. who again started the mechanism of this assistant.
 
This assistant searches for all positions in the terminal   (the magic, position and direction of positions can be separately adjusted in the settings)   the most unprofitable position.
Further, by cunningly searching for the remaining postures, he calculates a series of orders that can cover the loss and close them.
 
A series of orders can consist entirely of any positions. Their maximum number is adjusted in the Advisor settings.
 

Assistant work

 
All the work is that. that we put the expert on a separate schedule, set it up and work further on our terminal. When the programmed condition comes - the adviser joins in the work and begins his calculations.
 
At what all calculations the adviser writes down in logs, it looks so:
 
  1. 16:57:34 Exp - Exp - CloseMinusByPlus GBPUSD, H1: initialized
  2. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Overlapping of loss-making positions by closing of profitable positions started:
  3. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest negative: -51 pips
  4. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest minus ticket: 222064678
  5. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest plus: 22 pips
  6. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: The biggest plus of the ticket: 222064722
  7. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Aggregate Profit for the Positions Found: 72 pips
  8. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Number of positions to close: 5
  9. 16:58:41 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Tickets for closing unprofitable positions: 222064678
  10. 16:58:42 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064678 buy 0.10 GBPUSD at 1.65055 at price 1.65004
  11. 16:58:42 Exp - Exp - CloseMinusByPlus GBPUSD, H1: Tickets for closing profitable positions: .222064722. 222064691. 222064750. 222064878. 222064715
  12. 16:58:53 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064878 sell 0.10 EURUSD at 1.35773 at price 1.35774
  13. 16:58:54 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064750 sell 0.10 GBPUSD at 1.65034 at price 1.65025
  14. 16:58:54 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064722 sell 0.10 GBPUSD at 1.65039 at the price of 1.65025
  15. 16:58:55 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064715 sell 0.10 EURUSD at 1.35765 at price 1.35773
  16. 16:58:56 Exp - Exp - CloseMinusByPlus GBPUSD, H1: close # 222064691 sell 0.10 GBPUSD at 1.65038 at the price of 1.65024
 
As you can see from this entry. We had many open positions (a chaotic discovery).
In the settings, we set up - start the calculation when the largest unprofitable position with a minus minus -50
( MinLossInUnit = -50) pips ( TypeOfUnitToClose = 2) and the aggregate profit will be 20 pips more is found ( AdditionalProfitInUnit = 20)
Also we have established that it is necessary to close no more than 5 orders ( MaxPos_in_Class = 5 )
 
The expert found the position at a loss of -51 pip, as well as a series of orders with a profit of +72 pips. and, in fact, closed both the unprofitable position, and a series of profitable positions.
 
 
 
 
 

An example of this algorithm  

in the adviser 2 MACD


without function:

with closing function by overlapping:
 
 

External Variables and Settings

 

Name Description
TypeOfUnitToClose Type of profit and loss. In dollars or in points
MinLossInUnit Minimum loss of position in units ( TypeOfUnitToClose ), which is taken into account the advisor.
An order with a loss in the "MinLossPoss_in_unit" units (dollars or points) must be set in the negative zone.
This is the top bar for finding loss-making positions.
For example: MinLossInUnit = -100 TypeOfUnitToClose = dollars, then the EA looks for or expects a position at a loss greater than or equal to -100 dollars, for example: -100 dollars, -150 dollars -200 dollars and so on.
The position with a loss of -99 dollars is already ignored.
AdditionalProfitInUnit The number of units of profit for the difference in the closing of the set of positions.
Position (one or several) with a total profit exceeding the loss on the " AdditionalProfitInUnit " units.
For example: AdditionalProfitInUnit = 10 MinLossInUnit = -100 TypeOfUnitToClose = dollars
The advisor is looking for or waiting for at least 2 positions, one of which at a loss of -100 dollars, and the second with a profit of +110 dollars. at this point the adviser decides on the inclusion of his function
MaxPos_in_Class The parameter "MaxPos_in_Class" should limit the number of positions of the entire "set" of closing.
For example: MaxPos_in_Class = 3, then the adviser will look for a set for closing from a maximum of 3 positions (1 loss-making and 2 profitable ones)
FirstSymbolClose Search for pairs of positions and close only the currency, minus which we are processing.
You can turn off the FirstSymbolClose parameter , then the EA will close any kits from the losing and profitable positions in the entire account, regardless of which currency pair is included in the calculation.
When you enable FirstSymbolClose -   the adviser considers and closes sets from one currency pair
OpenHouraOpenMinutea Start time of the Expert Advisor
CloseHouraCloseMinutea End time of the Expert Advisor
OrderToClose Item type: -1 = All Orders, 1-Sell, 0 = Buy
MagicToClose Magick positions: -1 = any magician. Or you can specify a unique magic number of its positions, which should be processed
SymbolToClose Currency pair for monitoring -1 = All Symbol, 1-Curent Symbol

 

Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions_1 Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions_2
Здесь можно скачать Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions
Купить Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions можно здесь - Прочитать о Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions можно здесь - Обсуждение Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - стейты, отзывы, комментарии - Отзывы о Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Настройки к Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Мониторинг Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Download Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Buy Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Read about Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Discusion of Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Comments of Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Settings Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Monitoring Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions - Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions скачать бесплатно - Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions ключ - Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions открытый код - Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions скачать
-
Читать Exp - Close Minus by Plus We cover loss-making positions, by finding and closing of profitable positions
0 $
This assistant searches for all positions in the terminal   (the magic, position and direction of positions can be separately adjusted in the settings)   the most unprofitable position.
Further, by cunningly searching for the remaining postures, he calculates a series of orders that can cover the loss and close them.
 
A series of orders can consist entirely of any positions. Their maximum number is adjusted in the Advisor settings.
English instructions and articles FinanceApplication Windows 01.08.2018
5 1
Expforex Идеи для Форекс https://www.expforex.com/1NEWDESIGN/NEWLOGO/LOGONEW.png expforex@meta.ua Украина expforex2