HPG1:=C-REF(C,1);
空头:EMA(EMA(HPG1,6),6)/EMA(EMA(ABS(HPG1),6),6)*20,COLOR00FF00;
多头:(空头*2-FORCAST(空头,9)),LINETHICK,COLORFF59FF;
RSV:=(C-LLV(L,3))/(HHV(H,3)-LLV(L,3))*100;
K:=SMA(RSV,2,1); D:=SMA(K,2,1);
J:=3*K-2*D;
TT:SMA(J,2,1)-SMA(J,3,1),LINETHICK,COLORGRAY;
TT,COLORSTICK,COLORBLACK;
JJ1:=IF(多头<=空头,多头,空头);
JJ2:=IF(多头>空头,空头,多头);
K1:=IF(多头>空头,1,IF(多头<空头,-1,0));
K2:=IF(K1>0,K1,多头),LINETHICK1,COLORWHITE;
QSX:IF(K2>0,JJ1,JJ2),LINETHICK1,COLOR00B4FF;
VAR1:=HHV(K2,16);
VAR2:=LLV(K2,19);
VAR3:=K2-(RSV-K2);
VAR4:=K2-(RSV-K2);
UP:IF(RSV>VAR1 AND K2=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),COLORBB9A00,LINETHICK2;
DN:IF(RSV>VAR2 AND K2=VAR2,MIN(HHV(VAR2,10),VAR4),VAR2),COLORAA00CC,LINETHICK2;
DRAWTEXT_FIX(1,0.3,0,0,'空头(绿色)与QSX(黄色)合并'),COLORYELLOW;
DRAWTEXT_FIX(1,0.6,0,0,'QSX(黄色)与DN(紫色)粘合并且TT上涨'),COLORYELLOW;