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 -469.988 Tracking Error 0.611 Treynor Ratio 0 Total Fees $0.00 |
from QuantConnect.Data.Custom.Tiingo import * class TransdimensionalResistanceCircuit(QCAlgorithm): def Initialize(self): self.SetStartDate(2020, 4, 5) # Set Start Date self.SetEndDate(2020, 4, 7) self.SetCash(100000) symbols = [ Symbol.Create("AAPL", SecurityType.Equity, Market.USA) ] self.SetUniverseSelection( ManualUniverseSelectionModel(symbols) ) self.UniverseSettings.Resolution = Resolution.Daily self.SetAlpha(MyAlpha()) self.SetPortfolioConstruction(EqualWeightingPortfolioConstructionModel()) self.SetExecution(ImmediateExecutionModel()) def OnData(self, data): self.Log(f"Called OnData at {self.Time}") class MyAlpha(AlphaModel): def Update(self, algorithm, data): algorithm.Log(f"Called Update at {algorithm.Time}") return [] def OnSecuritiesChanged(self, algorithm, changes): for security in changes.AddedSecurities: algorithm.AddData(TiingoNews, security.Symbol)