Hi !
I search since 3 days to get the maximum pnl.
I tried :
pnl = np.arange(context.portfolio.pnl)
context.max_pnl = np.nanmax(pnl)
that seems to me the best way, but :
ValueError: zero-size array to reduction operation fmax which has no identity
Some-one help ?
May be a tip to call the record(pnl = pnl) ?