Overall Statistics |
# region imports from AlgorithmImports import * # endregion class HyperActiveRedOrangeAlpaca(QCAlgorithm): def initialize(self): self.set_start_date(2023, 1, 29) self.set_cash(100000) self.add_crypto("BTCUSD", Resolution.MINUTE) def on_data(self, data: Slice): if not self.portfolio.invested: self.set_holdings("BTCUSD", -1.0)