self.portfolio_value¶
- property Strategy.portfolio_value¶
Returns the current portfolio value (cash + positions value).
- Returns
portfolio_value – The current portfolio value. Includes the actual values of shares held by the current strategy plus the total cash.
- Return type
float
Example
>>> # Get the current portfolio value >>> self.log_message(self.portfolio_value)