
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 made this little test code which copies the sizes of all candles in an array and sorts the array. Currently I am doing this with a normal loop. I was wondering if there is another way which might be more efficient using CopyRates(). The whole topic with CopyRates(), CopyBuffer() is a bit confusing sometimes and maybe someone can tell me how to use it in this case if necessary.
By the way, I am using the value in the middle of the sorted array as a volatility reference to measure if a candle is large. For me it is more suitable than using the ATR as a volatility reference.