Printing Arrows after crossover and text

 

Hi, I am trying to print Buy and Sell arrow depending on the nature of crossover but this code is printing both the arrows on chart after crossover while depending on the condition it should print one of them.


if(shift==true)
      {
       if( OPEN  > CLOSE )
        { 
         BufferBuy[pos] = FextMapBuffer1[pos];
         return(0);
        }
       else 
         {
         BufferSell[pos] = FextMapBuffer2[pos];
         return(0); 
         }

Regards.

Files:
pic.jpg  194 kb