File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,11 +175,11 @@ def _round_timedelta(value, _period=_data_period(index)):
175175 s .loc ['# Long Trades' ] = n_long_trades = len (trades_df .loc [trades_df ['IsLong' ]])
176176 long_trades_df = trades_df .loc [trades_df ['IsLong' ]]
177177 win_long_rate = np .nan if not n_long_trades else (long_trades_df ['PnL' ] > 0 ).mean ()
178- s .loc ['Win Long Rate [%]' ] = win_long_rate * 100
178+ s .loc ['Win Rate Longs [%]' ] = win_long_rate * 100
179179 s .loc ['# Short Trades' ] = n_short_trades = len (trades_df .loc [trades_df ['IsShort' ]])
180180 short_trades_df = trades_df .loc [trades_df ['IsShort' ]]
181181 win_short_rate = np .nan if not n_short_trades else (short_trades_df ['PnL' ] > 0 ).mean ()
182- s .loc ['Win Short Rate [%]' ] = win_short_rate * 100
182+ s .loc ['Win Rate Shorts [%]' ] = win_short_rate * 100
183183 s .loc ['Long/Short Ratio' ] = np .nan if n_long_trades == 0 or n_short_trades == 0 else (n_long_trades / n_short_trades )
184184 s .loc ['Best Trade [%]' ] = returns .max () * 100
185185 s .loc ['Worst Trade [%]' ] = returns .min () * 100
You can’t perform that action at this time.
0 commit comments