You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Another question
"number in the list of positions" what is this number?1. Getting the number of positions usingPositionsTotal()
2. In the loop we bypass the entire list of positions
1. Get the number of positions usingPositionsTotal()
2. Loop through the entire list of positions
It's OK, I just started with 1 in the loop). Then what about the first question is a bug?
Yes, we will.
The tester does not always calculate the absolute drawdown correctly. Here is an example from the report of the competition EA after checking on the Championship website:
Although from the balance graph it is clear to the naked eye that the drawdown is more than 20,000 at the end of the test, as from the trades report:
The same was observed during local testing (sometimes). At error the absolute and relative drawdown on balance and on funds are equal.
"....Failure to execute the function by timeout will generate error 4757. In this case it is necessary to repeat the request after a short period of time (5-10 seconds). ...."
Is this under what conditions, is there a position or is there no position?
"....Failure to execute the function by timeout will generate error 4757. In this case it is necessary to repeat the request after a short period of time (5-10 seconds). ...."
Is this under what conditions, is there a position or is there no position?
For example, when there is a loss of connection with the trade server and subsequent synchronisation after reconnection.
Now when there is no position there is also an exit by timeout of 3 seconds. We have figured this out and will fix it.
For example, when the connection to the trade server is lost and then synchronised after reconnection.
Now when there is no position there is also an exit by timeout of 3 seconds. We have figured this out and will fix it.
Then what about the first question is a bug?
Hello. I am running the example from MQL5 documentation: https://www.mql5.com/ru/docs/series/copyspread. I get an image with some part of spread history missing. Please, tell me what is wrong.
And one more question. What exactly is stored in the history: spreads at the close of a candle, the average value of spread for a candle, or something else?
Thank you!