D3×3:MA(C,3),shift3,COLORC08000,LINETHICK1; D25×5:MA(C,25),shift5,colorred;
A1:=IF (HIGH>PEAK(1,3,1),HHV(HIGH,21),PEAK(1,3,1));
A2:=IF (LOW<TROUGH(2,3,1),LLV(LOW,21),TROUGH(2,34,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,F3,F3,2),COLOR808080,ALIGN1;
DRAWNUMBER(PD,F4,F4,2),COLOR808080,ALIGN1;
DRAWNUMBER(PD,F5,F5,2),COLOR808080,ALIGN1;
|
