From the documentation I see we can use 'record' to plot stock data, such as moving averages. Can we also use 'record' function to plot portfolio equity? I'm hoping so, as this would be an easy way to see at a glance if one's algo was leveraging beyond reasonable levels to generate the huge % gains one sometimes gets when conducting our 'in silico' experiments.
I tried record(context.portfolio.positions_value) but it returned a runtime error.