Discussing the article: "Developing a Replay System (Part 74): New Chart Trade (I)"

 

Check out the new article: Developing a Replay System (Part 74): New Chart Trade (I).

In this article, we will modify the last code shown in this series about Chart Trade. These changes are necessary to adapt the code to the current replay/simulation system model. The content presented here is intended solely for educational purposes. Under no circumstances should the application be viewed for any purpose other than to learn and master the concepts presented.

Everything we've done so far represents only a portion of the overall task. We are now entering the third phase of development. At this stage, our focus will shift away from the replay/simulator itself. The emphasis now will be on working directly with the live trading server. In other words, we’ll begin developing the necessary tools to open, manage, and close positions.

Some of these tools have been discussed earlier in this same series. However, since the replay/simulation application has undergone many changes over time, we'll need to either recreate or at least adapt older tools to fit the new model. The first tool we'll be working on is the Chart Trade. This tool is designed to assist us in opening and closing positions, executing market orders. MetaTrader 5 already includes such functionality in its standard installation. It has the One Click Trading buttons, as shown in the image below:

Although these buttons are quite useful and work perfectly well, they are of no use to us, because they are designed to communicate directly with the live trading server. Our replay/simulation system, however, is not an actual server. It is a service, or better put, a set of applications, designed to simulate what a real server would be like.


Author: Daniel Jose