I've squeezed all I can out of my code and now the bottlenecks are NT system code. In particular GetBars and RemoveUnreferencedPoolbarsNow. Since these are necessary tasks in order to get data and garbage collect, I assume that nothing can be done to optimize them.
However, I have been researching using a RAMDisk and/or SSD and was wondering if either of these would help the problem. I used a very small data set in my profile testing and Windows Task Manager does not show that the HDD is being hit when I run Strategy Analyzer and so I believe that it is pulling/cleaning data from RAM, not the disk.
Any thoughts are appreciated whether related to RAMDisk/SSD or other ideas. Thanks.
Side Note: A small simple piece of advice that I can offer from my work is that CurrentDayOHL is a CPU hog. It can easily be replaced by simply storing an array of Opens[x][0] for the first bar each day.
Comment