Overall Statistics
Total Trades
82
Average Win
0%
Average Loss
0%
Compounding Annual Return
503.156%
Drawdown
77.300%
Expectancy
0
Net Profit
140851.112%
Sharpe Ratio
4.396
Probabilistic Sharpe Ratio
99.581%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
3.626
Beta
-0.048
Annual Standard Deviation
0.823
Annual Variance
0.678
Information Ratio
4.155
Tracking Error
0.842
Treynor Ratio
-74.757
Total Fees
$0.00
class VentralCalibratedComputer(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2017, 1, 1)  # Set Start Date
        self.SetCash(10)  # Set Strategy Cash
        self.btc = self.AddCrypto("BTCUSD", Resolution.Daily).Symbol
        
        self.max = self.MAX(self.btc, 365)
        self.high = -1
        
        self.invested = 0
        
        self.Schedule.On(self.DateRules.Every(DayOfWeek.Monday), self.TimeRules.At(12, 0), self.deposit)

    def deposit(self):
        self.Portfolio.CashBook["USD"].AddAmount(10)
        self.invested += 10
        
        self.Plot("Strategy Equity", "Amount Invested", self.invested)
        
        if self.high < self.max.Current.Value:
            self.high = self.max.Current.Value
            self.stop_investing = self.Time + timedelta(182)
        
        if self.Time < self.stop_investing:
            self.SetHoldings(self.btc, 1)