fix: 全仓模式预估风险/盈利按杠杆与可用保证金计算

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 00:38:27 +08:00
parent 9cb63c368a
commit e51d7824a7
8 changed files with 147 additions and 15 deletions
+9 -2
View File
@@ -246,7 +246,14 @@
<link rel="stylesheet" href="/static/instance_theme.css?v=18">
</head>
<body data-page="{{ page }}" data-risk-percent="{{ risk_percent }}">
<body
data-page="{{ page }}"
data-risk-percent="{{ risk_percent }}"
data-position-sizing-mode="{{ position_sizing_mode }}"
data-btc-leverage="{{ btc_leverage }}"
data-alt-leverage="{{ alt_leverage }}"
data-full-margin-buffer="{{ full_margin_buffer_ratio }}"
>
{% macro period_stats(title, s) %}
<div class="stats-period-block">
<h3>{{ title }}</h3>
@@ -833,7 +840,7 @@
<script src="/static/time_close_ui.js?v=2"></script>
<script src="/static/ai_review_render.js?v=2"></script>
<script src="/static/form_submit_guard.js?v=2"></script>
<script src="/static/manual_order_rr_preview.js?v=4"></script>
<script src="/static/manual_order_rr_preview.js?v=5"></script>
<script src="/static/strategy_roll.js?v=5"></script>
<script>
const JOURNAL_ENTRY_REASON_OPTIONS = {{ entry_reason_options | tojson }};