Overall Statistics
Total Orders
1
Average Win
0%
Average Loss
0%
Compounding Annual Return
0.114%
Drawdown
0.000%
Expectancy
0
Start Equity
100000
End Equity
100172.12
Net Profit
0.172%
Sharpe Ratio
-110.95
Sortino Ratio
-131.071
Probabilistic Sharpe Ratio
81.748%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
-0.054
Beta
0.005
Annual Standard Deviation
0
Annual Variance
0
Information Ratio
-1.826
Tracking Error
0.099
Treynor Ratio
-11.101
Total Fees
$1.00
Estimated Strategy Capacity
$200000000000.00
Lowest Capacity Asset
SPY R735QTJ8XC9X
Portfolio Turnover
0.00%
# region imports
from AlgorithmImports import *
# endregion
class DeterminedTanCaribou(QCAlgorithm):
    def initialize(self):
        self.set_start_date(2023, 4, 29)
        self.set_security_initializer(BrokerageModelSecurityInitializer(self.brokerage_model, FuncSecuritySeeder(self.get_last_known_price)))
        self.universe_settings.resolution = Resolution.DAILY
        self.add_equity("SPY", self.universe_settings.resolution)
        self.ticket = None

        self.schedule.on(self.date_rules.every_day("SPY"), self.time_rules.before_market_open("SPY", 30), self.place_orders)

    def place_orders(self):
        if not self.ticket:
            self.ticket = self.market_on_open_order("SPY", 1)