array out of range in '试验I-tsupei.mq4' (160,14)---头大了,,,没想明白怎么回事。。 新评论 Rujie Zhao 2021.09.09 15:53 int dwzz( int top,int aft,int xx) { int dks[];ArrayResize(dks,6);int x=0;int a=ArrayRange(dks,0);int y=0; for(int i=top;i<Bars-top;i++) { if(Low[i]<Low[i+1] && Low[i]<Low[i-1] && Low[i]<High[1] && Low[iLowest(NULL,0,MODE_LOW,i+aft,i+1)]>Low[i] && Close[i]<Close[1] && Low[i]<Low[iLowest(NULL,0,MODE_LOW,top,1)] && Low[i]<Low[iLowest(NULL,0,MODE_LOW,i-1,1)]) ArrayFill(dks,x,1,i);x++; if(x==6) { for(i=0;i<5;i++) { if(Low[dks[i]]-Low[dks[i+1]]<xx*Point && Low[dks[i]]>Low[dks[i+1]]) dks[i]=dks[i+1]; } } if(y==5)break; } return(a); } 报错的位置: ArrayFill(dks,x,1,i) 想了很久,,改了多次,都不行。。谁知道啊。 how do i code a counter the amount of candles since the last lowest low. Finding Range over all bars in a chart for N periods...High to Lowest ??? Finding Range over all bars in a chart for N periods...High to Lowest ??? Wen Tao Xiong 2021.09.10 04:09 #1 数组越界,空间分配不足 新评论
报错的位置: ArrayFill(dks,x,1,i) 想了很久,,改了多次,都不行。。谁知道啊。