Overall Statistics
namespace QuantConnect 
{   
    /*
    *   Basic Template Algorithm
    *
    *   The underlying QCAlgorithm class has many methods which enable you to use QuantConnect.
    *   We have explained some of these here, but the full base class can be found at:
    *   https://github.com/QuantConnect/Lean/tree/master/Algorithm
    */
    public class BasicTemplateAlgorithm : QCAlgorithm
    {
        public override void Initialize() 
        {
        	// backtest parameters
            SetStartDate(2016, 1, 1);   
            SetEndDate(DateTime.Now);
            
            // cash allocation
            SetCash(1000000);
            
            // request specific equities
            // including forex. Options and futures in beta.
            var vxx = AddEquity("VXX", Resolution.Minute).Symbol;
			
            Schedule.On(DateRules.MonthStart(vxx), TimeRules.AfterMarketOpen(vxx, 10), () =>
			{
				if (CurrentSlice.ContainsKey(vxx)) {
					var shares = -100;
					MarketOrder(vxx, shares);
					Log("Sold " + shares + " of VXX on " + Time);
				}
			});
        }
    }
}