original_docstring: 
          It sets all the variables that can be used at the end of the algorithm by the calling functions.
          @return Nothing
          
docstring: It sets all the variables that can be used at the end of the algorithm by the calling functions.
  @return Nothing
docstring_tokens: It sets all the variables that can be used at the end of the algorithm by the calling functions . @return Nothing
code: def defining_exit_variables(self):
          """
          It sets all the variables that can be used at the end of the algorithm by the calling functions.
          @return Nothing
          """
          try:
              self.starting_capital = self.buying_price * self.size
              self.ending_capital = self.selling_price * self.size - self.commission_start - self.commission_end
              self.amount_gained_lost = self.ending_capital - self.starting_capital
              self.rate_gained_lost = self.ending_capital / self.starting_capital - 1
  
              self.results['starting_capital'] = self.starting_capital
              self.results['total_cash_added'] = 0
              self.results['ending_capital'] = self.ending_capital
              self.results['amount_gained_lost'] = self.amount_gained_lost
              self.results['rate_gained_lost'] = self.rate_gained_lost
          except Exception as e:
              log.error(f"There is a problem in the code!: {e}\n{getDebugInfo()}")
code_tokens: def defining_exit_variables ( self ) : try : self . starting_capital = self . buying_price * self . size self . ending_capital = self . selling_price * self . size - self . commission_start - self . commission_end self . amount_gained_lost = self . ending_capital - self . starting_capital self . rate_gained_lost = self . ending_capital / self . starting_capital - 1 self . results [ 'starting_capital' ] = self . starting_capital self . results [ 'total_cash_added' ] = 0 self . results [ 'ending_capital' ] = self . ending_capital self . results [ 'amount_gained_lost' ] = self . amount_gained_lost self . results [ 'rate_gained_lost' ] = self . rate_gained_lost except Exception as e : log . error ( f"There is a problem in the code!: {e}\n{getDebugInfo()}" )
short_docstring: It sets all the variables that can be used at the end of the algorithm by the calling functions.
short_docstring_tokens: It sets all the variables that can be used at the end of the algorithm by the calling functions .
comment: """
          It sets all the variables that can be used at the end of the algorithm by the calling functions.
          @return Nothing
          """