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
This loop goes through the series backwards until it finds a difference other than zero.
This can be omitted, but then there is a chance of missing the intersection if we accidentally hit a bar when M1 == M2.
We can replace < with <=, then this case of intersection will be caught,
but the condition will also produce an intersection when two rows touch without crossing.
In general, it is more correct to use the text which is written in
(but I just need to check it in work - I haven't checked it).
As for the speed, it will be the same.
This loop will be triggered very rarely,
and practically always no more than 1 additional check.
Question to fellow chaos wrestlers: will MQL4 support access to any database?
(Theoretically, there's no problem for that).
Yes, there will be - it is planned. Most likely it will be together with the new version of the MQL4 compiler.
What is the execution time of compiled code in MQL4 compared to other programming languages? For example C++ is the fastest, Java is much slower...
All sales moments count as buying moments
All buying moments count as selling moments
Is there such a thing or not? And if not, as it seems to me (maybe I'm wrong), it would be good for developers to include such a built-in function.
Or maybe there is one after all?
What is the execution time of compiled code in MQL4 compared to other programming languages? For example C++ is the fastest, Java is much slower...
"MQL4, MQL2, EasyLanguage, Wealth-Lab 3.0 and VC++: Speed comparison".
It's just as an example, just throw out the extra stuff :))
Before closing a position, we close all opposite positions.
Close all opposite positions before opening them.
I've already provided a link to our English forum about closing all positions. apparently, no one has read the entire thread. the reverse cycle would be more correct.
You are deleting a position and it is removed from the list. The next position takes its place and the counter is incremented and this very position is just skipped.