For backtest, we can put all historical data in a big array, or having separate array to store start end start close column. Which method would let the backtest runs faster?
Quote from blah12345678:
If you walk away for 6 months, then come back to read the code, could you understand it?
Single or multi - the execution difference is probably negligible. It's not like it's mission critical or anything.
Go for the more readable solution. The compiler will optimize away many of your human conveniences anyway.
And if you're using C++, why aren't you using vectors from the STL? That code has been written by programmers magnitudes better in ability than any of us...
Here's a tutorial -> C++ STL Vectors