Overall Statistics
Total Trades
58
Average Win
1.88%
Average Loss
-1.37%
Compounding Annual Return
-6.657%
Drawdown
41.200%
Expectancy
-0.258
Net Profit
-30.367%
Sharpe Ratio
-0.405
Probabilistic Sharpe Ratio
0.052%
Loss Rate
69%
Win Rate
31%
Profit-Loss Ratio
1.37
Alpha
-0.097
Beta
0.544
Annual Standard Deviation
0.141
Annual Variance
0.02
Information Ratio
-0.991
Tracking Error
0.131
Treynor Ratio
-0.105
Total Fees
$107.78
using QuantConnect.Indicators;
using System;
using System.Collections.Generic;
using QuantConnect.Algorithm.Framework;
using QuantConnect.Algorithm.Framework.Alphas;
using QuantConnect.Algorithm.Framework.Execution;
using QuantConnect.Algorithm.Framework.Portfolio;
using QuantConnect.Algorithm.Framework.Risk;
using QuantConnect.Algorithm.Framework.Selection;

namespace QuantConnect.Algorithm.CSharp
{

    public class SimpleSystem : QCAlgorithm
    {
        public override void Initialize()
        {
            UniverseSettings.Resolution = Resolution.Hour;
            SetStartDate(2015, 1, 1);
            SetEndDate(2020, 4, 1);
            SetCash(100000);
            SetWarmup(TimeSpan.FromDays(65));


            var tickers = new string[] { "SPY" };
            var symbols = new List<Symbol>();
            foreach (var ticker in tickers)
            {
                symbols.Add(QuantConnect.Symbol.Create(ticker, SecurityType.Equity, Market.USA));
            }


            
			SetAlpha(new RsiAlphaModel());
            SetUniverseSelection(new ManualUniverseSelectionModel(symbols));
            SetPortfolioConstruction(new EqualWeightingPortfolioConstructionModel(x=>null));
            SetExecution(new ImmediateExecutionModel());
            //SetRiskManagement(MaximumDrawdownPercentPerSecurity(0.01));
        }
    }
}