Overall Statistics
namespace QuantConnect 
{   
    public class BasicTemplateAlgorithm : QCAlgorithm
    {
    	private string ticker = "NZDCHF";
    	private SecurityType type = SecurityType.Forex;
    	private RelativeStrengthIndex _rsi; 
    	
        //Initialize the data and resolution you require for your strategy:
        public override void Initialize() 
        {
        	SetCash(25000);
            SetStartDate(2016, 1, 1);
            SetEndDate(2016, 2, 5);
            
            AddSecurity(type, ticker, Resolution.Daily);
        	_rsi = RSI(Securities[ticker].Symbol, 13, MovingAverageType.Simple, Resolution.Daily);
        }

        public void OnData(TradeBars data) 
        {   
            if(!_rsi.IsReady) return;
            
            if (!Portfolio.HoldStock) 
           	{
               	SetHoldings(ticker, 1);
               	Debug(Time.ToShortDateString() + " -> Purchased " + ticker);
            }
            
            Debug(string.Format("{0:d} -> {1} RSI: {2:0.000000} Price: {3:.000000}", Time, ticker, _rsi, data[ticker].Price));
        }
    }
}