Overall Statistics
Total Orders
1
Average Win
0%
Average Loss
0%
Compounding Annual Return
9.230%
Drawdown
26.200%
Expectancy
0
Start Equity
100000
End Equity
129809.47
Net Profit
29.809%
Sharpe Ratio
0.31
Sortino Ratio
0.371
Probabilistic Sharpe Ratio
14.983%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
-0
Beta
0.995
Annual Standard Deviation
0.144
Annual Variance
0.021
Information Ratio
-0.557
Tracking Error
0.001
Treynor Ratio
0.045
Total Fees
$1.25
Estimated Strategy Capacity
$70000000.00
Lowest Capacity Asset
SPY R735QTJ8XC9X
Portfolio Turnover
0.09%
#region imports
from AlgorithmImports import *
#endregion
# In Module 4, we address data preparation.
# It includes the collecting, cleaning, indexing, 
# storing, adjusting, and delivering 
# all data to the production chain

# region imports
from AlgorithmImports import *
# endregion

class FormalGreenCamel(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2021, 4, 27)  # Set Start Date
        self.SetCash(100000)  # Set Strategy Cash
        self.AddEquity("SPY", Resolution.Minute)


    def OnData(self, data: Slice):
        if not self.Portfolio.Invested:
            self.SetHoldings("SPY", 1.0)