Here is the Metastock formula for breakout detection

**Consolidation Breakout Upside**

If(Ref(Fml("Congestion Index"),-5),<,10,

{and} If(Fml("Congestion Index"),>=,10,

{and} If(CLOSE,>,Ref(HHV(C,80),-5),

{and} If(Mov(V,5,S),>=,1.5*(Ref(Mov(V,60,S),-5)),+1,0),0),0),0)

**Consolidation Breakout Downside **

If(Ref(Fml("Congestion Index"),-5),<,10{%},

{and} If(Fml("Congestion Index"),>=,10{%},

{and} If(CLOSE,<,Ref(LLV(C,80),-5),

{and} If(Mov(V,5,S),>=,1.5*(Ref(Mov(V,60,S),-5)),+1,0),0),0),0)

**Congestion Index**

((HHV(C,80)-LLV(C,80))/LLV(C,80))*100

You can use these formulas in the explorers to screen the stocks

hope this helps

Karthik