gnovak:
You could copy the values to an array, sort the array and copy the values back.
I have created an indicator where there are 4 extern values: MAE1, MAE2, MAE3, MAE4
Is there a function to place these in numerical order from lowest to highest so that MA1 contains the lowest MAE1-4, MA2 contains the next lowest, etc?
Seems that the code to do that by hand would be rather intense.
RaptorUK:
You could copy the values to an array, sort the array and copy the values back.
You could copy the values to an array, sort the array and copy the values back.
Thanks RaptorUK. I thought perhaps I was perhaps missing a function like MAX(value1, value2, value3...).
I'll use ArraySort() and take your advice -
I really appreciate it!
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
I have created an indicator where there are 4 extern values: MAE1, MAE2, MAE3, MAE4
Is there a function to place these in numerical order from lowest to highest so that MA1 contains the lowest MAE1-4, MA2 contains the next lowest, etc?
Seems that the code to do that by hand would be rather intense.