底部三角形:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
突破选股:EMA(底部三角形,9);
MACD:(底部三角形-突破选股)*2,COLORSTICK;
DRAWICON(CROSS(底部三角形,突破选股),突破选股,25);
DRAWICON(CROSS(突破选股,底部三角形),突破选股,21);
IF(底部三角形<突破选股,底部三角形,DRAWNULL),COLORGREEN;
DD:=C=HHV(C,180);
EE:=突破选股< REF(突破选股,1) AND REF(突破选股< REF(突破选股,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
指标公式:=(DD AND EE AND 突破选股< HHV(突破选股,180))*突破选股;
A2:=BARSLAST(REF(CROSS(突破选股,底部三角形),1));
{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(底部三角形,A2+1)>底部三角形 AND CROSS(突破选股,底部三角形);}
DRAWLINE(A2=0,突破选股,指标公式,突破选股,0),COLORGREEN,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,9,3),COLORYELLOW;
D:SMA(K,9,3),COLORWHITE;
J:3*K-2*D,COLORMAGENTA;
IF(J<D,J,DRAWNULL),COLORGREEN;
0,COLORWHITE,LINETHICK2;
20,COLORRED;
{50,COLORWHITE;}
80,COLORYELLOW;
100,COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR,0,'0'),COLORWHITE;
DRAWTEXT(ISLASTBAR,20,'20'),COLORRED;
DRAWTEXT(ISLASTBAR,80,'80'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,100,'100'),COLORGREEN;
A1:=BARSLAST(REF(CROSS(底部三角形,突破选股),1));
B1:=REF(C,A1+1)>C AND REF(底部三角形,A1+1)<底部三角形 AND CROSS(底部三角形,突破选股);
A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
{DRAWTEXT(B1,突破选股-0.20,''),COLORWHITE;
DRAWTEXT(B2,D-0.20,''),COLORWHITE;}
DJ:=CROSS(J,D) AND D<20;
DRAWTEXT(DJ,J-0.3,''),COLORCYAN;
MDJ:=CROSS(底部三角形,突破选股) AND 突破选股<0;
DRAWTEXT(MDJ,突破选股-0.3,''),COLORCYAN;
{DRAWTEXT(CROSS(突破选股,底部三角形),底部三角形+0.3,''),COLORGREEN;
DRAWTEXT(CROSS(D,J),J+0.3,''),COLORGREEN; }
A:=CROSS(底部三角形,突破选股) AND CROSS(K,D) AND CROSS(J,D);
DRAWICON(A,-25,7);
B4:CROSS(底部三角形,突破选股) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
DRAWTEXT(B4,-30,''),COLORYELLOW;
DRAWICON(CROSS(K,D),D,30);
DRAWICON(CROSS(D,K),D,28);
BA:=突破选股>REF(突破选股,1);
BB:=SUM(BA,5)>=4;
BC:=C<O;
BD:=SUM(BC,5)>=2;
BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3);
STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;
SS:=EMA(C,11);
LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;
AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));
(CROSS(AA,0.05)-1);