Only users who purchased or rented the product can leave comments
Vasil lupanov  
Добре. Увеличавам партидата на чакащата поръчка на 2. Когато се докосне и започне да се връща, какво да правим?     Sometimes he finds two orders that go into the red. Why is this happening?
Files:
Vladislav Andruschenko  
Vasil lupanov:
Добре. Увеличавам партидата на чакащата поръчка на 2. Когато се докосне и започне да се връща, какво да правим?     Sometimes he finds two orders that go into the red. Why is this happening?
Здравствуйте. 
Возможно у вас установлено в настройках открывать сразу 2 ордера ? Это есть в настройках. Прикрепите их или лог файлы, чтобы посмотреть почему открылось 2 ордера. 
Смысл в том, что советник открывает противоположный ордер и тянет вслед за ценой. Если оригинальная позиция получает прибыль, то отложенный ордер удаляется. 
Если увеличить лот в 2 раза то мы делаем не лот а мартингейл по сути, чтобы сделать попытку закрыть две позиции в прибыли. 
Если и 2 ордер неможе перекрыть убыток оригинальной позиции то открывается 3 ордер. И так далее. Это называется качели. 
Vasil lupanov  
Владислав Андрущенко : Здравствувайте. 
Възможно ли е да сте установени в настройките за отваряне на 2-та поръчка? Това е в настройките. Прикрепете ги или файлове за влизане, за да видите следващото съобщение 2 поръчки. 
Смисл в том, който съветникът разкрива противоположната поръчка и тянет вслед за цената. Ако оригиналната позиция използва печалбата, това е поставено. 
Ако увеличите лота в 2 раза, за да не направите лот и да маркирате по сути, за да направите опит за затваряне на две позиции при пристигане. 
Ако и 2 поръчки не могат да се подредят на оригиналната позиция при отваряне на 3 поръчки. И така далее. Това се нарича качествено. 

Настроих го да отвори повторно отворена поръчка с параметрите на първата, която се затвори. How to set it to track only one order with its number. Not a symbol, but a warrant!

Files:
9yax607a5.png  73 kb
Vladislav Andruschenko  
Vasil lupanov:

Настроих го да отвори повторно отворена поръчка с параметрите на първата, която се затвори. How to set it to track only one order with its number. Not a symbol, but a warrant!


Может быть у Вас установленно два советника? или работает ВПС и компьютер? 

⚠️⚠️⚠️ Подробная информация по ошибке: Где найти Лог файлы: https://www.mql5.com/ru/blogs/post/653257 ⚠️⚠️⚠️

Vasil lupanov  
When Safetti Luk closes his position in profit does not open another! Why? I am attaching a screenshot of the settings screen.
Files:
rfp4__.png  158 kb
Vladislav Andruschenko  
Vasil lupanov:
When Safetti Luk closes his position in profit does not open another! Why? I am attaching a screenshot of the settings screen.
Hello. Give me please log file and ticket of this position 
Vasil lupanov  
What I shot is the screen with the work of Safeti Luk. What else should I do? Explain to me ?
Files:
esj0__.png  158 kb
Vladislav Andruschenko  
Vasil lupanov:
What I shot is the screen with the work of Safeti Luk. What else should I do? Explain to me ?
⚠️⚠️⚠️ FULL INFO about your problem: How to make Files https://www.mql5.com/en/blogs/post/732566 ⚠️⚠️⚠️


A reminder for those who have failures of experts / scripts / indicators

In order for any programmer to understand the problem of the expert / script / indicator behavior, you need to provide some information, then the process of parsing the problem is reduced to minimal time.

What you need for this:


  1. The picture of the entire terminal on the graph of which is a robot EA ( ScreenShot )
  2. A set of adviser or indicator settings. File "SET file"
  3. Log files from experts (logs EA)
  4. Log files from terminal (logs SERVER)
  5. Detailed Report
  6. A detailed description of the problem in a text document, with the numbers of the ticket of the deals, with which the problem occurred.
Serge  

