NOTEXT1:=HHV(EMA(C,17),2);
NOTEXT2:=EMA(C,17),LINETHICK1,COLORRED;
NOTEXT3:=IF(((NOTEXT1 = NOTEXT2) AND UPNDAY(NOTEXT1,3)),NOTEXT1,DRAWNULL),LINETHICK1,COLORFF00FF;
NOTEXT4:=IF((REF(NOTEXT1,2) > NOTEXT2),NOTEXT2,DRAWNULL),LINETHICK1,COLORGREEN;
LC:=REF(CLOSE,1);
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));
rsi:=((SMA(MAX((CLOSE - LC),0),9,1) / SMA(Abs((CLOSE - LC)),9,1)) * 100);
DBTJ1:=(RSI >= 75);
DBTJ2:=(J >= 95);
B1:=(EMA(CLOSE,12) - EMA(CLOSE,26));
B2:=EMA(B1,3);
ZF:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
RSI1:=((SMA(MAX((CLOSE - LC),0),9,1) / SMA(ABS((CLOSE - LC)),9,1)) * 100);
TDSZ:=(((((((B1 > B2) OR (B1 = B2)) AND (ZF > 9)) AND (ZF < 11)) AND (40 < RSI1)) AND (RSI1 < 60)) AND (C = H));
RSV13:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
B11:=SMA(RSV13,4,1);
B22:=SMA(B11,3,1);
CDTJ:=(((C >= O) AND crOSS(B11,B22)) AND (B22 <= 50));
topB:=IF(((DBTJ1 OR DBTJ2) AND (((C + NOTEXT2) / 2) < NOTEXT2)),(((3 * NOTEXT2) - C) / 2),((C + NOTEXT2) / 2));
BOTB:=IF(((CDTJ OR TDSZ) AND (((C + NOTEXT2) / 2) > NOTEXT2)),(((3 * NOTEXT2) - C) / 2),((C + NOTEXT2) / 2));
涨幅:=((C-REF(C,1))/REF(C,1)*100);
HSL:=IF((SETCODE==0||SETCODE==1),100*vol,VOL)/(FINANCE(7)/100);
排除ST:=IF((NAMELIKE('S')),0,1) OR IF((NAMELIKE('*S')),0,1);
排除科创:=IF(CODELIKE('8') OR CODELIKE('688') OR CODELIKE('4') OR CODELIKE('68'),0,1);
排除停牌:=(DYNAINFO(4)=0);
排除:=排除ST AND 排除科创 AND NOT(排除停牌);
选股:NOTEXT2>REF(NOTEXT2,1) AND J>=95 AND 涨幅>5 AND HSL>5 AND 排除>0 AND FINANCE(40)/120000000<100 AND FINANCE(7)<2000000000 AND FINANCE(42)>30;