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
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,F3,F3,2),COLOR808080,ALIGN1;
DRAWNUMBER(PD,F4,F4,2),COLOR808080,ALIGN1;
DRAWNUMBER(PD,F5,F5,2),COLOR808080,ALIGN1;