Hi Vladislav, I've used EXP Safety Lock Pro to manage bad trades by one of the Signal Providers and up until today it's been doing great. Just this morning all positions got closed with an unexpectedly big loss to my account. Could you please help me to find out what went wrong. Please find all the necessary files attached. Looking forward to solving this problem as I really like your product and would like to continue using it in the future. Kind regards, Serge. 

Files:
Vladislav Andruschenko  
Serge :

Hi Vladislav, I've used EXP Safety Lock Pro to manage bad trades by one of the Signal Providers and up until today it's been doing great. Just this morning all positions got closed with an unexpectedly big loss to my account. Could you please help me to find out what went wrong. Please find all the necessary files attached. Looking forward to solving this problem as I really like your product and would like to continue using it in the future. Kind regards, Serge. 


Hello.

The problem is that you used an increase in the lot and all your pending orders were deleted:

49143336 2021.01.04 07:16:06 sell stop 100.00 audusd 0.76956 0.77956 0.75956 2021.01.04 07:16:10 0.76956 deleted [no money]
49143341 2021.01.04 07:16:12 sell stop 100.00 audusd 0.76954 0.77954 0.75954 2021.01.04 07:16:17 0.76953 deleted [no money]
49143343 2021.01.04 07:16:19 sell stop 100.00 audusd 0.76959 0.77959 0.75959 2021.01.04 07:16:36 0.76958 deleted [no money]
49143344 2021.01.04 07:16:38 sell stop 100.00 audusd 0.76951 0.77951 0.75951 2021.01.04 07:16:40 0.76951 deleted [no money]


0 00: 16: 13.592 Exp SafetyLock PRO AUDUSD, H1: Not Enought Money Margin Required-1750.621410260048



I also want to say that there are no records in your logs that the deals were closed!

It means they were closed by your broker.

If you hover over a closed trade in the report, you might be surprised that the trades were closed by STOPPUT.


Files:
Serge  
{ "results": [ {"date":"1609145638","module":"mql5.com.ru.articles","id":"2_8807","info":{"url":"https://www.mql5.com/ru/articles/8807","author_name":"Maxim Romanov","author_login":"223231","title":"Самоадаптирующийся алгоритм (Часть III): Отказываемся от оптимизации","avatar60x60":"https://c.mql5.com/2/41/50_percents__3.png","platform":"MetaTrader 5","category":"Трейдинг"},"text":"Введение Перед началом изучения данной статьи рекомендую ознакомиться со второй статьей серии ' Разработка самоадаптирующегося алгоритма (Часть II): Повышение эффективности '. Методика из текущей статьи будет существенно отличаться от всего рассмотренного ранее, но для понимания проблемы знакомство с предыдущими статьями серии будет полезным. Анализ недостатков Как и в прошлый раз, начну с анализа недостатков предыдущей успешной версии. В процессе анализа были выявлены следующие недостатки: Сигнал на открытие и закрытие позиций генерируется на основе анализа свечей. Свечи имеют нестабильный размер, некоторые свечи большие, а некоторые маленькие. Часто возникают ситуации, когда позиции открылись на основании перевеса падающих или растущих свечей, затем падающих и растущих свечей стало поровну, но прибыль по открытым позициям все еще отрицательная. Возникает вопрос: закрывать позиции или ждать, пока будет получена прибыль. Если закрывать, то весь смысл торговли сводится на нет,..."}, {"date":"1460442925","module":"mql5.com.ru.forum","id":"3_80107_2409062","info":{"url":"https://www.mql5.com/ru/forum/80107/2409062#comment_2409062","author_name":"Vladimir Zubov","author_login":"Kino","title":"как можно посчитать в ЕА количество закрытых ордеров"},"text":"Функция GetProfitFromDateInCurrency(). Эта функция возвращает суммарный профит в валюте депозита закрытых с определённой даты позиций. Более точный отбор учитываемых позиций задаётся внешними параметрами: sy - Наименование рыночного инструмента. Если задать этот параметр, то функция учтёт позиции только заданного инструмента. Значение по умолчанию - ' ' означает любой рыночный инструмент. NULL означает текущий инструмент. op - Торговая операция, тип позиции. Допустимые значения: OP_BUY, OP_SELL или -1. Значение по умолчанию -1 означает любую позицию. mn - Идентификатор позиции, MagicNumber. Значение по умолчанию -1 означает любой идентификатор. dt - Дата и время в секундах с 1970 года. Значение по умолчанию - 0 означает учёт всех доступных в истории позиций."}, {"date":"1331722368","module":"mql5.com.ru.forum","id":"3_107476_3020363","info":{"url":"https://www.mql5.com/ru/forum/107476/3020363#comment_3020363","author_name":"Igor Kim","author_login":"KimIV","title":"Полезные функции от KimIV","avatar60x60":"https://c.mql5.com/avatar/2011/12/4EEE4B53-93DE.jpg"},"text":"Функция NumberOfLastLossPosFromDate(). Эта функция возвращает последнюю серию убыточных позиций (количество подряд), закрытых с определённой даты. Более точный отбор учитываемых позиций задаётся внешними параметрами: sy - Наименование рыночного инструмента. Если задать этот параметр, то функция учтёт позиции только заданного инструмента. Значение по умолчанию - означает любой рыночный инструмент. NULL означает текущий инструмент. op - Торговая операция, тип позиции. Допустимые значения: OP_BUY, OP_SELL или -1. Значение по умолчанию -1 означает любую позицию. mn - Идентификатор позиции, MagicNumber. Значение по умолчанию -1 означает любой идентификатор. dt - Дата и время в секундах с 1970 года. Значение по умолчанию - 0 означает учёт всех доступных в истории позиций. "} ], "error":"ok" }
Wong Tony  
Vladislav Andruschenko:
Извините. Смогу ответить на вопросы ранее только завтра 

