How to know the protrusion of a candle

 

How can we know the protrusion of a Candle from the others , can we use a moving average to do this ?
For example with SMA applied to the high prices  
Like this :  

if (High[1]>iMa(Symbol(),0,5,0,0,2,1)) Alert("This bar is protruded");  
If there is another method Tell it To us 
Thanks.