I am trying to plot the value of Portfolio.Cash to my chart as a line series but can not make it work. I have something like this so far.

#initialize plot = Chart('Trade Plot') self.AddChart(plot) // only plots a single scatter plot self.Plot('Trade Plot', 'Cash', self.Portfolio.Cash) // also doesn't work self.cash = self.Identity(self.Portfolio.Cash, Resolution.Daily, Field.Low); self.PlotIndicator('Trade Plot', 'Cash', self.cash)

I am trying to make it work in the initialization function because my equity has a resolution time of hourly and if I just plot individual points of my PortfolioCash on the OnData function then I get an error stating I've exceeded the maximum amount of points to plot per series