源码
{抄底逃顶好}
N:=27;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
KK:=SMA(RSV,3,1);
K:=SMA(KK,3,1);
D:=SMA(K,3,1);
波: K,linethick1,COLORRED;
段: D,linethick1,COLORYELLOW;
Var5:=CROSS(KK,K) AND K<25;
STICKLINE(Var5,0,K+5,1,1), linethick1,COLORRED;
Var6:=CROSS(K,D) AND K<25;
Var7:=Var6 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;
STICKLINE(Var6,0,K+5,1,1), linethick1,COLORWHITE;
DRAWTEXT(Var6 AND COUNT(Var6,10)=1,K+15,'抄底'), linethick1,COLORWHITE;
STICKLINE(Var7,0,K+5,1,1), linethick1,COLORRED;
DRAWTEXT(Var7 AND COUNT(Var7,10)=1,K+5,'放量'), linethick1,COLORRED;
Var8:=CROSS(KK,K) AND K>80 AND K>D;
STICKLINE(Var8 AND COUNT(Var8,5)=1,K-5,100,1,1), linethick1,COLORGREEN;
Var9:=CROSS(D,K) AND K>80;
STICKLINE(Var9,K-5,100,1,1), linethick1,COLORYELLOW;
DRAWTEXT(Var9 AND COUNT(Var9,10)=1,K-15,'逃顶'), linethick1,COLORYELLOW;
VAR3m:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4m:=SMA(VAR3m,3,1);
VAR1M:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2M:=SMA(VAR1M,9,1)+100;
VAR5m:=SMA(VAR4m,3,1)+100;
VAR6m:=VAR5m-VAR2m;
趋势: IF(VAR6m>45,VAR6m-45,0);
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),5,0),colorff00ff;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),5,0),color00ff00;
0,COLORFFA2AF,LINETHICK2;
20,COLORFFA2AF,POINTDOT;
50,COLORFFA2AF;
80,COLORFFA2AF,POINTDOT;
100,COLORFFA2AF;