For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
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?