Overall Statistics
Total Trades
1
Average Win
0%
Average Loss
0%
Compounding Annual Return
-3.676%
Drawdown
26.200%
Expectancy
0
Net Profit
-5.514%
Sharpe Ratio
-0.073
Probabilistic Sharpe Ratio
5.602%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
-0
Beta
0.997
Annual Standard Deviation
0.165
Annual Variance
0.027
Information Ratio
-0.005
Tracking Error
0
Treynor Ratio
-0.012
Total Fees
$1.22
Estimated Strategy Capacity
$70000000.00
Lowest Capacity Asset
SPY R735QTJ8XC9X
#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)