Discussion of article "MQL5 Cookbook - Multi-Currency Expert Advisor and Working with Pending Orders in MQL5"

 

New article MQL5 Cookbook - Multi-Currency Expert Advisor and Working with Pending Orders in MQL5 has been published:

This time we are going to create a multi-currency Expert Advisor with a trading algorithm based on work with the pending orders Buy Stop and Sell Stop. The pattern we are going to create will be designed for the intra-day trade/tests. The article considers the following matters:

  • Trading in a specified time range. Let's create a feature that will allow us to set up the time of the beginning and the end of trading. For instance, it can be the time of the European or American trading sessions. For sure there will be an opportunity to find the most suitable time range when optimizing parameters of the Expert Advisor.
  • Placing/modifying/deleting pending orders.
  • Processing of trade events: checking if the last position was closed at Take Profit or Stop Loss and control over the history of the deals for each symbol.

MQL5 Cookbook - Multi-Currency Expert Advisor and Working with Pending Orders in MQL5

Author: Anatoli Kazharski

 
Do forward test on real ticks - the optimisation result will be opposite.
Reason: