量能饱和-精品通达信指标公式源码分享

通达信免费指标 05-17 阅读:151 评论:0

image.png

M1:=5;

M2:=10;

M3:=20;

虚拟VOL:=IF(CURRBARSCOUNT=1 AND PERIOD=2,VOL*240/FROMOPEN,DRAWNULL),NODRAW;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=2,虚拟VOL,0,-1,-1),NODRAW;

成交量:VOL,VOLSTICK,COLORCYAN;

换手率:VOL/CAPITAL*100,,NODRAW;

十日换手:SUM(V/CAPITAL*100,10),COLORLICYAN,NODRAW;

量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORLIMAGENTA,NODRAW;

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));

买卖盘比:-(主动买盘/主动卖盘),NODRAW,COLORYELLOW;

STICKLINE(主动买盘>0,0,主动买盘,2.2,0),COLORLICYAN;

STICKLINE(主动卖盘<0,VOL,主动买盘,2.2,0),COLOR007900;

换手:=VOL/CAPITAL*100,NODRAW;

STICKLINE(换手>0,0,主动买盘,0,0),COLORYELLOW;

STICKLINE(换手>0,VOL,主动买盘,0,0),COLORRED;

MA5:MA(VOL,M1),COLORWHITE;

MA10:MA(VOL,M2),COLORYELLOW;

MA20:MA(VOL,M3),COLORMAGENTA;

AHC2:=(HIGH-LOW);

AHC3:=ABS((OPEN-CLOSE));

AHC4:=(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN));

AHC5:=(IF((CLOSE>OPEN),OPEN,CLOSE)-LOW);

AHC6:=((AHC3/AHC2)*VOL);

AHC7:=((AHC4/AHC2)*VOL);

AHC8:=((AHC5/AHC2)*VOL);

AHCA:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);

AHCB:=(((MA(CLOSE,5)>MA(CLOSE,10))&&(MA(CLOSE,10)>MA(CLOSE,30)))&&(MA(CLOSE,30)>MA(CLOSE,60)));

AHCC:=((MA(CLOSE,5)<MA(CLOSE,10))&&(MA(CLOSE,10)<MA(CLOSE,30)));


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服