API documentation for tradeexecutor.state.statistics.calculate_naive_profitability Python function.
- calculate_naive_profitability(total_equity_series, look_back=None, start_at=None, end_at=None)#
Calculate the profitability as value at end - value at start.
This method assumes there are no deposits or redemptions. See
tradeexecutor.visual.equity_curvefor more advanced profit calculations.
Tuple (Profitability as %, duration of the sample period). (None, None) if we cannot calculate anything yet.
- Return type: