Experts: Risk Manager

 

Risk Manager:

The Expert Advisor controls and limits the overall loss for the account, and the loss for every deal. It includes Trailing Stop for the account.

Author: Анатолий Сергеев

 
And how to protect against the human factor? )))) Well, you got the stops, there is still a possibility of exceeding the risk, right?
 
DKeN:
And how to protect against the human factor? )))) well, you got the stops, there is still a possibility to exceed the risk, right?

In this context, the platform does not provide means to protect against the human factor. The user can disable the Expert Advisor at any time and continue trading. In this case, its installation in the terminal is meaningless.

 

Hi.


I can't close a position for some reason. What could it be?

Files:
jwcqsx.JPG  119 kb
 
maximsh:

Hi.


I can't close a position for some reason. What could it be?

You have some old beta version of the Expert Advisor. In the final version there is no line "Status: monitoring...". Download the riskmanager.mq5 file again and compile it. I tested Forex on demo, everything worked.

If the problem repeats, copy the lines with the error that occurs when trying to close an order from the "Log" tab in the terminal, or send me the whole log file (the last one by the date of creation) from the Logs folder. I will try to solve the problem, if any.
 
ToL1K:

You have some old beta version of the Expert Advisor. In the final version there is no line "Status: monitoring...". Download the riskmanager.mq5 file again and compile it. I tested Forex on demo, everything worked.

If the problem repeats, copy the lines with the error that occurs when trying to close an order from the "Log" tab in the terminal, or send me the whole log file (the last one by the date of creation) from the Logs folder. I will try to solve the problem if there is any.
I downloaded a new one. It works for alpari, but not for roboforex, tickers are different. Alpari-GBPUSD and Roboforex- GBPUSD.e
Files:
20150409.log  6 kb
 
maximsh:
I downloaded a new one. Alpari works, but roboforex does not, tickers are different. Alpari-GBPUSD and Roboforex- GBPUSD.e.
Ticker does not matter. Trading functions are standard from CTrade class. I will install their terminal and test it.
 
maximsh:
I downloaded a new one. Alpari works, but roboforex does not, tickers are different. Alpari-GBPUSD and Roboforex- GBPUSD.e

The problem has been localised. RoboForex servers on the ECN tariff plan do not support the ORDER_FILLING_RETURN order execution mode, which is set in the Expert Advisor by default.
I added to the code a choice of order execution modes: All/Nothing, All/Partial, Return. By default I set All/Nothing - now everything should work. The code has been sent to the moderator for verification.

 
ToL1K:

The problem has been localised.

Yay, it works. Thank you very much!
 
can it be converted to mt4? please
 
can it be converted to mt4? please