Skip to content

Backtesting a 30d Returns based strategy with Backtrader and making a report with Quantstats. Done on BTC-USDT historical data.

Notifications You must be signed in to change notification settings

DPRC137/Strategy-Backtest-using-Backtrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strategy Backtest using Backtrader

Backtesting a 30d-Returns based strategy with Backtrader and making a report with Quantstats. Done on BTC-USDT historical data.

result

30d Returns

30-day Returns are calculated on the price historical. This is already saved adn has been changed to percentages under the label "signal".

Strategy

Backtrader will execute BUY when the pct change in signal is -15%.

The Position is held until the pct change in signal is +50%, then a SELL order is triggered and the position will be closed.

Report

A detailed report is generated at the end of the execution using Quantstats and saved inside the dir as "stats.html".Screenshot (164)

About

Backtesting a 30d Returns based strategy with Backtrader and making a report with Quantstats. Done on BTC-USDT historical data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published