Would like to display end of day statistics on both log and chart, but neither is displayed.

What am I doing wrong?

Trying to find the problem for a few days already, on another algorithm log and chart are displaying partial period.

Thanks in advance!

using QuantConnect.Data;
using QuantConnect.Data.Market;
using QuantConnect.Securities;
using System;
using System.Collections.Generic;
using QuantConnect.Orders;
using QuantConnect.Securities.Interfaces;
using QuantConnect.Interfaces;
using QuantConnect.Indicators;
using QuantConnect.Scheduling;

namespace QuantConnect.Algorithm.CSharp
{
public class Test : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2017, 01, 01);
SetEndDate(2017, 07, 01);
SetCash(100000);

Chart assets = new Chart("Assets");

AddEquity("AMZN", Resolution.Tick,Market.USA);

assets.AddSeries(new Series("AMZN", SeriesType.Line, 0));
AddChart(assets);
}

public override void OnData(Slice data)
{
foreach (String symbol in data.Ticks.Keys)
{
if (!Portfolio[symbol].Invested)
{
MarketOrder(symbol, 1000);
}
else
{
Liquidate(symbol);
}
}
}

public override void OnEndOfDay()
{
try
{
Debug("End of day: " + Time.Date.ToShortDateString());
Plot("Strategy Equity", "Portfolio", Portfolio.TotalPortfolioValue);
Plot("Assets", "AMZN", Securities["AMZN"].Price);
}
catch (Exception err)
{
Error("OnEndOfDay Err:" + err.Message);
}
}
}
}