我想写一个通道指标,但是不显示,求解 indicator not show ,help ~!

 
#property copyright "Copyright 2013, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Yellow #property indicator_color2 Yellow double UpperBuffer[]; double LowerBuffer[]; int init() { SetIndexStyle(0,DRAW_LINE); SetIndexDrawBegin(0,3); SetIndexBuffer(0,UpperBuffer); SetIndexStyle(1,DRAW_LINE); SetIndexDrawBegin(1,3); SetIndexBuffer(1,LowerBuffer); return(0); } int deinit() { return(0); } int start() { for(int i= Bars -3; i>=0; i--) { UpperBuffer[i]=1.03*(Low[i] + Low[i+1] + Low[i+2])/3; LowerBuffer[i]=0.97*(High[i] + High[i+1] + High[i+2])/3; } return(0); }
 
问题已解决