original_docstring: Percent of trades that were successful
docstring: Percent of trades that were successful
docstring_tokens: Percent of trades that were successful
code: def trade_success(self):
          "Percent of trades that were successful"
          if self.total_trades == 0:
              return 0
          return (self.successful_trades / self.total_trades) * 100
code_tokens: def trade_success ( self ) : if self . total_trades == 0 : return 0 return ( self . successful_trades / self . total_trades ) * 100
short_docstring: Percent of trades that were successful
short_docstring_tokens: Percent of trades that were successful
comment: "Percent of trades that were successful"