| Overall Statistics |
|
Total Trades 2 Average Win 0% Average Loss 0.00% Compounding Annual Return 6.171% Drawdown 55.100% Expectancy -1 Net Profit 279.510% Sharpe Ratio 0.379 Probabilistic Sharpe Ratio 0.051% Loss Rate 100% Win Rate 0% Profit-Loss Ratio 0 Alpha 0.073 Beta -0.093 Annual Standard Deviation 0.177 Annual Variance 0.031 Information Ratio -0.001 Tracking Error 0.262 Treynor Ratio -0.72 Total Fees $8.68 |
from Alphas.ConstantAlphaModel import ConstantAlphaModel
from Execution.ImmediateExecutionModel import ImmediateExecutionModel
from Portfolio.EqualWeightingPortfolioConstructionModel import EqualWeightingPortfolioConstructionModel
from Risk.MaximumDrawdownPercentPerSecurity import MaximumDrawdownPercentPerSecurity
class MultidimensionalModulatedAntennaArray(QCAlgorithm):
def Initialize(self):
self.SetStartDate(1998, 1, 1) # Set Start Date
self.SetCash(100000) # Set Strategy Cash
symbols = [ Symbol.Create("SPY", SecurityType.Equity, Market.USA) ]
self.SetUniverseSelection( ManualUniverseSelectionModel(symbols) )
self.UniverseSettings.Resolution = Resolution.Daily
# Emit a constant Price Insight of Up direction
self.AddAlpha(ConstantAlphaModel(InsightType.Price, InsightDirection.Up,Time.Multiply(Extensions.ToTimeSpan(Resolution.Daily), 1)))
self.SetExecution(ImmediateExecutionModel())
self.SetPortfolioConstruction(EqualWeightingPortfolioConstructionModel())
self.SetRiskManagement(NullRiskManagementModel())
def OnData(self, data):
'''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
Arguments:
data: Slice object keyed by symbol containing the stock data
'''
# if not self.Portfolio.Invested:
# self.SetHoldings("SPY", 1)
pass