添加250均线
This commit is contained in:
@@ -3947,7 +3947,7 @@
|
||||
const defaultEMAs = [
|
||||
{ type: 'EMA', length: 5, color: '#FF0000', name: 'EMA5' }, // 红色
|
||||
{ type: 'EMA', length: 10, color: '#0000FF', name: 'EMA10' }, // 蓝色
|
||||
{ type: 'EMA', length: 26, color: '#00FF00', name: 'EMA26' }, // 绿色
|
||||
{ type: 'EMA', length: 26, color: '#008000', name: 'EMA26' }, // 深绿色
|
||||
{ type: 'EMA', length: 52, color: '#800080', name: 'EMA52' } // 紫色
|
||||
];
|
||||
|
||||
@@ -6952,8 +6952,8 @@
|
||||
});
|
||||
|
||||
// 验证输入
|
||||
if (config.length < 1 || config.length > 200) {
|
||||
alert('均线长度必须在1-200之间');
|
||||
if (config.length < 1) {
|
||||
alert('均线长度必须大于0');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -7235,8 +7235,8 @@
|
||||
const newSmoothLength = parseInt($('#maSmoothLength').val());
|
||||
const newSmoothType = $('#maSmoothType').val();
|
||||
|
||||
if (newLength < 1 || newLength > 200) {
|
||||
alert('均线长度必须在1-200之间');
|
||||
if (newLength < 1) {
|
||||
alert('均线长度必须大于0');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user