Overall Statistics
using System.Net;

namespace QuantConnect 
{
    /*
    *   QuantConnect University: How to import a remote string dataset for 
    *   training genetic algorithms or trading on a list of trades.
    */
    public class StringDataRemoteImport : QCAlgorithm
    {   
        string _symbol = "EURUSD";
        string _data = "";
        
        public override void Initialize()
        {
            SetStartDate(2013, 1, 1);         
            SetEndDate(DateTime.Now.Date.AddDays(-1)); 
            SetCash(100000);
            AddSecurity(SecurityType.Forex, _symbol, Resolution.Minute);
        }

        public void OnData(TradeBars data) 
        {  
            //Download your dataset.
            if (_data == string.Empty) 
            {
                using(var wc = new WebClient()) 
                {
                    //Point the web client to your own data store.
                    _data = wc.DownloadString("https://www.google.com");
                }
            }
            
            if (!Portfolio.HoldStock) 
            {
                SetHoldings(_symbol, 0.05);
            }
        }
    }
}