修改web端

This commit is contained in:
Porter
2025-08-28 11:09:31 +08:00
parent e9c99e35e4
commit bb903a11cf
2 changed files with 10 additions and 7 deletions
+5 -5
View File
@@ -5446,10 +5446,10 @@
// 添加默认EMA配置
const defaultEMAs = [
{ type: 'EMA', length: 5, color: '#FF0000', name: 'EMA5' }, // 红色
{ type: 'EMA', length: 10, color: '#0000FF', name: 'EMA10' }, // 蓝色
{ type: 'EMA', length: 26, color: '#008000', name: 'EMA26' }, // 深绿色
{ type: 'EMA', length: 52, color: '#800080', name: 'EMA52' } // 紫色
{ type: 'EMA', length: 6, color: '#FF0000', name: 'EMA6' }, // 红色
{ type: 'EMA', length: 13, color: '#0000FF', name: 'EMA13' }, // 蓝色
{ type: 'EMA', length: 24, color: '#008000', name: 'EMA24' }, // 深绿色
{ type: 'EMA', length: 52, color: '#800080', name: 'EMA52' } // 紫色
];
defaultEMAs.forEach(ema => {
@@ -5463,7 +5463,7 @@
lineWidth: 1, // 1px线宽
lineStyle: 0, // 实线
color: ema.color,
visible: true
visible: (ema.length === 24 || ema.length === 52)
};
movingAverages.push(config);