LC:=REF(CLOSE,1);
rsi1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100,LINETHICK1,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,LINETHICK1,COLORYELLOW;
RSI3:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,LINETHICK1,COLORMAGENTA;
wr:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:(0-WR)-100,COLORRED;
A2:-3,COLOR0099FF,DOTLINE;
A3:20,COLOR0099FF,DOTLINE;
A4:80,COLORGRAY;
A5:-95,COLORGRAY;
TJ:= crOSS(RSI1,20);
DRAWICON(TJ,RSI1,1);
TJX:=CROSS(RSI1,80);
DRAWICON(TJX,RSI1,2);
RSI买入:STICKLINE(CROSS(RSI1,8),0,50,0,1),COLORMAGENTA;
TJ2:=WR反向<A2 AND REF(WR反向,1)>A2;
DRAWICON(TJ2,WR反向,1);
TJ2X:=WR反向<A5 AND REF(WR反向,1)>A5;
DRAWICON(TJ2X,A5,2);
TJ3:=TJ AND TJ2;
RW买入:STICKLINE(TJ3,0,40,0,1),COLORYELLOW;
DRAWICON(RW买入,50,41);
{
选股公式:
去停牌:=DYNAINFO(8)>0;
去ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S'));
XX:=去停牌 AND 去ST ;
LTP:=FINANCE(7)<1500000000;
YZB:=NOT(C/REF(C,1)>1.0975 AND H=O)AND BARSCOUNT(C)>30;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK1,COLORFFFFFF;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,LINETHICK1,COLORYELLOW;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,LINETHICK1,COLORMAGENTA;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:=(0-WR)-100,COLORRED;
A2:=-5,COLOR0099FF;
A3:=20,COLOR0099FF;
A4:=80,COLORLIGREEN;
TJ:= CROSS(RSI1,20);
RSI买入:=STICKLINE(CROSS(RSI1,8),-20,50,0,1),COLORMAGENTA;
TJ2:=WR反向<A2 AND REF(WR反向,1)>A2;
TJ3:=TJ AND TJ2;
RW买入:=STICKLINE(TJ3,-20,50,0,1),COLORYELLOW;
MR:=RW买入 OR RSI买入;
MD:=macd.MacD>REF(MACD.MACD,1);
MR AND XX AND YZB;
}