N:=27;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,6,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,4,1),3.2,1),COLORYELLOW,LINETHICK1;
增强体力: IF(crOSS(VAR1,8),2,0),STICK,LINETHICK2;
RSV:=(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
kdj:=((3*K)-(2*D));
LC:=REF(C,1);
rsi:=((SMA(MAX((C-LC),0),6,1)/SMA(Abs((C-LC)),6,1))*100);
{ _通达信股票指标公式}
W:=((100*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14)));
M1:=((HHV(H,50)/LLV(L,100))>1.5);
M2:=((HHV(H,50)-L)/(HHV(H,50)-LLV(L,100)));
M3:=((L-LLV(L,100))/(HHV(H,50)-LLV(L,100)));
M4:=(HHVBARS(H,50)<LLVBARS(L,100));
M5:=(((M1&&(M2>0.5))&&(M3>0.3))&&M4);
M6:=(COUNT(M5,10)=1);
买入:IF(((kdJ<0)&&(RSI<20)),3,0),COLORMAGENTA;