请指教,帮我看看源码什么地方错了

 

下面的源码是为了找出范围小于十点的十字星,有一句不知道怎么写,请帮我看看,谢谢

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 White
extern double factorWindow=0.03;
int limit;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
string PatternText[200000];
double windHeight,offset;
//+------------------------------------------------------------------+
//| CuStom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_ARROW,EMPTY, 1, Red);
SetIndexArrow(0,159);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_ARROW,EMPTY, 1, White);
SetIndexArrow(1,159);
SetIndexBuffer(1,ExtMapBuffer2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| CuStor indicator deinitialization function |
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//| CuStom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int N;
int N1;
int N2;
int N3;


windHeight = WindowPriceMax() - WindowPriceMin();
offset = windHeight*factorWindow;
int counted_bars=IndicatorCounted();
limit=Bars-counted_bars;
for(N = 1; N < limit; N++) {
// double maa=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,N);
N1 = N ;
N2 = N + 1;
N3 = N + 2;
//----
//---- check for possible errors
if(counted_bars<0) {
Alert("NO Bars..");
return(-1);
}

//下面这句怎么写
if ((High[N2]-10<Low[N2]) ExtMapBuffer1[N1]=High[N1]+offset+0.0001;


//----
} // End of for loop
return(0);
}
//+------------------------------------------------------------------+

 
lshrs:

下面的源码是为了找出范围小于十点的十字星,有一句不知道怎么写,请帮我看看,谢谢

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 White
extern double factorWindow=0.03;
int limit;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
string PatternText[200000];
double windHeight,offset;
//+------------------------------------------------------------------+
//| CuStom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_ARROW,EMPTY, 1, Red);
SetIndexArrow(0,159);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_ARROW,EMPTY, 1, White);
SetIndexArrow(1,159);
SetIndexBuffer(1,ExtMapBuffer2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| CuStor indicator deinitialization function |
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//| CuStom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int N;
int N1;
int N2;
int N3;


windHeight = WindowPriceMax() - WindowPriceMin();
offset = windHeight*factorWindow;
int counted_bars=IndicatorCounted();
limit=Bars-counted_bars;
for(N = 1; N < limit; N++) {
// double maa=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,N);
N1 = N ;
N2 = N + 1;
N3 = N + 2;
//----
//---- check for possible errors
if(counted_bars<0) {
Alert("NO Bars..");
return(-1);
}

//下面这句怎么写
if ((High[N2]-10<Low[N2]) ExtMapBuffer1[N1]=High[N1]+offset+0.0001;


//----
} // End of for loop
return(0);
}
//+------------------------------------------------------------------+


我群文件(群号:309856361)里有搜集到一个形态识别的EA,包括十字星,可以去down下来看看