Code to find double top or bottom on 5 minute Chart

Hi,

Can anyone suggest and give me a sample code to find the double top or bottom on 5 minute chart.

Buy when LTP> high (double top)

Looking for your help

You need to get this done using Amibroker.

AFL’s for Candle Pattern Breakouts are available free on the Internet.