GX:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,20),MA(CLOSE,10)));
DX:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,20),MA(CLOSE,10)));
粘合:=ABS(GX/DX-1)*100
MACD:=2*(DIF-DEA);
庄股:=COUNT(MACD 0,10)=10;
目标:=IF(多头 AND 粘合 AND 庄股,5,0);
STICKLINE(CROSS(0.1,目标) AND CROSS(MACD,0),10,40,3,0),COLORWHITE;
STICKLINE(C 0,40,60,4,0),COLOR808080;
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSV,3,1);
短D:=SMA(短K,3,1);
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
中K:=SMA(RSV1,5,1);
中D:=SMA(中K,10,1);
DRAWBAND(中D,RGB(0,104,154),中K,RGB(255,0,0));
STICKLINE(短K 短D,短K,短D,1,1),COLORYELLOW;
STICKLINE(短K =短D,短K,短D,1,1),COLORCCDD33;