VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
买:=MA(CLOSE,1);
卖:=(LOW+HIGH+CLOSE)/3;
老板:= MA(卖,5);
买卖:=LLV(老板,10);
急买:IF(LLV((买<买卖),5),50,0),LINETHICK2,COLORRED;
短买:IF(LLV((买<买卖),10),50,0),COLORWHITE;
K:=SMA(VAR3/2,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
最佳买入时机: IF(crOSS(J,3),30,0),LINETHICK2,COLORYELLOW;
bias1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MM1:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;
MN:=MA(MM1,3);
VAR24:=LLV(LOW,36);
VAR25:=HHV(HIGH,30);
VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;
底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;
DRAWTEXT(底背离,6,'底背离'),COLORRED;