Select the top 5 variables
-
I have like 100 variables with different numeric values. How do I get the a list of variables whose values are the top 10 out of those 100 and put such a list as comma separated into another variable?
-
-
Thank you so much. I got to learn something really nice.
However, seems like I didn't explain it clearly what I needed. This code will generate a string with values of all the variables(out of 100) that has top 10 values separated by a comma. But I need the vairable names separated by comma. The result variable should look more like the following:
"var01,var09,var99,var10,var77,var72,var91........"
Thanks for your help
-
in that case use 2D array, mql support sorting by first dimension ... and other dimension will be reference for another string array which will be holding names of variables
here:https://fxdreema.com/shared/HSKz4cwHc




