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 searched the whole Internet looking for string array sorting http://ru.wikipedia.org/wiki/Быстрая_сортировка.
I ended up redesigning QuickSort to suit a string array.
I'd also like to include a mode for discarding unique records.
Greetings!
Do you know about iBarShift?
Greetings!
Create an additional array. There write the time from all symbols. Sort in ascending order. Remove duplicates. Synchronize the tools using this array. If there is no exact match, take the time of the nearest tick.
Yeah, that's what I did.
You can think of a few options. Take the average price per ms. Take the last price per ms. Artificially increase resolution to µs, e.g. 3 ticks came in one ms, make time of the first tick 10µs, the second 20µs, etc. Time information is lost, there is no better option. Taking the last price would be the most usual, like millisecond bars would work out.