Overall Statistics
Total Trades
0
Average Win
0%
Average Loss
0%
Compounding Annual Return
0%
Drawdown
0%
Expectancy
0
Net Profit
0%
Sharpe Ratio
0
Probabilistic Sharpe Ratio
0%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
0
Beta
0
Annual Standard Deviation
0
Annual Variance
0
Information Ratio
-0.502
Tracking Error
0.154
Treynor Ratio
0
Total Fees
$0.00
from datetime import datetime

class Sample(QCAlgorithm):

    def Initialize(self):

        self.SetStartDate(2021, 1, 1)   
        self.SetEndDate(2021, 2, 1) 
        self.SetCash(100000)    
        tqqq_1m = self.AddEquity("TQQQ", Resolution.Minute)
        self.tqqq_1m = tqqq_1m.Symbol
        tqqq_1h = self.AddEquity("TQQQ", Resolution.Hour)
        self.tqqq_1h = tqqq_1h.Symbol
        tqqq_1d = self.AddEquity("TQQQ", Resolution.Daily)
        self.tqqq_1d = tqqq_1d.Symbol

        stockPlot = Chart("TQQQ")
        stockPlot.AddSeries(Series("Minute Resolution", SeriesType.Line, 0))
        stockPlot.AddSeries(Series("Hourly Resolution", SeriesType.Line, 0))
        stockPlot.AddSeries(Series("Daily Resolution", SeriesType.Line, 0))
        self.AddChart(stockPlot)
        
    def OnData(self, data):
        if not data.ContainsKey(self.tqqq_1d) \
            or not data.ContainsKey(self.tqqq_1m): 
            return
        self.value_minute = data[self.tqqq_1m].Value
        self.value_hour = data[self.tqqq_1h].Value
        self.value_day = data[self.tqqq_1d].Value
        
    def OnEndOfDay(self):
        self.Plot("TQQQ", "Minute Resolution", self.value_minute)
        self.Plot("TQQQ", "Hourly Resolution", self.value_hour)  
        self.Plot("TQQQ", "Daily Resolution", self.value_day)