Download MetaTrader 5

Nested "for" operator

To add comments, please log in or register
Publish your article to let the traders see it in MetaTrader 5!
EAlbuquerque 2016.07.23 00:28 

Hi there,

Is there a limitation in MQL4 to write a FOR operator inside another FOR operator, aka nested operators? I'm analyzing 2 variables and to my understanding the "internal" FOR - on each iteration - should keep the external FOR's variable unchanged. However I'm getting erratic results as the external variable seems not to be fixed while the internal one is being tested.

Thank you.


Thaddeus_39 2016.07.23 03:41  

Can you please post your code so we can help you?

Make sure you use the SRC button in the toolbar to attach the code.


To add comments, please log in or register