关于通达信均线颜色加粗的问题,我们总结了以下几点,给你解答:
通达信均线改颜色
在最后面;前加上这句",colorred”就改成红色了,其他颜色参考这里
点击“工具”-“系统设置”-“外观”,你想修改哪条线,就在右侧栏里找指标输出1,指标输出2,等,想修改成什么颜色,就点下面的颜色块就行了。
通达信均线颜色加粗
// 均线颜色
var colorMA5 = '#FF0000';
var colorMA10 = '#00FF00';
var colorMA20 = '#0000FF';
var colorMA30 = '#FF00FF';
// 均线粗细
var lineWidthMA5 = 2;
var lineWidthMA10 = 2;
var lineWidthMA20 = 2;
var lineWidthMA30 = 2;
// 均线类型
var lineTypeMA5 = 'solid';
var lineTypeMA10 = 'solid';
var lineTypeMA20 = 'solid';
var lineTypeMA30 = 'solid';
// 均线位置
var positionMA5 = 'MA5';
var positionMA10 = 'MA10';
var positionMA20 = 'MA20';
var positionMA30 = 'MA30';
// 均线名称
var nameMA5 = 'MA5';
var nameMA10 = 'MA10';
var nameMA20 = 'MA20';
var nameMA30 = 'MA30';
// 均线数据
var dataMA5 = [];
var dataMA10 = [];
var dataMA20 = [];
var dataMA30 = [];
// 均线数据计算
for (var i = 0; i < data.values.length; i++) {
dataMA5.push(data.values[i][2]);
dataMA10.push(data.values[i][3]);
dataMA20.push(data.values[i][4]);
dataMA30.push(data.values[i][5]);
}
// 均线图形配置
var seriesMA5 = {
name: nameMA5,
type: 'line',
data: dataMA5,
smooth: true,
showSymbol: false,
lineStyle: {
normal: {
width: lineWidthMA5,
color: colorMA5,
type: lineTypeMA5
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: colorMA5
}, {
offset: 1,
color: '#FFFFFF'
}])
}
},
markPoint: {
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
},
markLine: {
data: [
{ type: 'average', name: '平均值' }
]
}
};
var seriesMA10 = {
name: nameMA10,
type: 'line',
data: dataMA10,
smooth: true,
showSymbol: false,
lineStyle: {
normal: {
width: lineWidthMA10,
color: colorMA10,
type: lineTypeMA10
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: colorMA10
}, {
offset: 1,
color: '#FFFFFF'
}])
}
},
markPoint: {
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
},
markLine: {
data: [
{ type: 'average', name: '平均值' }
]
}
};
var seriesMA20 = {
name: nameMA20,
type: 'line',
data: dataMA20,
smooth: true,
showSymbol: false,
lineStyle: {
normal: {
width: lineWidthMA20,
color: colorMA20,
type: lineTypeMA20
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: colorMA20
}, {
offset: 1,
color: '#FFFFFF'
}])
}
},
markPoint: {
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
},
markLine: {
data: [
{ type: 'average', name: '平均值' }
]
}
};
var seriesMA30 = {
name: nameMA30,
type: 'line',
data: dataMA30,
smooth: true,
showSymbol: false,
lineStyle: {
normal: {
width: lineWidthMA30,
color: colorMA30,
type: lineTypeMA30
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: colorMA30
}, {
offset: 1,
color: '#FFFFFF'
}])
}
},
markPoint: {
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
},
markLine: {
data: [
{ type: 'average', name: '平均值' }
]
}
};
// 均线图形添加
option.series.push(seriesMA5);
option.series.push(seriesMA10);
option.series.push(seriesMA20);
option.series.push(seriesMA30);
// 均线图例位置调整
option.legend.data.push(nameMA5);
option.legend.data.push(nameMA10);
option.legend.data.push(nameMA20);
option.legend.data.push(nameMA30);
// 均线工具箱按钮添加
option.toolbox.feature.magicType.push({
show: true,
type: ['line', 'bar'],
title: {
line: '折线图切换',
bar: 'K线图切换'
},
option: {
series: [
{
name: nameMA5,
type: 'line',
data: dataMA5,
smooth: true,
showSymbol: false,
lineStyle: {
normal: {
width: lineWidthMA5,
color: colorMA5,
type: lineTypeMA5
}
},
areaStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: colorMA5
}, {
offset: 1,
color: '#FFFFFF'
}])
}
},
markPoint: {
data: [
{ type: 'max', name: '最大值' },
{ type: 'min', name: '最小值' }
]
},
markLine: {
data: [
{ type: 'average', name: '平均值' }
通达信均线怎么加粗变色
MA05斗为器行年范宽报族认:MA(C,5),LINETHICK2; MA10:MA(C,1乱声交但计包被映0),LINETHICK2; 承金够源术仅零MA30:MA(C,30),LINETHICK2; LINETHICK2 后面的数字是表示线条大小,0为不显示,1表示正常,2,3,4...加粗