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