VAR1:=CLOSE>REF(CLOSE,1)*1.099;
小阴小阳:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,BARSLAST(VAR1))< 9;
时间:=COUNT(VAR1,30)=1 AND BARSLAST(VAR1)>5;
买入:IF(REF(小阴小阳 AND 时间,1) AND VAR1,130,100),COLORRED,LINETHICK1;
DRAWTEXT(REF(小阴小阳 AND 时间,1) AND VAR1,买入*0.92,'买入'),COLORRED;
涨幅:=(C-REF(C,1))/REF(C,1)>0.055;
均线条件:=MA(C,10)>MA(C,20);
非科创板:=NOT(CODELIKE('688'));
中小盘股:=FINANCE(40)< 23520000000;
均5:=MA(C,5);
均10:=MA(C,10);
均20:=MA(C,20);
均30:=MA(C,30);
最大值:=MAX(MAX(均5,均10),MAX(均20,均30));
最小值:=MIN(MIN(均5,均10),MIN(均20,均30));
一阳四线:=O<=最小值 AND C>=最大值;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJ条件:=CROSS(J,K) AND J< 90;
打板:IF(涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1 AND 非科创板=1 AND C< 50,100,80),COLORRED,LINETHICK1;
DRAWTEXT((涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1 AND 非科创板=1 AND C< 50),打板*0.9,'打板买'),COLORRED;
GUA1:=C/O>1.08,COLORRED;
主升浪:IF(GUA1,80,50),COLORYELLOW;
DRAWTEXT(GUA1=1 ,GUA1*70,'主升浪'),COLORMAGENTA;
GUB1:=REF(CLOSE,1);
GUB2:=SMA(MAX(CLOSE-GUB1,0),3,1)/SMA(ABS(CLOSE-GUB1),3,1)*100;
止跌:IF(CROSS(GUB2,7),20,0),COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(GUB2,7),止跌*0.5,'止跌'),COLORGREEN;