A first example of a trading strategy backtested using Grademark.
Click here to see this code as a notebook
You need Node.js installed to run this.
Clone or download the repo.
Change to repo's directory and install dependencies:
cd grademark-first-example
npm installNow run it:
node index.jsOr
npm startYou will see some stats printed to the console.
Inspect the output sub-directory for charts.
Here's a screenshot of the analysis:
Here's one of the charts that visualizes the equity curve:
Here's another chart, this is a visualization of the drawdown:


