Navigation
Appearance

Speed up backtesting with parallel computing

DavidMSmith5 Apr 2009 · 1 min read
Speed up backtesting with parallel computing
Illustrative image generated with OpenAI gpt-image-1.

The video from last month’s high-performance backtesting webinar is now available for replay. It’s well worth checking out, especially for the demonstration at the end (from our own Bryan Lewis).

See more SmartData Collective in your Google results.Add as sourceFollow

Backtesting financial models is almost always a time-consuming task. Running the model over a sequence of historical time periods can be a burden both because the model itself may be expensive to compute, and the number of time periods may be large to get sufficient resolution of the trends over time and the deviations from actual results.

With a multiprocessor computer or with a simple cluster of machines running R, you can reduce the time required (scaling by the number of processors available). Bryan gives a very neat example of using the new foreach function in ParallelR 2.0 to simply create a parallelized version of a for loop and reduce the time required for the backtesting calculation by a factor of nearly four on a quad-core machine.

REvolution Computing: High-Performance Backtesting with Vhayu and REvolution R

Filed underr
Share this article

More on data mining

Find a perspective.

Saved for later.

Stored on this device only. Nothing is sent to SmartData.

    Nothing saved yet. Use “Save” on any article to keep it here.