Authors of indicators and experts have always been interested in writing the compact code in terms of execution time. You can approach to this problem from different angles. From this broad topic in this article we will cover the problem, that is seemingly already have been solved: check for a new bar. This is quite a popular way to limit the...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I'm new to trading, but with years of experience in programming.
However, I can't understand some messages I get in journal.
I got the code for the new bar from https://www.mql5.com/en/articles/159
Here's the code I'm testing, a simple EMA crossing script:
And here are some screenshots of the tester:
Settings:
1:
2:
3:
And here are my questions:
Picture 1, why is there a autotrade #6 -> #7 on the 4th of january 8am, but journal doesn't show anything for that time?
Picture 1, why is it trading at 8am when the lines are clearly not crossing?
Picture 2: why is it saying that's autotrade #5, when the journal is saying deal 5 takes place the 11th of january?
Picture 2: why is it showing 3 lines going out of autotrade 5, that go close at 3 different times?
Picture 3: what is it doing here? it opens and closes multiple times evend though my conditions are so simple, only do trade on crossing ma.
I know I must be doing something wrong, I'm not blaming mt5.. I just need some help understanding.
Thanks