Clear trade history when resetting sim equity.
Deleting groups/fills/residuals and resetting strategy counters keeps funds reset a clean slate. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -419,7 +419,7 @@ export default function SettingsPage() {
|
||||
setStratOk(
|
||||
isLive
|
||||
? "策略参数已保存(实盘模式不改模拟资金)"
|
||||
: "策略参数已保存(切换交易所/改模拟资金需无持仓;切换后会重连行情)",
|
||||
: "策略参数已保存(改模拟资金会重置权益并清空交易记录,须无持仓;切换交易所后会重连行情)",
|
||||
);
|
||||
} catch (ex) {
|
||||
setErr(ex instanceof Error ? ex.message : String(ex));
|
||||
@@ -1405,7 +1405,7 @@ export default function SettingsPage() {
|
||||
<li>交易所:有持仓时不可切换。切换后套用该所合约并重连行情。</li>
|
||||
{mode !== "LIVE" ? (
|
||||
<li>
|
||||
模拟资金:仅 SIM 显示。保存后重置权益(须无持仓)。默认
|
||||
模拟资金:仅 SIM 显示。保存且金额变更后重置权益,并清空交易记录(须无持仓)。默认
|
||||
10000。
|
||||
</li>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user