How Do Add Alert in Code

 
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;
Alert("SELL");
}
if (i==llb)

{b2[i]=Low[llb]-SignalGap*Point;

Alert("Buy");

}

}

return(0);


i want to one alert. But this code is very alert.

 
Mehmet:
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;
Alert("SELL");
}
if (i==llb)

{b2[i]=Low[llb]-SignalGap*Point;

Alert("Buy");

}

}

return(0);


i want to one alert. But this code is very alert.


 
Mehmet:


 
Mehmet:


Merhaba Mehmet turksun anladigim kadariyla oylemi?

 
evet