Discussion of article "Creating an EA that works automatically (Part 07): Account types (II)"

 

New article Creating an EA that works automatically (Part 07): Account types (II) has been published:

Today we'll see how to create an Expert Advisor that simply and safely works in automatic mode. The trader should always be aware of what the automatic EA is doing, so that if it "goes off the rails", the trader could remove it from the chart as soon as possible and take control of the situation.

In the previous article Creating an EA that works automatically (Part 06): Account types (I), we started developing a way to ensure that the automated EA works correctly and within its intended purpose. In that article, we created the C_Manager class, which acts as an administrator, so that in case of strange or incorrect EA behavior the EA will be removed from the chart.

We started that article by explaining how to prevent pending or market orders of the EA from triggering. Although the mechanism shown there is capable of supporting the EA, we have some other problems related to the interaction between the EA and the C_Orders class. The problem is mainly related to NETTING accounts. This is one of the topics to be covered in this article.

Don't expect that just intelligently programming the EA is enough, because it is not. You should always be aware of what the automatic EA is doing, and if it goes beyond its designated activity, remove it from the chart as soon as possible, before it gets out of control.

Author: Daniel Jose