Quote from ctarmor-et:
Has anyone work with the API to access the historical bars stored in ANVIL ? They have multiple APIs but I am unclear how to use them.
Some of the APIs from StockBase are:
---> bool LoadHistoryChart(unsigned int from, unsigned int to, unsigned int unit)
---> const void* GetHistoryChart(unsigned int day)
---> const ChartPoint* WINAPI B_GetHistoryChartPoint(const void* chart, unsigned int minute);
It would be great to post some sample code on how to:
- Create historical chart (1min, 5min, etc)
- Retrieve current and past bars ChartPoint
- Create multiple time frames
Anyone ?