File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def _calc_drawdown_series(
140140 max_drawdown_df ["drawdown_relative" ] = (max_balance - cumulative_balance ) / max_balance
141141 else :
142142 # NOTE: This is not completely accurate,
143- # but might good enough if starting_balance is not available
143+ # but will be good enough if starting_balance is not available
144144 max_drawdown_df ["drawdown_relative" ] = (
145145 max_drawdown_df ["high_value" ] - max_drawdown_df ["cumulative" ]
146146 ) / max_drawdown_df ["high_value" ]
Original file line number Diff line number Diff line change @@ -858,9 +858,9 @@ def adjust_stop_loss(
858858 higher_stop = stop_loss_norm > self .stop_loss
859859 lower_stop = stop_loss_norm < self .stop_loss
860860
861- # stop losses only walk up, never down!,
862- # ? But adding more to a leveraged trade would create a lower liquidation price,
863- # ? decreasing the minimum stoploss
861+ # stop losses only walk up, never down!
862+ # but adding more to a leveraged trade would create a lower liquidation price,
863+ # decreasing the minimum stoploss
864864 if (
865865 allow_refresh
866866 or (higher_stop and not self .is_short )
You can’t perform that action at this time.
0 commit comments