Sorry just read your post. Had such an afl completed just two days ago. The afl code for conventional (floor type) pivot/support/resistance points is as follows:
/*Pivot Points (floor type)*/
/*Graph section*/
pp=((H+L+C)/3);
r1=((2*pp)-L);
r2=(pp+(H-L));
r3=(H+(2*(pp-L)))...