通达信量能的结合副图指标公式源码

以下是通达信量能的结合副图指标公式源码:

VOLUME:VOL,VOLSTICK;

MAVOL1:=MA(VOLUME,8);

MAVOL2:=MA(VOLUME,135);

TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));

MTIME:=MOD(FROMOPEN,TOTAL);

CTIME:=IF(MTIME<0.5,TOTAL,MTIME);

VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;

STICKLINE(CURRBARSCOUNT=1 AND (SETCODE=0 || SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;

B:IF(C>O,VOL,0)LINETHICK2,COLOR00FF00;

V1:MA(VOL,5)LINETHICK2,COLORYELLOW;

A:=C<EMA(C,14) AND REF(C<O,1) AND C>O AND REF(C<O,2);

STICKLINE(B>REF(B,1)  AND A AND ((CROSS(B,V1),REF(H,BARSLAST(C)-2))),0,B,2,0),COLORYELLOW;

T1:=REF(VOL,1)=LLV(V,100);

T2:=V/T1>1.95;

T3:=C>O AND C>REF(C,1);

T4:=T1 AND T2 AND T3;

STICKLINE(T4,0,B,2,0),COLORRED;

倍数:=1.9;

倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);

价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);

连阳:= COUNT(C>=O,4)=4;

TTT:=倍量1 AND 价升量缩 AND 连阳;

STICKLINE(TTT,0,B,2,0),COLORBLUE;

以下是选股公式源码:

AA:=(3*C+H+L+O)/6;
AA1:=(8*AA+7*REF(AA,1)+6*REF(AA,2)+5*REF(AA,3)+4*REF(AA,4)+3*REF(AA,5)+2*REF(AA,6)+REF(AA,8))/36;
AA2:=VOL=HHV(VOL,20) AND VOL>2*REF(VOL,1) AND CLOSE>AA1 AND C>REF(C,1);
AA3:=REF(C>O,1) AND REF(C<O,2) AND REF(C<O,3) AND C>O AND REF(C/REF(C,1)<1.03,1);
AA4:=(H-C)/C*100<1;
XG:FILTER(AA2 AND AA3 AND AA4,5);

选股公式源码二:

AA:=(3*C+H+L+O)/6;
AA1:=(8*AA+7*REF(AA,1)+6*REF(AA,2)+5*REF(AA,3)+4*REF(AA,4)+3*REF(AA,5)+2*REF(AA,6)+REF(AA,8))/36;
AA2:=VOL=HHV(VOL,20) AND VOL>2*REF(VOL,1) AND CLOSE>AA1 AND C>REF(C,1) AND MA(C,5)>REF(MA(C,5),1);
AA3:=REF(C>O,1) AND REF(C<O,2) AND REF(C<O,3) AND C>O AND REF(C/REF(C,1)<1.03,1) AND (H-C)/C*100<0.5;
XG:FILTER(AA2 AND AA3,5);

AA:=(3*C+H+L+O)/6;
AA1:=(8*AA+7*REF(AA,1)+6*REF(AA,2)+5*REF(AA,3)+4*REF(AA,4)+3*REF(AA,5)+2*REF(AA,6)+REF(AA,8))/36;
AA2:=VOL=HHV(VOL,20) AND VOL>2*REF(VOL,1) AND CLOSE>AA1 AND C>REF(C,1);
AA3:=REF(C>O,1) AND REF(C<O,2) AND REF(C<O,3) AND C>O AND REF(C/REF(C,1)<1.03,1);
AA4:=(H-C)/C*100<1;
XG:FILTER(AA2 AND AA3 AND AA4,5);