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.Daily);

            Schedule.On(DateRules.MonthStart("VXX"), TimeRules.AfterMarketOpen("VXX", 10), () =>
			{
				
				var shares = -100; // -10000 / Securities["VXX"].Price;
				MarketOrder("VXX", shares);
				Log("Sold " + shares + " of VXX on " + Time);
			});
        }


    }
}