xiaowei-system/stock_backtest/ma20_result_000001.json

18 lines
1.5 KiB
JSON

{
"code": "000001",
"name": "平安银行",
"strategy": "MA20",
"period": "2024-08-01 ~ 2026-08-21",
"initial_cash": 100000,
"final_value": 116624.06000000001,
"strategy_return": 16.624060000000014,
"buyhold_return": 25.019369999999995,
"alpha": -8.39530999999998,
"max_drawdown": 19.720699850189526,
"total_trades": 26,
"win_rate": 26.923076923076923,
"trades": "[{'type': 'SELL', 'date': '2026-06-04', 'price': 10.46, 'shares': 10860, 'profit_pct': -2.425373134328356, 'reason': '死叉'}, {'type': 'BUY', 'date': '2026-06-05', 'price': 10.62, 'shares': 10696, 'reason': '金叉'}, {'type': 'SELL', 'date': '2026-06-18', 'price': 10.52, 'shares': 10696, 'profit_pct': -0.9416195856873789, 'reason': '死叉'}, {'type': 'BUY', 'date': '2026-06-23', 'price': 10.71, 'shares': 10507, 'reason': '金叉'}, {'type': 'SELL', 'date': '2026-06-24', 'price': 10.51, 'shares': 10507, 'profit_pct': -1.867413632119524, 'reason': '死叉'}, {'type': 'BUY', 'date': '2026-07-08', 'price': 10.6, 'shares': 10417, 'reason': '金叉'}, {'type': 'SELL', 'date': '2026-07-09', 'price': 10.49, 'shares': 10417, 'profit_pct': -1.0377358490565984, 'reason': '死叉'}, {'type': 'BUY', 'date': '2026-07-13', 'price': 10.54, 'shares': 10368, 'reason': '金叉'}, {'type': 'SELL', 'date': '2026-08-14', 'price': 11.11, 'shares': 10368, 'profit_pct': 5.407969639468694, 'reason': '死叉'}, {'type': 'BUY', 'date': '2026-08-19', 'price': 11.27, 'shares': 10221, 'reason': '金叉'}]",
"in_position": true,
"buy_price": 11.27,
"current_price": 11.41
}