Help: AFL code to plot last three High and low

Hi,

I want to code /plot horizontal line which can help to plot last 3 High and Low. if Market is at all time high then accordingly one or two horizontal line.

Regards
Amit