To find the latest/previous highest bar

[Deleted]  
I wanted a code to find the previous/nearest highest price bar such that the high price of the next bar and the high price of the previous bar is less than this bar. Any ideas????
 
Look at the fractal indicator
[Deleted]  
Oh so thts fractals, thanks for the info..
[Deleted]  

btw, I always get 0 when I try the example code in the mql guide, wht could be the code to get the previous high or low?

Thanks,