
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
milliseconds = 1000 * seconds!
Hi @Fernando Carreiro
It's worked !! I've used CopyTicksRange with a little range of time and the result has been exactly what I was expecting.
Thank you very much !!
You are welcome!
Then do as you have described:
Hi @Fernando Carreiro
I've been looking for how to group the info and sort them. The arrays let save info like this (arr[0] = 23, arr[1] = 344, arr[2] = 45 ....).
But I need save something like this:
arr["1.2345"] = 34, arr["1.2346"] = 255, arr["1.2347"] = 469, where the indexes of every element are the prices of the candle for every tick and the value is the volume of that price.
I don't know how use indexes in arrays, and then sort them.
Any idea or sample code I can use?
Thank you very much
arr["1.2345"] = 34, arr["1.2346"] = 255, arr["1.2347"] = 469, where the indexes of every element are the prices of the candle for every tick and the value is the volume of that price. I don't know how use indexes in arrays, and then sort them. Any idea or sample code I can use?
Ideally you would use Collection class with a Key and Value pair, but since that will probably still be too complicated for you, maybe it would be best for you to use two-dimensional arrays.
I am not at my own computer now so I can't compile and test the code, but here is a basic outline, straight out of my head and untested, so you will have to do some research and fill in the rest:
On second thought, ArraySort is probably not going to work in that scenario and you may need to create your own function for sorting.
Sorry I am not able to offer more concrete solution but I am not able to do it at the moment as I have other obligations to take care of.
Your idea was perfect for me. The Arraysort works fine because is sorting by the first dimension of array.
Thank you