N:=5;D3×3:MA(C,3),shift3,COLORC08000,LINETHICK1;D25×5:MA(C,25),shift5,COLORRED;A1:=if (high>PEAK(1,n,1),HHV(HIGH,21),PEAK(1,n,1));A2:=if (low<TROUGH(2,n,1),llV(low,21),TROUGH(2,n,1));A3:=(A1-A2)*0.618+A2;A4:=(A1-A2)*0.5+A2;A5:=(A1-A2)*0.382+A2;PD:=ISLASTBAR;最高:A1,COLORFF8080,LINETHICK1;最低:A2,COLORFF8080,LINETHICK1;F3:A5,COLOR808080,LINETHICK1;F4:A4,COLOR808080,LINEDOT;F5:A3,COLOR808080,LINETHICK1;DRAWNUMBER(PD,最高,最高,2),COLORFF8080,ALIGN1;DRAWNUMBER(PD,最低,最低,2),COLORFF8080,ALIGN1;DRAWNUMBER(PD