散户线:(HHV(HIGH,12)-CLOSE)/(HHV(HIGH,12)-LLV(LOW,12))*100,Colorcc0033,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力线:EMA(j,6),colorff00ff,LINETHICK1;
PARTLINE(主力线,主力线>=REF(主力线,1),RGB(250,50,0),主力线<REF(主力线,1),RGB(0,250,250)),LINETHICK3;
辅助线1:=EMA(0.5*REF(主力线,1)+0.5*主力线,2),linethick1;
FILLRGN(主力线,辅助线1,主力线>辅助线1,RGB(350,0,0),主力线<辅助线1,colorccff00);
顶线:100,color00ff00,linethick1;
界:61.8,color00ff99,linethick3,POINTDOT;
警戒:80.9,color00ffff,linethick1;
底:19.1,colorffffff,linethick1;
FILLRGN(主力线,80,主力线>80,Color00ffff);
FILLRGN(主力线,20,主力线<20,Color00ff00);
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),主力线,"◆主力线"),COLOR000fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),散户线,"◆散户线"),COLOR00ff55;
SS:=CROSS(主力线,散户线) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ;
DRAWTEXT(CROSS(主力线,底) AND 主力线>底,底,"黄金坑"),COLOR000fff;
DRAWTEXT(CROSS(散户线,界) AND 散户线>界,界,"逃命"),COLOR00ff33;
DRAWTEXT(CROSS(界,散户线) AND 界>散户线,散户线,"跟进"),COLORff00ff;
DRAWTEXT(CROSS(主力线,警戒) AND 主力线>警戒,警戒,"拉升"),COLOR000fff;