Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MarkJamesStevenson/BackTest

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

155 Commits
155 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Test trading strategies with historical data.

Overview

BackTest allows you to write your own algorithm and test it on historical stock data. Currently stock data must be downloaded manually from yahoo finance. e.g. MSFT historical data can be downloaded here MSFT. To use your own stock data you can derive from the dataprovider class.

To write your own strategy, derive from the strategy class. A basic example is given with the BuyAndHoldStrategy class.

Example screenshots

A full backtest of MSFT is shown below: Alt text

You can zoom in on areas of interest: Alt text

Dependencies

To build and run BackTest the following dependencies must first be installed:

  • Qt5
  • libcurl
  • C++14 compiler

How to build

First, you will need an installation of CMake. Once this is done, you can cd to the root of the project and setup the build directory:

mkdir build
cd build
cmake ..

About

Back test trading strategies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.