Trades Analyzer min value is set to MAXINT if there is no short trades.
When calling strat.analyzers.Trades.get_analysis(), if there is no short trades, the returned short related min values turn out to be the MAXINT. It seems like a bug.
It seems like you need a trade ...
@backtrader Yes, there is no short trade in this example, so should it return MAXINT? or just zero?