| | |
| | | addPositionStartThreshold: 1, |
| | | placeExcessTakeProfit: false, |
| | | priceDriveEnabled: true, |
| | | dualStopLossEnabled: false, |
| | | longStopLossPrice: '', |
| | | shortStopLossPrice: '', |
| | | }; |
| | | |
| | | async function loadConfig(md5) { |
| | |
| | | { key: 'rounds', label: '运行轮数 (0=不限)', type: 'number', placeholder: '0', jtype: 'int', group: 'run', tip: '盈利重启达此轮数后停止' }, |
| | | { key: 'placeExcessTakeProfit', label: '超额止盈', type: 'select', options: [{ v: 'false', l: '关闭' }, { v: 'true', l: '开启' }], group: 'run' }, |
| | | { key: 'priceDriveEnabled', label: '价格驱动', type: 'select', options: [{ v: 'true', l: '开启' }, { v: 'false', l: '关闭' }], group: 'run' }, |
| | | |
| | | { key: 'dualStopLossEnabled', label: '双开止损触发', type: 'select', options: [{ v: 'false', l: '关闭' }, { v: 'true', l: '开启' }], group: 'dual-sl', tip: '开启后按下方多空止损触发价初始化双向止损单,任一触发后重挂另一侧止损' }, |
| | | { key: 'longStopLossPrice', label: '多头止损触发价', type: 'number', step: 'any', placeholder: '如 2540', jtype: 'string', group: 'dual-sl', tip: '价格跌至该值时触发多头止损' }, |
| | | { key: 'shortStopLossPrice', label: '空头止损触发价', type: 'number', step: 'any', placeholder: '如 2650', jtype: 'string', group: 'dual-sl', tip: '价格涨至该值时触发空头止损' }, |
| | | ]; |
| | | |
| | | // 分组定义(渲染顺序) |
| | |
| | | { id: 'grid', name: '📐 网格参数' }, |
| | | { id: 'risk', name: '🛡️ 风控参数' }, |
| | | { id: 'addon', name: '📈 加仓 & 止损' }, |
| | | { id: 'dual-sl', name: '🎯 双开止损触发' }, |
| | | { id: 'run', name: '⚡ 运行控制' }, |
| | | ]; |
| | | |