N:=9;M1:=3;M2:=3;
VarA:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(VarA,M1,1);
VarB:=SMA(K,M2,1);
J: 3*K-2*VarB,coloryellow;
DRAWICON(J>REF(J,1) AND REF(J,1)<REF(J,2) AND J>0 AND J<20,0,7),ALIGN1;
{趋势:100*(C-LLV(L,7))/(HHV(C,21)-LLV(L,7)),COLOR4080FF,LINETHICK1;}
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9>100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
机构持仓:=EMA(B1,5);
STICKLINE(B1-机构持仓>0 AND (B1-机构持仓)>REF(B1-机构持仓,1),B1,机构持仓,5,0),colorred;
STICKLINE(B1-机构持仓>0 AND (B1-机构持仓)<=REF(B1-机构持仓,1),B1,机构持仓,5,0),COLORDDDDDD;
STICKLINE(B1-机构持仓<0 AND (B1-机构持仓)<=REF(B1-机构持仓,1),B1,机构持仓,5,0),colorgreen;
STICKLINE(B1-机构持仓<0 AND (B1-机构持仓)>REF(B1-机构持仓,1),B1,机构持仓,5,0),COLORDDDDDD;
100,DOTLINE,linethick1,colorgreen;
{80,DOTLINE,colorred;}
50,DOTLINE,colorgray;
{20,DOTLINE,colorblue;}
0,DOTLINE,linethick1,coloryellow;