Overall Statistics
namespace QuantConnect.Algorithm.CSharp
{
    public class Test1 : QCAlgorithm
    {
        public override void Initialize()
		{
			SetStartDate(2010,1,1);
			SetEndDate(2011,1,1);
			            
			SetCash(1000);
			            
			var _security = AddSecurity(SecurityType.Equity, "SPY", Resolution.Minute);
			_security.SetDataNormalizationMode(DataNormalizationMode.Raw);
			            
			var _macd = MACD("SPY", 12, 26, 9, MovingAverageType.Exponential, Resolution.Minute, Field.Close);
			            
			SetWarmUp(26, Resolution.Minute);
						
			Schedule.On(DateRules.EveryDay("SPY"), TimeRules.Every(TimeSpan.FromMinutes(1)), () =>
			{
				if(IsWarmingUp) return;
				if(!_macd.IsReady) return;
					        	
				Plot("SPY", _security.Close);
				Plot("MACD", "Value", _macd);
				Plot("MACD", "Signal", _macd.Signal);
			});
		}

        /// OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
        /// Slice object keyed by symbol containing the stock data
        public override void OnData(Slice data)
        {
        	return;
        }
    }
}