If you have TIB, set this up in 2 Indicator blocks within one moi. Import your cycle indi same as in SB. In one block, set Advanced Formula = High and Advanced Period to your desired number(n) of lookback bars. Then do Advanced Formula = High in the second block (same period). This will build a new indi that has Mode 0 = cycle High for n periods, and Mode 1 = cycle Low for n periods.
If you want to look for a spike at twice the level of the last one, you will have to code either in an MQL block or in MetaEditor (SB Pro). In mql4 code, I would use OrderSelect to select the last order and then compare the price of that order to the current value (price level) of your newly created indi (above). You can research mql commands like OrderSelect at mql4.com and probably find example code to copy too.