Discussion of article "Developing a trading Expert Advisor from scratch (Part 25): Providing system robustness (II)"

 

New article Developing a trading Expert Advisor from scratch (Part 25): Providing system robustness (II) has been published:

In this article, we will make the final step towards the EA's performance. So, be prepared for a long read. To make our Expert Advisor reliable, we will first remove everything from the code that is not part of the trading system.

It is very interesting that nothing is created in this function. However, if the EA is compiled and executed, it will create ghosts that show the order status on the server. To understand this, watch the following video. This is a demonstration of how the system works in reality.



Ghost indicators are really created on the chart, but how does this actually happen? How did we manage to create indicators without actually creating them somewhere in the code?

These are ghosts. You won't actually see them being created, there's no point in reading the code trying to find the line that says: "HERE... I found... ghost indicators are created at this point..." The truth is that they are simply already on the chart, but they are not displayed anywhere until we start manipulating the order or position — only then they become visible. How is this possible?

Author: Daniel Jose