VA:=(C-(H+L)/2)/(H-L)*V;
VV:=SUM(VA,21)/SUM(V,21);
VVMA8:=MA(VV,8);
VVMA18:=MA(VV,18);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
KK1:=crOSS(VVMA8,VVMA18) AND REF(MA(C,20),1)>REF(MA(C,20),2) AND DIF>=DEA AND DEA<0 AND CAPITAL<=200000000 AND C/REF(C,1)<1.096;
KK:KK1;