Overall Statistics
namespace QuantConnect 
{   
    public class BasicTemplateAlgorithm : QCAlgorithm
    {
        public override void Initialize() 
        {
			SetStartDate(2017, 4, 20);
			SetEndDate(2017, 4, 20);
            
            SetCash(25000);
            AddEquity("SPY", Resolution.Minute);
        }

        public override void OnData(Slice data) 
        {
        	Plot("SPY","Close", data["SPY"].Close);
            if (!Portfolio.HoldStock) 
            {
                SetHoldings("SPY", 1);
                Debug("Purchased SPY on " + Time.ToShortDateString());
            }
        }
    }
}