K:SMA(RSV,P1,1),COLORRED,LINETHICK1;
D:SMA(K,P2,1),LINETHICK1;
J:3*K-2*D,COLORMAGENTA;
PARTLINE(K 80,K),colorgreen,LINETHICK3;
PARTLINE(K 20,K),COLORRED,LINETHICK3;
PARTLINE(d 80,d),COLORBLUE,LINETHICK3;
PARTLINE(d 20,d),COLORWHITE,LINETHICK3;
PARTLINE(J D,J),colorcyan;
PARTLINE(J 100,J),COLORYELLOW,LINETHICK3;
PARTLINE(J 0,J),COLORCYAN,LINETHICK3;
STICKLINE(cross(j,0),0,60,5,1);
抄底:REF(COUNT(k ref(k,1),5) =5,1) and COUNT(K 30,5) =2 AND COUNT(J 0,3) 0 AND CROSS(J,0);
STICKLINE(抄底,30,60,4,0),COLORMAGENTA;
交叉位:=((3*REF(D,1)-2*REF(K,1))*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9);
n1:=sysparam(3); n2:=sysparam(2); n3:=(n1-n2)+1; hh:=hhv(J,n3); ll:=llv(J,n3);
zhh:=hh[n1]; zll:=ll[n1];
DRAWTEXT(BARPOS=SYSPARAM(3)& C,zhh,'预测死叉价: '+NUMTOSTR(交叉位,2)),ALIGN2,SHIFT3,PXDN10,ColorFF8E00;
DRAWTEXT(BARPOS=SYSPARAM(3)& C,zll,'预测金叉价: '+NUMTOSTR(交叉位,2)),ALIGN2,SHIFT3,PXUP10,ColorFF8EFF;
BUY1:=CROSS(K,D) AND CROSS(J,D) AND D 30 AND D REF(D,1);
SEL1:=FILTER(REF(J,1) 75 AND J REF(J,1),3);
STICKLINE(BUY1,0,30,4,0),COLORRED;
STICKLINE(SEL1,100,80,5,0),COLORGREEN;
tj00:=BARSLAST(ref(cross(k,d) and ref(k,1) 35,1));
tj11:=c ref(c,tj00+1)*1.1 and ref(k,1) 60 and (tj00+1) 25 and (tj00+1) 5 and k ref(k,tj00+1) and cross(k,d);
STICKLINE(tj11,60,90,6,0),COLORWHITE;
高位:100,COLOR1ACD44;
低位:0,COLOR00E0FD;
大:80,COLORDDE4AB;
机会:15,COLOR3A5CE0;
VAR2b:=REF(LOW,1);
VAR3b:=SMA(ABS(LOW-VAR2b),3,1)/SMA(MAX(LOW-VAR2b,0),3,1)*100;
VAR4b:=EMA(IF(CLOSE*1.3,VAR3b*10,VAR3b/10),3);
VAR5b:=LLV(LOW,13);
VAR6b:=HHV(VAR4b,13);
VAR7b:=IF(MA(CLOSE,34),1,0);
VAR8b:=EMA(IF(LOW =VAR5b,(VAR4b+VAR6b*2)/2,0),3)/618*VAR7b;
VAR9b:=IF(VAR8b 100,100,VAR8b);
庄家吸筹:VAR9b,LINETHICK3,COLOR00ff00;
STICKLINE(庄家吸筹 REF(庄家吸筹,1),庄家吸筹,0,1,0),COLOR00ff00,stick;
{注意:如出现庄家吸筹后,不久就会拉升;}