VAR1:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,13)-LLV(LOW,13))*100;
做多资金:=SMA(VAR2,8,1)-2,LINETHICK2, COLORRED;
做空资金:=SMA(VAR1,6,1)-7;
周D:="kdj.D"(27,3,3);
角度:=ATAN((MA(周D,10)/REF(MA(周D,10),1)-1)*100)*180/3.1416;
LL:=crOSS(角度,做空资金);
拐点:LL;