Overall Statistics
Total Trades
0
Average Win
0%
Average Loss
0%
Compounding Annual Return
0%
Drawdown
0%
Expectancy
0
Net Profit
0%
Sharpe Ratio
0
Probabilistic Sharpe Ratio
0%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
0
Beta
0
Annual Standard Deviation
0
Annual Variance
0
Information Ratio
-0.668
Tracking Error
0.303
Treynor Ratio
0
Total Fees
$0.00
Estimated Strategy Capacity
$0
Lowest Capacity Asset
namespace QuantConnect
{
    public class CryingTanHippopotamus : QCAlgorithm
    {
    	string _symbol = "AAPL";
    	
        public override void Initialize()
        {
            SetStartDate(2020, 1, 1);
            SetEndDate(2021, 1, 1);
            SetCash(100000);
            
            AddEquity(_symbol, Resolution.Daily);
            
            var stockPlot = new Chart(_symbol);
            var assetPrice = new Series("Price", SeriesType.Line, 0);
            stockPlot.AddSeries(assetPrice);
        }

        /// 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)
        {
        	//Debug($"{Time:yyyy-MM-dd}: OnData()");
        	
        	if (data.Bars.ContainsKey(_symbol))
        	{
        		Plot(_symbol, "Price", data.Bars[_symbol].Close);
        	}
        	
        if (data.Dividends.ContainsKey(_symbol)) Log("AAPl paid a dividend of "+ data.Dividends[_symbol].Distribution);
        if (data.Splits.ContainsKey(_symbol)) Log("AAPL had an split event with factor "+ data.Splits[_symbol].SplitFactor);
    	}
       
          
    }
}