- What is the counterpart to the ObjectName function?
- Copying an object
- Intersection coordinates
Searching objects by given coordinates is a GIS territory.
You can look at Spatial indexing, R-Tree indexing being most popular.
Before that, did you measure simple list search? Is it that slow?
Maybe you can make simple indices by day, or by hour - make list of all periods where each period contains list of all objects that appear in that period, and then search by price in that list? if you have objects that spans multiple periods, it will appear in all lists where it appears.
Searching objects by given coordinates is a GIS territory.
You can look at Spatial indexing, R-Tree indexing being most popular.
Before that, did you measure simple list search? Is it that slow?
Maybe you can make simple indices by day, or by hour - make list of all periods where each period contains list of all objects that appear in that period, and then search by price in that list? if you have objects that spans multiple periods, it will appear in all lists where it appears.
That amount of data looks like problem for spatial database. You might want look into PostgreSQL, it's open source and it has decent GIS capabilities.
That is still unclear. What are you going to do with the few closest ones?
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
The XY Problem
That amount of data looks like problem for spatial database. You might want look into PostgreSQL, it's open source and it has decent GIS capabilities.
That is still unclear. What are you going to do with the few closest ones?
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
The XY Problem
Wouldn't every new bar or a change in time frame require everything to be recalculated - does the idea still make sense then?
That's an interesting problem.
I would go with some simplified algorithm based on R-Tree concept.
If it's still too much you can divide the chart in X parts. Then you build a structure to classify your objects by time intervals, and by prices intervals.
When the mouse is moving you have firstly to find the concerned objects. That would select the equivalent of a chart window number of objects. Once you have them you apply a loop to check the neighbour of the mouse coordinates.
That's an interesting problem.
I would go with some simplified algorithm based on R-Tree concept.
If it's still too much you can divide the chart in X parts. Then you build a structure to classify your objects by time intervals, and by prices intervals.
When the mouse is moving you have firstly to find the concerned objects. That would select the equivalent of a chart window number of objects. Once you have them you apply a loop to check the neighbour of the mouse coordinates.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use