N根白柱:=2;
DRAWTEXT_FIX(1,0.00,0.01,0,’黄色能量,红色趋势,上白下红为诱空看涨,上红下白为诱多看跌’),colorred;
volUME:=VOL,VOLSTICK;
SJMY:=1531221;
XSJMY:=IF(DATE<SJMY,1,DRAWNULL);
MAVOL1:MA(VOLUME,5),LINETHICK2,COLORFFFFFF;
MAVOL2:MA(VOLUME,135)*XSJMY,LINETHICK2,coloryellow;
MAVOL3:MA(VOLUME,40),LINETHICK2,colormagenta;
SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
macd:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(DIF>DEA,0,VOL,2,0)*XSJMY,colorred;
STICKLINE(DIF<DEA,0,VOL,2,0)*XSJMY,colorwhite;
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
STICKLINE(J>D AND XSJMY,VOL/2,VOL,2,0)*XSJMY,colorred;
STICKLINE(J<D AND XSJMY,VOL/2,VOL,2,0)*XSJMY,colorwhite;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
obv1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
Mac3:=MA(C,3);
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1) AND XSJMY,0,OBV3,0.5,0),coloryellow;
GL:=IF(J<D,0,1);
GL1:=IF(DIF<DEA,0,1);
选股1:=OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1);
黄红柱:OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1) AND ( GL AND GL1 );
全红柱:FILTER( DIF>DEA AND IF(J<D,0,1) AND IF(DIF<DEA,0,1),2,1);
BZ:=IF(DIF>DEA,0,1);
BZ1:=IF(J>D,0,1);
白柱:(J<D AND DIF<DEA AND BZ AND BZ1 ),colorwhite ;
统计白柱:BArslASTCOUNT(白柱)=N根白柱;
条件:IF(REF(统计白柱,1),1,0);
昨天白柱:IF(REF(白柱,1) ,1,0);
TOTAL:=IF(PERIODNAME=1,5,IF(PERIODNAME=2,15,IF(PERIODNAME=3,30,IF(PERIODNAME=4,60,IF(PERIODNAME=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VV:=IF(CURRBARSCOUNT=1,V*TOTAL/CTIME,DRAWNULL),NODRAW;
VUME:=V,VOLSTICK;
MV4:=MA(VUME,60),colorgray;
MV3:=MA(VUME,20),colormagenta;
MV2:=MA(VUME,10),colorwhite;
MV1:=MA(VUME,5),colorgreen;
FL4:=V=HHV(V,250);
FL3:=V=HHV(V,120) AND V!=HHV(V,250);
FL2:=V=HHV(V,60) AND V!=HHV(V,120) AND V!=HHV(V,250);
FL1:=V=HHV(V,30) AND V!=HHV(V,60) AND V!=HHV(V,120) AND V!=HHV(V,250);
DRAWTEXT(FL4,V,’④’),coloryellow;
DRAWTEXT(FL3,V,’③’),coloryellow;
DRAWTEXT(FL2,V,’②’),coloryellow;
DRAWTEXT(FL1,V,’①’),coloryellow;DRAWTEXT(FL1,V,’①’),coloryellow;

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