VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34)); DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.990),'B '),COLOR4440FF,LINETHICK2;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.025),'S '),COLORFFFF34,LINETHICK2;
A1:=MA(C,5)<MA(C,10) AND CROSS(C,MA(C,10)) AND V>MA(V,10) AND MA(C,5)>REF(MA(C,5),1);
A2:=MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND V>MA(V,5) AND CROSS(C,MA(C,5));
STICKLINE((A1>0 OR A2>0),OPEN,CLOSE,3,0),COLORFF66FF;
STICKLINE((A1>0 OR A2>0),LOW,HIGH,3 ,0 ),COLORFF66FF;
LC:=REF(CLOSE,1); {分析家}
JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
N1:=5;N2:=10;N3:=18;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
ZX:=100*EMA(EMA(MTM,N2),N2)/EMA(EMA(ABS(MTM),N2),N2);
短买:=ZX<-40 AND CROSS(DX,ZX);
DRAWTEXT(短买,(LOW* 0.98),'短买'),COLORFF8080;
N:=8;{分析家}
VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
抄底:=IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0);
DRAWTEXT(抄底,(LOW* 0.96),'抄底'),COLOR9DFFFF;
STICKLINE(短买,CLOSE,OPEN,3,0),COLORFF8080;
STICKLINE(抄底,CLOSE,OPEN,3,0),COLORRED;