Administrator
7 days ago 3ebd59a88bc0bdcf91dff94ad2ba25e1f4fe682f
src/main/resources/static/station-dashboard.html
@@ -1099,6 +1099,7 @@
    tpTriggerOppositeAddQuantity: 0,
    tpPositionReplenishEnabled: false,
    baseTakeProfitTotalQty: 0,
    originalPositionReduce: 0,
};
async function loadConfig(md5) {
@@ -1143,6 +1144,7 @@
    { key: 'maxPositionPerSide', label: '单边最大仓位 (0=不限)', type: 'number', placeholder: '0', jtype: 'int', group: 'addon' },
    { key: 'addPositionStartThreshold', label: '加仓启动阈值 (次)', type: 'number', placeholder: '1', jtype: 'int', group: 'addon', tip: '前 N 次止损不触发加仓' },
    { key: 'addPositionStopThreshold', label: '加仓停止阈值 (次)', type: 'number', placeholder: '0', jtype: 'int', group: 'addon', tip: '启动加仓后累计次数超过该值时,加仓张数恢复为基础张数;0 = 不限制' },
    { key: 'originalPositionReduce', label: '原始仓位减仓 (0=关闭)', type: 'number', placeholder: '0', jtype: 'int', group: 'addon', tip: '0=关闭;>0=每次止损后追单量递减的步长' },
    { key: 'tpTriggerOppositeAddEnabled', label: '止盈触发对向加仓', type: 'select', options: [{ v: 'false', l: '关闭' }, { v: 'true', l: '开启' }], group: 'addon', tip: '止盈单成交后触发对向加仓' },
    { key: 'tpTriggerOppositeAddQuantity', label: '对向加仓挂单数量 (张)', type: 'number', placeholder: '0', jtype: 'int', group: 'addon', tip: '止盈成交后在对向挂出的加仓张数' },
    { key: 'tpPositionReplenishEnabled', label: '仓位止盈补仓', type: 'select', options: [{ v: 'false', l: '关闭' }, { v: 'true', l: '开启' }], group: 'addon', tip: '开启后:任意方向止盈触发时,在对侧止损位挂相同张数、与止盈方向一致的开仓单(补回仓位);关闭:保持现有逻辑' },