The Wayback Machine - https://web.archive.org/web/20210120210849/https://github.com/Grademark/grademark-first-example
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Grademark first example

A first example of a trading strategy backtested using Grademark.

Click here to see this code as a notebook

Follow the developer on Twitter

Try it out

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 install

Now run it:

node index.js

Or

npm start

You will see some stats printed to the console.

Inspect the output sub-directory for charts.

Examples of output

Here's a screenshot of the analysis:

Analysis of trades screenshot

Here's one of the charts that visualizes the equity curve:

Equity curve

Here's another chart, this is a visualization of the drawdown:

Drawdown

About

A first example of a trading strategy tested using the Grademark JavaScript backtesting API.

Resources

License

Releases

No releases published

Sponsor this project

 

Packages

No packages published
You can’t perform that action at this time.