Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 893 Bytes

File metadata and controls

17 lines (10 loc) · 893 Bytes

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)