P:=20;{参数可以自己修改}AH:=REF(C,P)=HHV(C,2*P+1);BH:=FILTER(AH,P);CH:=BACKSET(BH,P+1);DH:=FILTER(CH,P);{高点}AL:=REF(C,P)=LLV(C,2*P+1);BL:=FILTER(AL,P);CL:=BACKSET(BL,P+1);DL:=FILTER(CL,P);{低点}基点:=IF(C>MA(C,20),BARSLAST(DL),BARSLAST(DH));{费波拉契(LEONARDO FIBONACCI)线}LE0:=BACKSET(ISLASTBAR,基点+1);FI0:=FILTER(LE0,基点);LE1:=BACKSET(ISLASTBAR,基点);FI1:=FILTER(LE1,基点);LE2:=BACKSET(ISLASTBAR,基点-1);FI2:=FILTER(LE2,基点);LE3:=BACKSET(ISLASTBAR,基点-2);FI3:=FILTER(LE3,基点);LE5:=BACKSET(ISLASTBAR,基点-4);FI5:=FILTER(LE5,基点);L