В моих советниках все настройки по тому знаку. На котором стоят советники. У меня нет автоцмножений и другой фигни. 1 это 1.  10 это 10. 
Reynor Buenaflor  

Hello, 


I want to use Safety Lock as Hedge.

For example:  

* If I buy GBPUSD, it will open pending sell GBPUSD with same lot size.

* Case 1: If GBPUSD close in profit, it will close safety.

* Case 2: If trade goes negative, it will activate safety. But as soon as trade goes positive, it will close the safety trade.

How do I set the ea?

Vladislav Andruschenko  
smartreynor :

Hello, 


I want to use Safety Lock as Hedge.

For example:  

* If I buy GBPUSD, it will open pending sell GBPUSD with same lot size.

* Case 1: If GBPUSD close in profit, it will close safety.

* Case 2: If trade goes negative, it will activate safety. But as soon as trade goes positive, it will close the safety trade.

How do I set the ea?


Hello.

Sorry, I missed your message.

 

Case 1: If GBPUSD close in profit, it will close safety.


You can enable this option: CloseSafetyPositionsifclosed = true

CloseSafetyPositionsifclosed Close SafetyLock positions, which are already activated if the main position is closed.
If the main position has been closed, then the SafetyLock position will also be closed


 

Case 2: If trade goes negative, it will activate safety. But as soon as trade goes positive, it will close the safety trade.


You can enable options like this:



Close_One_if_Safety_Closed_In_Profit

closes the original position if the SafetyLock position has been closed in profits that cover the current loss of the original position.
For example:

  1. Close_One_if_Safety_Closed_In_Profit  = true   MNLOT  = 2.
  2. As soon as the LOCK goes off and the TakeProfit closes the Safety position, then the original position will be closed.
  3. When using NumberofStopOrder> 1, the profit of SafetyLock positions is calculated from the amount of profit of all positions in the Ticket of the main position.
  4. Now the closing of the main position occurs only when the amount of profit of the closed positions SAFETYLOCK and the main position is greater or
  5. is equal to   Close_One_if_Safety_Closed_In_Profit_Dollars.
  6. All orders and positions of SAFETYLOCK are closed.

