import pyfolio as pf
import matplotlib.pyplot as plt
plotAlgo, = plt.plot(pf.timeseries.cum_returns(get_backtest('5986cd3813941754493bbe91').daily_performance.returns), label = 'Aglo V0.1')
plotFAANG, = plt.plot(pf.timeseries.cum_returns(get_backtest('5986d295dbab994fa4264922').daily_performance.returns), label = 'FAANG')
plt.legend(bbox_to_anchor=(1.025, 1),handles=[plotAlgo, plotFAANG], loc = 2, borderaxespad= 0.)
get_backtest('5986cd3813941754493bbe91').create_returns_tear_sheet()
get_backtest('5986d295dbab994fa4264922').create_returns_tear_sheet()