BluePipsOnly: How can I make sure both sets of nested for loops are have completed updating
When the outer loop has exited.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 might seem quite trivial to some but I just can't seem to figure it out. I have a global variable 'bestMatch' that I keep updating within two for loops as seen in the relevant code below.
How can I make sure both sets of nested for loops are have completed updating before I perform any further calculations on the 'bestMatch' value?
I would want to multiple the bestMatch by a certain factor and do some other operations on it within the same method.