DIF:=EMA(CLOSE,12)-EMA(CLOSE,29);
DEA:=EMA(DIF,9);
MD:=(DIF-DEA)*2;
A:=if(MD>REF(MD,1) AND MD<0,8,0);
短买:if(A AND REF("kdj.J",1)<0 AND "kdJ.J">0,50,0),Color00FFFF;
var1:4*SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1),3.2,1),ColorFF8000,linethick1;
进:IF(crOSS(var1,8),40,0),Color00FF00,stick,linethick3;