Overall Statistics
Total Trades
1242
Average Win
0.25%
Average Loss
-0.12%
Compounding Annual Return
9.219%
Drawdown
16.900%
Expectancy
1.762
Net Profit
353.092%
Sharpe Ratio
0.957
Probabilistic Sharpe Ratio
35.804%
Loss Rate
7%
Win Rate
93%
Profit-Loss Ratio
1.97
Alpha
0.043
Beta
0.271
Annual Standard Deviation
0.068
Annual Variance
0.005
Information Ratio
-0.125
Tracking Error
0.127
Treynor Ratio
0.241
Total Fees
$1247.67
Estimated Strategy Capacity
$220000000.00
Lowest Capacity Asset
BGU U7EC123NWZTX
class StaticBarbell(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2005, 1, 1)  # Set Start Date
        self.SetCash(10000)  # Set Strategy Cash
        self.SetBrokerageModel(BrokerageName.AlphaStreams)
        self.stock = self.AddEquity("SPXL", Resolution.Daily)  # SPXL, FIHD
        self.safe = self.AddEquity("IEF", Resolution.Daily)  # IEF
        self.insurance = self.AddEquity("VIXY", Resolution.Daily)
        self.insu_ratio = 0.01
        self.stock_ratio = 0.20
        self.safe_ratio = 1.0 - self.insu_ratio - self.stock_ratio
        self.Schedule.On(self.DateRules.WeekStart("SPXL"),
                         self.TimeRules.At(10, 0, 0),
                         self.RebalancePortfolio)
    
    def RebalancePortfolio(self):
        self.SetPosition(self.stock, self.stock_ratio)
        self.SetPosition(self.safe, self.safe_ratio)
        self.SetPosition(self.insurance, self.insu_ratio)
            
    def SetPosition(self, asset, share):
        if self.IsMarketOpen(asset.Symbol) and asset.Price > 0:
            self.SetHoldings(asset.Symbol, share)