请各位大侠帮帮看看,我昨晚搞了一晚上,也加不进警报提示,请问在哪里加呢,谢谢!!!
1、没有说出来什么情况加报警;
2、指标源码里面似乎把原作者给删除了;
3、我就不会加报警,还没学到那哈~~
这个指标太准了,所以没什么用.呵呵...
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_width1 2 #property indicator_color2 Lime #property indicator_width2 2 extern int SignalGap = 4; int dist=24; double b1[]; double b2[]; int AlertSound = 0; int init() { SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,1); SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,1); SetIndexArrow(1,233); SetIndexArrow(0,234); SetIndexBuffer(0,b1); SetIndexBuffer(1,b2); return(0); } int start() { int counted_bars=IndicatorCounted(); int k,i,j,limit,hhb,llb; if (counted_bars<0) return(-1); if (counted_bars>0) counted_bars--; limit=Bars-1; if(counted_bars>=1) limit=Bars-counted_bars-1; if (limit<0) limit=0; for (i=limit;i>=0;i--) { hhb = Highest(NULL,0,MODE_HIGH,dist,i-dist/2); llb = Lowest(NULL,0,MODE_LOW,dist,i-dist/2); if (i==hhb) { b1[i]=High[hhb]+SignalGap*Point; if(AlertSound != 2) { PlaySound("声音文件名.wav"); AlertSound = 2; } } if (i==llb) { b2[i]=Low[llb]-SignalGap*Point; if(AlertSound != 1) { PlaySound("声音文件名.wav"); AlertSound = 1; } } } return(0); }