M5:MA(C,5),COLORFFFFFF,LINETHICK1;
M10:MA(C,10),COLOR00FFFF,LINETHICK1;
M21:MA(C,21),COLORFF00FF,LINETHICK2;
M55:MA(C,55),COLOR00FF00,LINETHICK4;
VAR11:=1;
VAR22:=((((2*CLOSE)+HIGH)+LOW) / 4);
VAR44:=LLV(LOW,5);
VAR55:=HHV(HIGH,4);
XX:=COUNT(C REF(C,1),12)
YY:=DMA(CLOSE,VOL/SUM(VOL,5));
ZZ:=CLOSE/YY 0.92;
回头:=FILTER(XX AND ZZ AND CLOSE LOW,10);
HZ:=SUM(C O,BARSLAST(回头))=1 AND C
DRAWICON(HZ,L*0.97,7);{7号图是B};
NA:=40;{40日高点,可调整}
A1:=HHV(H,NA*2+1)=REF(H,NA);A2:=FILTER(A1,NA);A3:=BACKSET(A2,NA+1);
AH:=FILTER(A3,NA);
TAH:=BARSLAST(AH);
NB:=20;{20日高点,可调整}
B1:=HHV(H,NB*2+1)=REF(H,NB);B2:=FILTER(B1,NB);B3:=BACKSET(B2,NB+1);
BH:=FILTER(B3,NB);
TBH:=BARSLAST(BH);
QSX:DRAWLINE(AH AND CURRBARSCOUNT=CONST(TAH)+1,H,BH AND H REF(H,TAH),H,1),COLOR9999FF;
DRAWICON(CROSS(C,QSX),H*1.05,26);