用于计算交易账户复利增长的数学公式。
初始资金 $10,000,月回报率 5%,12 个月 FV = $10,000 x (1.05)^12 = $17,958.56 每月追加 $500: FV = $10,000 x 1.7959 + $500 x [(1.05^12-1)/0.05] = $17,959 + $7,960 = $25,919
from dapex_calculators.position_size import calculate_compound_interest
result = calculate_compound_interest(10000, 60, 1, 500)
print(f"最终价值: ${{result['final_value']:,.2f}}")
发表评论