HH-LL code for Amibroker:
//SUPPORT & RESISTANCE LEVELS
//Graham Kavanagh 9 Oct 2003 #49421
//Find turning points
top = H==HHV(H,3) AND H>=Ref(H,1) AND H>=Ref(H,2);
bot = L==LLV(L,3) AND L<=Ref(L,1) AND L<=Ref(L,2);
topH = ValueWhen(top,H);
botL = ValueWhen(bot,L)...