量能预警副图
指标源码分享
天量:=CONST(IF(V=HHV(V,30),V,REF(V,BARSLAST(V=HHV(V,30))))),COLOR00FF00,POINTDOT;
A01:=(VOL/CLOSE)/3;
A02:=SUM((IF(((A01>60) AND C< 15 AND (CLOSE>(REF(CLOSE,1)))),A01,0)),1);
A03:=SUM((IF(((A01>20) AND C>15 AND (CLOSE>(REF(CLOSE,1)))),A01,0)),1);
主力买:=A02+A03;
A04:=SUM((IF(((A01>60) AND C< 15 AND (CLOSE< (REF(CLOSE,1)))),A01,0)),1);
A05:=SUM((IF(((A01>20) AND C>15 AND (CLOSE< (REF(CLOSE,1)))),A01,0)),1);
主力卖:=A04+A05;{分析家公式网HTTP://WWW.70822.COM}
主净买:IF(FINANCE(7)< 5000000000,(主力买-主力卖)/10,0),COLORYELLOW,NODRAW;
STICKLINE(主力买 ,天量*1.5+主力买*10,天量*1.5,2,0),COLORRED;
STICKLINE(主力卖 ,天量*1.5-主力卖*10,天量*1.5,2,0),COLORGREEN;
STICKLINE(主净买 ,天量*1.5+主净买*10,天量*1.5,2,0),COLORYELLOW;
VOLUME:VOL,VOLSTICK;
P1:=60;
P2:=5;
P3:=10;
REFLINE:0;
K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
买量:=SUM(DT,1);
卖量:=SUM(KT,1);
DDX:=EMA(买量-卖量,5)*VOL/CAPITAL*100,COLORSTICK,LINETHICK2;
DDX1:=SMA(DDX,3,1),COLORFFFFFF;
DDX2:=SMA(DDX1,3,1),COLOR00FFFF;
DDX3:=EMA(DDX2,5),COLORFF00FF;
预警:=DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2),LINETHICK;
倍量数:V/REF(V,1),NODRAW;
主持仓:EMA(100*(CLOSE- LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;
主筹码:WINNER(C)*100,COLORRED;
成交量:VOL,VOLSTICK;
MA5:MA(V,5),COLORWHITE;
MA10:=MA(V,10);
MA20:=MA(V,20);
MA60:MA(V,60),COLORGREEN;
DRAWTEXT(预警,V*1.15,'★'),LINETHICK3,COLOR00FFFF;
VX:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VX,0,-1,-1),COLOR00C0C0;
BLXS:V/REF(V,1),NODRAW;
AA:=V>=REF(V,1)*1.91 && C>REF(C,1);
AA1:=V=LLV(V,21) AND BARSCOUNT(C)>21;
AA2:=V=LLV(V,55) AND BARSCOUNT(C)>55;
AA3:=V=HHV(V,158) AND BARSCOUNT(C)>158;
AA4:=FILTERX(AA3,158);
TS:=BARSCOUNT(C)+1;
TL:=V=HHV(V,TS);
AA5:=FILTERX(TL,TS-1);
STICKLINE(AA,0,V,1,0),COLORYELLOW;
STICKLINE(AA1,0,V,1,0),COLORGREEN;
STICKLINE(AA2,0,V,1,0),COLORLIGREEN;
STICKLINE(AA4,0,V,1,0),COLORMAGENTA;
STICKLINE(AA5,0,V,1,0),COLORRED;
VMIN:=MIN(MIN(V,REF(V,1)),REF(V,2));
VMAX:=MAX(MAX(V,REF(V,1)),REF(V,2));
SL1:=V<=0.6*VMAX AND HHV(H,3)=HHV(H,21);
SL2:=REF(H,1)=HHV(H,21) AND BLXS<0.6 AND NOT(EXIST(C>1.097*REF(C,1),3));
SL:=SL1 OR SL2;
DRAWICON(SL,VMAX,2);
DRAWICON(SL,0.5*(VMAX+VMIN),2);
竞价量:DYNAINFO(15)/DYNAINFO(4)/100,NODRAW;
TT3:=CONST(BARSLAST(竞价量)),NODRAW;
STICKLINE(PERIOD=5 AND CURRBARSCOUNT=TT3+1,竞价量,竞价量,20,0),COLORYELLOW;
P:=CONST(BARSLAST(竞价量));
STICKLINE(CURRBARSCOUNT=P+1,O,竞价量,2.5,0),COLORYELLOW;
OO:=DYNAINFO(15)/DYNAINFO(4)/100;
竞价量比:=OO/REF(V,1)*100,NODRAW;
ABD:=OO/REF(MA(V,5),1)*100;
AAC1:=STRCAT(STRCAT('【竞价量比】: ',CON2STR(竞价量比,2)),'%');
DRAWTEXT_FIX(ISLASTBAR,0.02,0.02,0,AAC1),COLORYELLOW;
MA5角:ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1415926,NODRAW;
MA10角:ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1415926,NODRAW;