通达信VOLXGQ源码
ZFA:=(CLOSE/REF(CLOSE,1)-1)*100;
ZFB:=(CLOSE/OPEN-1)*100;
ZF:MAX(ZFA,ZFB),NODRAW;
VM5:=MA(VOL,5);
VM8:=MA(VOL,8);
VM10:=MA(VOL,10);
KK:=(VM5-VM10)*100/VM10;
HSX:=VOL*100/CAPITAL;
VAR1:=COUNT(KK 50 AND COUNT(HSX =8,6) =1,80)
VAR2:=IF(BARSLAST(CROSS(VM5,VM8)) =6 AND (VM5 VM8 OR VM5 VM10),BARSLAST(CROSS(VM5,VM8)),IF(VM5 VM8 OR VM5 VM10,BARSLAST(BARSLASTCOUNT(VM5 VM10)=1),10));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
DIFA:=DIF*0.93;
VBG2:=CROSS(DIF,DEA) AND DIF
VAA1:=BARSLAST(VBG2);
VAA2:=BARSLAST(CROSS(DIF,0));
VAR3:=IF(VAA1 =0,VAA1,VAA2);
VAR4:=IF(CROSS(DIF,DEA),COUNT(ZF =6,6),0);
VAR5:=DYNAINFO(4)
K6:=(HHV(CLOSE,6)-LLV(CLOSE,6))*100/LLV(CLOSE,6);
SS:=SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3,1);
MA17:=MA(CLOSE,17);
MA21:=MA(CLOSE,21);
VAR6:=COUNT(LOW MA17,10)
XG:IF(ZF =9 AND VAR5 AND FILTER(VAR1 AND (VAR2 =3 AND VAR3 =5 OR (VAR2 =5 AND VAR3 =3)) AND COUNT(ZF =8,3) =1 AND K6 25 AND VOL REF(HHV(VOL,BARSLAST(KK 50)),3) AND KK 40 AND VAR6,6),HHV(ZF,2),0);
XG2:=IF(VAR5 AND VAR1 AND VAR2 =4 AND (VAR3 =4 AND ZF =9.5 OR VAR4 =2),HHV(KK,80),0);
XG3:=IF(VAR5 AND FILTER(VAR1 AND VAR2 =5 AND VAR3 =5 AND ZF =8 AND K6 25,6),HHV(KK,80),0);
NN:=IF(BARSLAST(XG 1) 30,BARSLAST(XG 1),0);