Open szshower opened 1 month ago
https://github.com/vnpy/vnpy_ctastrategy/blob/1125ae953b6721f45ecfd7c212f91abddcaaa6c6/vnpy_ctastrategy/backtesting.py#L389
import math annual_return: float = (math.pow(end_balance / self.capital, 240 / total_days) - 1)*100
https://github.com/vnpy/vnpy_ctastrategy/blob/1125ae953b6721f45ecfd7c212f91abddcaaa6c6/vnpy_ctastrategy/backtesting.py#L389