For example:

  1. Close_One_if_Safety_Closed_In_Profit = true andClose_One_if_Safety_Closed_In_Profit_Dollars = 10 and StopOrderDeltaifReopens= 10;
  2. Original BUY position and warrant SAFETYLOCK SELL STOP;
  3. The price goes down and BUY closes at a loss of -10 $, and the pending order SELL STOP is activated;
  4. The price continues to go down and SELL becomes a profitable position with a profit of $ 20;
  5. According to the terms of this function: Loss from the original position BUY -10 $ + current position SAFETYLOCK SELL with a profit of + 20 $ = 10 $ total profit;
  6. The position SAFETYLOCK SELL is closed, and the total profit from two positions (BUY + SAFETYLOCK_SELL) = 10 $.
Close_One_if_Safety_More_profitable

Closes the original position if the SafetyLock position is more profitable, overlapping the current loss of the original position.
For example:

Close_One_if_Safety_More_profitable  = true   MNLOT  = 2.

  1. As soon as the LOCK goes off and the Safety position is more profitable, both the Safety position and the original position will be closed.
  2. When using   NumberofStopOrder> 1, the profit of SafetyLock positions is calculated from the amount of the profit of all positions according to the ticket of the main position.
  3. Now the closing of the main position and positions of SAFETYLOCK occurs only when the amount of profit of these positions is greater or equal
  4. Close_One_if_Safety_More_profitable_Dollars  (With   NumberofStopOrder> 1)
  5. To get the results of previous versions, set Close_One_if_Safety_More_profitable_Dollars = 0.

For example:

  1. Close_One_if_Safety_More_profitable = true andClose_One_if_Safety_More_profitable_Dollars = 10 and StopOrderDeltaifReopens = 10 and MNLOT = 3;
  2. Original BUY position with lot 0.1 and order SAFETYLOCK SELL STOP with lot 0.3;
  3. The price goes down, and the current loss is BUY -10 $, then the pending order SELL STOP is activated;
  4. The price continues to go down and SELL a profitable position with a profit of $ 30, a loss of the original position BUY = -20 $;
  5. According to the conditions of this function: Loss from the original position BUY -20 $ + current position SAFETYLOCK SELL with a profit of + 30 $ = 10 $ total profit;
  6. The SAFETYLOCK SELL position and the original BUY position are closed and the total profit from two positions (BUY + SAFETYLOCK_SELL) = 10

If both   Close_One_if_Safety_More_profitable  and   Close_One_if_Safety_Closed_In_Profit  functions   are  enabled,
then the total profit is calculated from the closed positions SAFETYLOCK and positions SAFETYLOCK, which are still open. (Actual for NumberofStopOrder> 1)
The profit amount of SAFETYLOCK must be greater than or equal to   Close_One_if_Safety_More_profitable_Dollars +  Close_One_if_Safety_Closed_In_Profit_Dollars.,
than the main position.

For example:

  1. Close_One_if_Safety_More_profitable = true and Close_One_if_Safety_Closed_In_Profit = true andClose_One_if_Safety_More_profitable_Dollars = 10 and StopOrderDeltaifReopens= 10 and NumberofStopOrder = 5 and TakeNrofite = 3 and
  2. Original BUY position with lot 0.1 and 5 warrants SAFETYLOCK SELL STOP with lot 0.3;
  3. The price goes down, and the current loss is BUY -10 $, then the pending order is activated the first SELL STOP;
  4. The price goes down, and the current loss is BUY -20 $, then the pending order of the second SELL STOP is activated; In this case, the first position SAFETYLOCK SELL closes with a profit of $ 30
  5. The price continues to go down and the second SELL becomes a profitable position with a profit of $ 10, a loss of the original position BUY = -30 $;
  6. According to the conditions of this function: Loss from the original position BUY -30 $ + current position SAFETYLOCK SELL with a profit of + 10 $ + Profit from the closed position SAFETYLOCK SELL + 30 $ = 10 $ total profit;
  7. The position SAFETYLOCK SELL and the original BUY position are closed and the total profit from three positions (BUY + SAFETYLOCK_SELL + SAFETYLOCK_SELL) = 10 $.
Vasil lupanov  
Vladislav, why did you delete me from your friends? So far, I work mainly with your robots! And I'm happy!
Vasil lupanov  
The big problem with me is that I don't know what to do when your robot goes to minus. I will now send you a screenshot of my trades:
Files:
Only users who purchased or rented the product can leave comments