

添加折线
_this. MALine5 = _this. chart. chart(). createStudy( 'Moving Average', false, false, [ 5], null, { 'Plot.color' : '#642d92'}); _this. MALine10 = _this. chart. chart(). createStudy( 'Moving Average', false, false, [ 10], null, { 'Plot.color' : '#5278a3'}); _this. MALine30 = _this. chart. chart(). createStudy( 'Moving Average', false, false, [ 30], null, { 'Plot.color' : '#238031'}); _this. MALine60 = _this. chart. chart(). createStudy( 'Moving Average', false, false, [ 60], null, { 'Plot.color' : '#850058'});隐藏折线
_this. chart. chart(). getStudyById( _this. MALine5). setVisible( false); _this. chart. chart(). getStudyById( _this. MALine10). setVisible( false); _this. chart. chart(). getStudyById( _this. MALine30). setVisible( false); _this. chart. chart(). getStudyById( _this. MALine60). setVisible( false);需要注意的是以上方法均在 onchartready里面执行