源码
DRAWGBK(V>1,STRIP(RGB(60,100,255),RGB(180,180,255),1));
n:=9;m:=18;
RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(REF(J,7)<0 AND J>1,10,0,3,0),COLOR00FF00;
VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VAR5:=CROSS(VAR4,4) AND VAR3<N;
抄底:IF(VAR5,90,1),colorred,LINETHICK2;
DRAWTEXT(VAR5,30,'抄底'),coloryellow;
高位: 80,ColorFF4D4D,POINTDOT,LINETHICK2;
强弱: 50,COLORFFCCCC,POINTDOT,LINETHICK2;
低位: 10,ColorC4C400,POINTDOT,LINETHICK2;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=LLV(LOW,M);
VAR8:=HHV(HIGH,M);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,6);
VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);
走势: VAR9,coloryellow;
STICKLINE(走势>走势 OR 走势>REF(走势,1),100,0,10,0),ColorFF4AA5;
STICKLINE(走势<走势 OR 走势<REF(走势,1),50,0,10),Color418060;
FILLRGN(走势,REF(走势,1),走势>REF(走势,1),RGB(255,255,0),走势<REF(走势,1),RGB(65,0,130));
VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<REF(CLOSE,7),0-VOL,0)),0);
VARC:=SUMBARS(VOL,CAPITAL);
VARD:=IF(CLOSE>LLV(CLOSE,VARC),1,-1);
VARE:=IF(VARB>LLV(VARB,VARC),1,-1);
VARF:=VARD*VARE;
VAR10:=IF(VARF=-1,1,0);
关注:IF(VAR10 AND CLOSE=LLV(CLOSE,14) AND VAR3<N,70,1),Color00CCCC,LINETHICK2;
I:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3);
R:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4);
短线顶:=IF(I,0,1),colorgreen;
DRAWICON(短线顶,90,2);