三色量能指标公式源码

   MUME:=VOL;

    J11:MA(MUME,5)*0.01,NODRAW;

    J2:MA(MUME,5)*0.02,NODRAW;

    J3:MA(MUME,5)*0.03,NODRAW;

    J4:MA(MUME,5)*0.04,NODRAW;

    J5:MA(MUME,5)*0.05,NODRAW;

    J6:MA(MUME,5)*0.06,NODRAW;

    J7:MA(MUME,5)*0.07,NODRAW;

    VOLUME:VOL,VOLSTICK;

    MAVOL1:=MA(VOLUME,N1),COLORBLUE,LINETHICK2;

    V1:=MA(VOLUME,N1),COLORWHITE;

    V2:=MA(VOLUME,N2),COLORYELLOW;

    T1:={REF(C,2)<=REF(C,3)}{REF(L,2)<=REF(L,3)

    AND}REF(C,2)<=REF(O,2){AND

    {REF(V,2)<=LLV(V,5)}{ANDREF(C,2)<=LLV(C,5)};

    T2:=REF(C,1)>REF(C,2)ANDREF(C,1)>REF(O,1){AND

    REF(V,1)>REF(V,2)ANDREF(L,1)>REF(L,2)};

    T3:=C>REF(C,1)ANDO<CANDV>REF(V,1)AND(V>MA(V,5)OR

    V>MA(V,10)){ANDL>REF(L,1)};

    {预测量:IF(CURRBARSCOUNT=1AND

    PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,预测

    量,0,-1,-1),COLOR00C0C0;}

    实际成交:VOL,VOLSTICK;

    STICKLINE(T1ANDT2ANDT3,0,V,3,0),COLORFF00FF;

    MVL1:HHV(MAVOL1,J1),POINTDOT,COLORWHITE;

    MVL2:HHV(MAVOL1,J1)*0.5,COLORMAGENTA,LINETHICK2;

    MVL3:HHV(MAVOL1,J1)*0.25,COLORWHITE,LINETHICK2;

    MVL4:HHV(MAVOL1,J1)*0.125,COLORGREEN,LINETHICK2;

    MVL5:=CROSS(V1,MVL2);

    MAVOL2:MA(VOLUME,N2);

    AA:=MVL5;

    BB:=BARSLAST(AA=1);

    DD:=REF(C,BB);

    {DRAWICON(AA,MVL1*1.03,1);}

    MAVOL3:MA(VOLUME,N1),COLORBLUE,LINETHICK2;

image.png

   三色量能柱指标公式

N:=5;

CH:=DYNAINFO(5);

CL:=DYNAINFO(6);

CO:=REF(C,N);

QJJ:=V/((CH-CL)*2-ABS(C-CO));

HSL:=IF(C!=CO,QJJ*(C-CO),0)/100;

LNGJ:=DMA(HSL,0.5);

LLJX:=EMA(LNGJ,3);

B:0,POINTDOT,COLORWHITE;

B1:SUM(LLJX,1),COLORCYAN;

B2:SUM(LLJX,2),COLORCYAN;

B3:SUM(LLJX,3),COLORCYAN;

B4:SUM(LLJX,4),COLORCYAN;

B5:SUM(LLJX,5),COLORCYAN;

H_L:=HHV(B5,240)-LLV(B5,240);

BL:=B1*1;

TJ1:=ABS(B2-B1)<=BL AND ABS(B3-B1)<=BL AND ABS(B4-B1)<=BL;

TJ2:=ABS(B5-B1)<=BL ;

TJ4:=B1>1.05*REF(B1,1) AND B3>1.05*REF(B3,1) AND B5>1.05*REF(B5,1);

选股:=FILTER(TJ1 AND TJ2 AND TJ4,5) ;

DRAWICON(选股,0-H_L*0.2,1);

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。