LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
弱:=CROSS(85,RSI1)*30;
DRAWTEXT(CROSS(85,RSI1),20,'逃'),COLORCYAN;
STICKLINE(弱,0,20,3,0),COLORCYAN;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
强弱分界:(VARB< 20 AND VARC< 25 AND VARD> 50 AND AR<70)*30,COLORYELLOW;
BT1:=CROSS(RSI1,25);
DRAWTEXT(BT1,-80,'底'),COLOR0000FF;
STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;
资金进出趋势:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK2,COLORWHITE;
STICKLINE(强弱分界,0,-资金进出趋势,0.01,0),,COLOR0078FF;
散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
BT2:=CROSS(资金进出趋势,散户) AND 资金进出趋势<-10;
DRAWICON(CROSS(资金进出趋势,-10) OR CROSS(资金进出趋势,10),资金进出趋势,26);
DRAWICON(CROSS(-10,资金进出趋势),资金进出趋势,27);
DRAWICON(CROSS(资金进出趋势,散户) AND 资金进出趋势<-10,资金进出趋势,23);
BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);
STICKLINE(BT,0,50,4,1),COLOR0000FF;
DRAWTEXT(BT,50,'大底'),COLOR0000FF;
STICKLINE(BT2,0,20,3,0),COLORFF00FF;
DRAWTEXT(BT2,20,'博弈'),COLORFF00FF;