Skip to content

Commit d9c8ed2

Browse files
authored
Merge pull request #428 from coding-kitties/dev
feat: order metadata, consistency/stability metrics, dashboard & MCP improvements
2 parents 2316150 + 2253717 commit d9c8ed2

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

investing_algorithm_framework/cli/mcp_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,8 @@ def _get_tools(self):
19071907
"description": (
19081908
"Metric name, e.g. sharpe_ratio, "
19091909
"cagr, max_drawdown, win_rate, "
1910-
"consistency_score, stability_score"
1910+
"consistency_score, " # noqa
1911+
"stability_score"
19111912
),
19121913
},
19131914
"operator": {

investing_algorithm_framework/infrastructure/services/backtesting/vector_backtest_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ def _close_trade(sym, sym_data, price, date):
332332
sym_data['entry_count'] = 0
333333
sym_data['scale_out_count'] = 0
334334

335-
def _open_trade(sym, sym_data, price, date, capital,
336-
order_reason="buy_signal"):
335+
def _open_trade(
336+
sym, sym_data, price, date, capital,
337+
order_reason="buy_signal"
338+
):
337339
"""Helper to open a new trade for a symbol."""
338340
nonlocal current_unallocated, total_allocated
339341

0 commit comments

Comments
 (0)