Fix position flicker, drop futures cooloff, prioritize startup display.
Preserve trading state when CTP memory is empty, bootstrap equity/positions on page load, stabilize risk status from DB monitors, and remove app-layer manual close cooling periods. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<ul>
|
||||
<li>成交后由程序<strong>本地监控</strong>;触及止盈或止损 → 市价平仓</li>
|
||||
<li><strong>移动保本</strong>:须填止损、不设固定止盈;达 1R 止损移至开仓±缓冲跳,2R 移 1R,依次类推</li>
|
||||
<li>手动平仓写入交易记录;当日手动平仓次数超限 → 进入冷静期</li>
|
||||
<li>手动平仓写入交易记录;当日手动平仓次数超限 → 当日禁止新开仓</li>
|
||||
</ul>
|
||||
<p><strong>可开仓品种表</strong></p>
|
||||
<ul>
|
||||
@@ -304,7 +304,9 @@
|
||||
'product_categories': product_categories | default([]),
|
||||
'recommend_rows': recommend_rows | default([]),
|
||||
'ctp_auto_connect': ctp_auto_connect,
|
||||
'session_clock': session_clock
|
||||
'session_clock': session_clock,
|
||||
'capital': capital,
|
||||
'bootstrap_live': bootstrap_live | default({})
|
||||
} | tojson }}</script>
|
||||
<script src="{{ url_for('static', filename='js/trade.js') }}?v={{ asset_v }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user