Stop Repeating Arrows

 

Hi

I have this indicator that I am building:

int start()

{

int limit;

int counted_bars=IndicatorCounted();

if(counted_bars<0) counted_bars=0;

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

for(int i = 0 ;i < limit ;i++)

{

arwUp = 0; arwDown = 0;

double MA_HIGH = iMA(Symbol(),0,20,0,MODE_WMA,PRICE_MEDIAN,i);

double MA_LOW = iMA(Symbol(),0,23,0,MODE_WMA,PRICE_MEDIAN,i);

if(Close > MA_HIGH && Open> MA_HIGH)

arwUp = iLow(NULL, 0, i+1);

if( Close < MA_LOW && Open< MA_LOW)

arwDown = iHigh(NULL, 0, i+1);

}

return(0);

}

The question is how do I stop the arrows from repeating on the next bar ?

Thanks

 

Anyone ?

Anyone have an idea ?

Reason: