一、量能副图指标
1、大智慧量能副图指标源码
LB:DYNAINFO(17);
ddx1:=“ddx.ddx1”;ddx3:=“ddx.ddx3”;ddx:=ddx1>=ddx3;
sh:=STRFIND(MARKETLABEL,‘SH’,1)=1;
PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ* ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));
ZLL:=(VOL / CAPITAL);
HSL1:=IF((ZLL > 10),10,ZLL);
HSL:=((XVL / 20) / 1.15);
攻击流量:(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));
LLJX:EMA(攻击流量,3);
资金流量:LLJX+LLJX0.03,LINETHICK1,colorwhite;
STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,5,300),coloryellow;
STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,5,300),colorgreen;
JLB:=((HSL * 0.4) * 1.5)/100;
黄量:if(jlb>0,10000JLB/capital,0),colorYELLOW,LINETHICK0;
STICKLINE((LLJX > 0),LLJX,0,5,500),color0000FF,ALIGN1;
STICKLINE((LLJX < 0),LLJX,0,5,500),colorFF0000,ALIGN1;
红量:if(LLJX>0,10000LLJX/capital,0),colorRED,LINETHICK0;
ZJLL:=REF(LLJX,1);
QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);
流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0- QZJJ),QZJJ)),LINETHICK0,coloryellow;
力度:(HSL / 1000),LINETHICK0;
流量递增:=ref(LLJX,1)>ref(LLJX,2) and LLJX>ref(LLJX,1) and LLJX>0;
内外盘b:=100(DYNAINFO(23)/DYNAINFO(22)-1);
k:=“kdj.k”;d:=“kdj.d”;j:=“kdj.j”;macd:=“macd.macd”;
XLHH:any(ref(LLJX,1)<0 and llJX>0 and LB and 流量递增 and c<80 and ddx and sh,2) and 流量递增>0;{先蓝后红}
TV:llJX>0 and ref(LLJX,1)<0 and LB and 流量递增 and 内外盘B>=10 and c<50;{昨蓝今红};
2、通达信量能指标副图源码
PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ* ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));
ZLL:=(VOL / CAPITAL);
HSL1:=IF((ZLL > 10),10,ZLL);
HSL:=((XVL / 20) / 1.15);
攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF;
STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;
资金流入:=IF((HSL0.4+LLJX)>0,(HSL0.4+LLJX),DRAWNULL),COLORRED;
资金流出:=IF((HSL0.4+LLJX)<0,(HSL0.4+LLJX),DRAWNULL),COLOR00FF00;
资金进出:=(HSL0.4+LLJX),LINETHICK0;
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
STICKLINE((资金流量 > 0),资金流量,0,3,0),COLOR0000FF;
STICKLINE((资金流量 < 0),资金流量,0,3,0),COLORFF3300;
黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);
X:=(3C+2L+O+H)/7;
多空线:=(20X+19REF(X,1)+18REF(X,2)+17REF(X,3)+16REF(X,4)+15REF(X,5)+14REF(X,6)
+13REF(X,7)+12REF(X,8)+11REF(X,9)+10REF(X,10)+9REF(X,11)+8REF(X,12)
+7REF(X,13)+6REF(X,14)+5REF(X,15)+4REF(X,16)+3REF(X,17)+2REF(X,18)+REF(X,20))/210;
长黄柱:= 资金流入>300 AND CROSS(C,多空线);
二、至简主图源码:将源码添加进你的主图里边即可,通达信与大智慧通用。
X:=21;
TTY:=H;
AAT:=REF(TTY,X)=HHV(TTY,2X+1);
BBT:=FILTER(AAT,X);
CCT:=BACKSET(BBT,X+1);
HD10T:=FILTER(CCT,X);
AA1T:=REF(TTY,X)=LLV(TTY,2X+1);
BB1T:=FILTER(AA1T,X);
CC1T:=BACKSET(BB1T,X+1);
LD10T:=FILTER(CC1T,X);
前高:REF(H,BARSLAST(HD10T)),COLOR008364,LINETHICK0;
前低:REF(L,BARSLAST(LD10T)),COLORRED,LINETHICK0;
T10T:=BARSLAST(HD10T) AND BARSLAST(LD10T) AND NOT(LD10T);
STICKLINE(T10T,前高,前高,20,0),COLOR008364;
STICKLINE(T10T,前低,前低,20,0),COLORRED;