Overall Statistics
Total Trades
477
Average Win
2.01%
Average Loss
-1.64%
Compounding Annual Return
45.717%
Drawdown
16.900%
Expectancy
0.243
Net Profit
488.230%
Sharpe Ratio
1.65
Loss Rate
44%
Win Rate
56%
Profit-Loss Ratio
1.23
Alpha
NaN
Beta
NaN
Annual Standard Deviation
0.245
Annual Variance
0.06
Information Ratio
NaN
Tracking Error
NaN
Treynor Ratio
NaN
Total Fees
$2194.24
using System;
using System.Collections;
using System.Collections.Generic; 

namespace QuantConnect 
{
    using QuantConnect.Securities;
    using QuantConnect.Models; 

    //Sell in May Algorithm Example:
    public partial class QCPoormans : QCAlgorithm, IAlgorithm { 

        //Algorithm Variables
        private string symbol = "AAPL";
        private decimal cash = 10000;
        
        
        //Initialize the Strategy
        public override void Initialize() {
            SetCash(cash);
            SetStartDate(2011, 01, 01);
            SetEndDate(DateTime.Now.AddDays(-1));
            AddSecurity(SecurityType.Equity, symbol, Resolution.Minute);
        }
        
        
        
        public override void OnEndOfDay(string symbol)
        {
        	if(Time.Date.DayOfWeek == DayOfWeek.Friday)
        	{
        		SetHoldings(symbol, 0.95M,true);
        	} 
        	else if(Time.Date.DayOfWeek == DayOfWeek.Wednesday)
        	{
        		SetHoldings(symbol, -0.95M, true);
        	}
        	Plot(symbol, Securities[symbol].Price );
        }
        
    }
}