Hello everyone, I hope someone can help to check my code.
I wrote my own function that counts the number of orders aggregated separately by the magic number.
However, when I ran theStrategy Tester, I found that the function might not work as well.
Here is what I wanted to do in the code. (I will write only part of the code, not all of it. The main function "MyCurrentOrders" is written at the last.)
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
Hello everyone, I hope someone can help to check my code.
I wrote my own function that counts the number of orders aggregated separately by the magic number.
However, when I ran the Strategy Tester, I found that the function might not work as well.
Here is what I wanted to do in the code. (I will write only part of the code, not all of it. The main function "MyCurrentOrders" is written at the last.)
======================================================