以下是通达信短线红柱量指标和谐完全加密!

{量能饱和度}
m1:=13;
 m2:=72;

N1:=34;

N2:=N1*1.05;

N3:=N1+3;

SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));

量能饱和度:IF(SAT>1,1,SAT)*100,COLORLIBLUE,NODRAW;

中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}

STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00DDDD;

STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和度,0),COLOR0033FF;

{DRAWTEXT(CURRBARSCOUNT=N3,中点*1.82,’量能饱和度’),COLORLIBLUE;}

DDD:= CON2STR(量能饱和度,2);

DRAWTEXT(CURRBARSCOUNT=N1-8,中点*1.8,DDD),COLORYELLOW;

 

{VOLUME:VOL,VOLSTICK;}

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

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

成交量比%:买盘A/VOL*100,COLORWHITE,NODRAW;

预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW,LINETHICK0;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,-1,-1),COLOR00C0C0;

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

XA_2:=MOD(FROMOPEN,XA_1);

XA_3:=IF(XA_2<0.5,XA_1,XA_2);

VVOL:IF(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VOL*XA_1/XA_3,DRAWNULL),NODRAW;

STICKLINE(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VVOL,0,(-1),(-1)),COLOR00C0C0;

VOLUME:VOL,VOLSTICK;

MAVOL1:MA(VOLUME,M1);

MAVOL2:MA(VOLUME,M2);

 

XA_4:=VOL>REF(VOL,1)*1.9;

XA_5:=VOL<REF(LLV(VOL,13),1);

XA_6:=VOL<REF(LLV(VOL,55),1);

STICKLINE(XA_4,0,VOL,1,0),COLORYELLOW;

STICKLINE(XA_6,0,VOL,1,0),COLORMAGENTA;

XA_7:=CLOSE/REF(CLOSE,3)>=1.1;

XA_8:=BACKSET(XA_7,2);

OK:STICKLINE(XA_8 AND COUNT(XA_8,2)=1,VOL,0,2.5,0),COLORMAGENTA ;

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