Skip to content

An implementation of the "starter system" from Rob Carver's book Leveraged Trading

Notifications You must be signed in to change notification settings

markns/acorn-quantconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acorn QuantConnect

This project is an implementation of the "starter system" described in Rob Carver's book Leveraged Trading

It uses the LEAN backtesting engine developed by Quant Connect and trades CFDs via the Oanda brokerage.

Results

Results are not spectacular, but are correlated with the Eurekahedge Trend Following Index, which is used as the benchmark in the chart below.

paas

Backtesting

For backtesting it is necessary to download historical data

> lean data download \
    --dataset "CFD Data" \
    --organization "$organization" \
    --ticker "AU200AUD, BCOUSD, CH20CHF, CORNUSD, DE10YBEUR, DE30EUR, EU50EUR, FR40EUR, HK33HKD, JP225USD, NAS100USD, NATGASUSD, NL25EUR, SG30SGD, SOYBNUSD, SPX500USD, SUGARUSD, UK100GBP, UK10YBGBP, US2000USD, US30USD, USB02YUSD, USB05YUSD, USB10YUSD, USB30YUSD, WHEATUSD, WTICOUSD, XAGAUD, XAGCAD, XAGCHF, XAGEUR, XAGGBP, XAGHKD, XAGJPY, XAGNZD, XAGSGD, XAGUSD, XAUAUD, XAUCAD, XAUCHF, XAUEUR, XAUGBP, XAUHKD, XAUJPY, XAUNZD, XAUSGD, XAUUSD, XAUXAG, XCUUSD, XPDUSD, XPTUSD" \
    --resolution "Hour" \
    --start "20020501" \
    --end "20220725"

> lean data download \
    --dataset "FOREX Data" \
    --organization "$organization" \
    --ticker "NZDUSD,EURUSD,AUDUSD,USDJPY,USDCHF,GBPUSD,USDHKD,USDSGD,USDCAD" \
    --resolution "Daily" \
    --start "20000101" \
    --end "20220725"
    
> lean backtest starter_system

> lean report --report-destination reports/report.html
 

About

An implementation of the "starter system" from Rob Carver's book Leveraged Trading

Topics

Resources

Stars

Watchers

Forks