Hi! Currently by default, the benchmark is plotted on a different window from the strategy equity. I'm trying to make it so that the benchmark performance is overlayed on the strategy equity instead of being plotted separately. 

To start, I tried out the idea from this post.

By cloning the attached algorithm in the post above, the function worked just fine, but when I applied it to another algorithm that uses a technical indicator, I encounter an error:

:: self.benchmarkValue = (currentBenchmarkPrice / self.initBenchmarkPrice) * self.initBenchmarkCash
ZeroDivisionError : float division by zero

It shouldn't be dividing by zero, so I'm not sure why the algorithm is doing this. I attached the algorithm I tried to apply the function on to this post; I had to comment out the self.plot in OnData in order to generate a backtest.