换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
操盘:=主力能量>=0 AND 主力能量>=REF(主力能量,1);
HJ_1:=C/REF(C,1)>=1.098;
HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2);
XG1:=FILTER(HJ_22,13);
FFD:=EMA((C-REF(C,1))/REF(C,3),10)*100;
KJHU:=EMA(EMA(EMA(EMA(FFD,2),2),2),3);
XG2:=KJHU>=REF(KJHU,1) AND FFD>2;
BJQD:=100*C/INDEXC;
B:=SUM(BJQD,500)/500;
XDQD1:=BJQD/B;
XDQD:=XDQD1/(SUM(XDQD1,60)/60)-0.4;
HJXX_3:=EMA(H,3)*1.03;
XG4:=CROSS(C,HJXX_3) AND (C/REF(C,1)-1)>0.04;
AKK1:=EMA(C,8);
AKK2:=EMA(AKK1,20);
AKK3:=CROSS(AKK1,AKK2);
AKK4:=AKK1<EMA(C,120);
VK1:=MA(C,5)=HHV(MA(C,5),20);
VK2:=MA(C,5)>MA(C,10);
VK3:=MA(V,5)>MA(V,40)*1.01;
VK4:=COUNT(C>REF(C,1),2)=2;
XG5:=(AKK3 AND AKK4) OR (VK1 AND VK2 AND VK3 AND VK4);
UB:=MA(C,20)+2*STD(C,20);
XG6:=CROSS(C,UB);
ASR:=(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;
RPY:=(C-LLV(C,240))/(HHV(C,240)-LLV(C,240))*100;
XG7:=RPY>99 AND ASR<30;
VARA1:=(V/C)/2;
VARA2:=SUM(IF(VARA1>100 AND C>REF(C,1),VARA1,0),0);
VARA3:=SUM(IF(VARA1>100 AND C<REF(C,1),VARA1,0),0);
VARA4:=SUM(IF(VARA1<100 AND C>REF(C,1),VARA1,0),0);
VARA5:=SUM(IF(VARA1<100 AND C<REF(C,1),VARA1,0),0);
VARA6:=VARA2+VARA3+VARA4+VARA5;
机买:=(VARA2/VARA6)*100;
机卖:=(VARA3/VARA6)*100;
主力差:=机买-机卖;
强度:=主力差-REF(主力差,1);
L2:=MA(AMOUNT/(100*V),13);
CYS13:=(C/L2-1)*100;
XG9:=CYS13>5;
XG:操盘 AND XG1 AND XG2 AND XG4 AND XG5 AND XG6 AND XG7 AND XG9;