MA1:=EMA(C,30);
MA2:=EMA(C,900);
STICKLINE((MA1>MA2),MA1,MA2,0,0),COLOR1000FF;
STICKLINE((MA1<MA2),MA1,MA2,0,0),COLOR00FF00;
GJ:C,COLORWHITE;
JJ:SUM(C*V,FROMOPEN)/SUM(V,FROMOPEN),COLORYELLOW,LINETHICK1.5;
均量:=MA(V,5);
量連增:=均量>REF(均量,1) AND REF(均量,1)>REF(均量,2);
價(jià)連漲:=C>=REF(C,1) AND REF(C,1)>REF(C,2);
價(jià)量線上:=C>JJ AND V>均量;
倍量:=V>=REF(V,1)*2 ;
價(jià)新高:=C>=HHV(C,FROMOPEN);
量新高:=V>=HHV(V,FROMOPEN);
限幅:=C/DYNAINFO(3)<=1.02;
起爆:=FILTER(量連增 AND 價(jià)連漲 AND 價(jià)量線上 AND 倍量 AND 價(jià)新高 AND 量新高 AND 限幅,20);
DRAWTEXT(起爆,C,'起爆'),COLOR00FFFF;
DRAWICON(起爆,C,1);
STICKLINE(起爆,C,JJ,1,0),COLOR1000FF;
VV:=BARSSINCE(起爆);
起爆價(jià):=REF(C,VV);
起爆時(shí)間:=REF(TIME/10000,VV);
收益:=(DYNAINFO(7)-起爆價(jià))/起爆價(jià)*100;
DRAWICON(VV>=2,起爆價(jià),13);
DRAWTEXT_FIX(1,0,1,0,'起爆時(shí)間:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.06,1,0,CONST(起爆時(shí)間)),COLOR00FFFF;
DRAWTEXT_FIX(1,0.12,1,0,'起爆價(jià):'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.17,1,0,CONST(起爆價(jià))),COLOR00FFFF;
DRAWTEXT_FIX(1,0.24,1,0,'收益:'),COLOR00FFFF;
DRAWNUMBER_FIX(1,0.28.06,1,0,CONST(收益)),COLOR00FFFF;
流通盤(pán):CAPITAL*100/100000000,NODRAW;
資金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),NODRAW;
資金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),NODRAW;
資金出入:=資金流入+資金流出,NODRAW;
NN:=2400,NODRAW;
HD:=HHV(資金出入,NN),NODRAW;
LD:=LLV(資金出入,NN),NODRAW;
最高:=CONST(HD),NODRAW;
最低:=CONST(LD),NODRAW;
HLMAX:=最高;
HLMIN:=最低;
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=HLMAX-HLMIN;
HLMN3:=(100-0)/2*1.3;
HLMN4:=(100-0)/1*1.3;
中間價(jià)軸:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;
軸差:=最高-最低;
DRAWBAND(資金出入,RGB(150,0,150),0,RGB(0,100,0)),NODRAW;
資金流量:資金出入,NODRAW;
資金比:資金出入/SUM(V,FROMOPEN)*100,NODRAW;
資金流量比:=IF(資金比>=0,(資金比+100)/2,100-ABS((資金比-100)/2)),NODRAW;
攻擊量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN,NODRAW;
攻擊量A:=SUM(IF(C>REF(C,1),攻擊量*V,0),FROMOPEN),NODRAW;
攻擊量B:=-SUM(IF(C<REF(C,1),攻擊量*V,0),FROMOPEN),NODRAW;
攻擊流量:攻擊量A+攻擊量B,NODRAW;
NOTEXT攻擊線:攻擊流量,NODRAW;
攻擊比:攻擊流量/SUM(V,FROMOPEN)*100,COLORRED,NODRAW;
資金攻擊度:=IF(攻擊比>=0,(攻擊比+50),100-ABS((攻擊比-50)));
{STICKLINE(資金流量A>0,資金流量A,0,1,0),COLOR0000FF;
STICKLINE(資金流量B<0,資金流量B,0,1,0),COLORFF0000;}
{www.gupang.com 股旁網(wǎng)_通達(dá)信股票指標(biāo)公式}
DRAWRECTREL(110,10,400,90,RGB(0,75,200));
DRAWRECTREL(110,10,250,90,RGB(0,250,50));
DRAWRECTREL(110,10,100+CONST(資金流量比*300/100),90,RGB(200,50,0));
DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【資金流量比】',CON2STR(資金流量比,2)),'%買(mǎi)')),COLORYELLOW;
DRAWRECTREL(610,10,900,90,RGB(0,75,200));
DRAWRECTREL(610,10,750,90,RGB(0,250,50));
DRAWRECTREL(610,10,600+CONST(資金攻擊度*300/100),90,RGB(175,50,0));
DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【資金攻擊度】',CON2STR(資金攻擊度,2)),' %買(mǎi)')),COLORYELLOW;
MA30:=EMA(CLOSE,30);
強(qiáng)弱:EMA(CLOSE,900);
STICKLINE((MA30>強(qiáng)弱),MA30,強(qiáng)弱,1,0),COLOR0000FF;
STICKLINE((MA30<強(qiáng)弱),MA30,強(qiáng)弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撐:L1+P1*0.5/8,COLOR00DD00;
現(xiàn)價(jià):CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撐,現(xiàn)價(jià)),支撐,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撐,現(xiàn)價(jià),2),支撐*1.001,'★B吸'),COLORWHITE;{吸}
DRAWTEXT(LONGCROSS(現(xiàn)價(jià),阻力,2),現(xiàn)價(jià),'★S拋'),COLORGREEN;{拋};
{T+1止贏、止損}
止贏:H1,COLORRED,LINETHICK6;
DRAWTEXT(ISLASTBAR,H1,'當(dāng)日止贏價(jià)位'),COLORRED,LINETHICK6;
止損:阻力,COLORBLUE,LINETHICK6;
DRAWTEXT(ISLASTBAR,阻力,'高位止損價(jià)位'),COLORBLUE,LINETHICK6;
最后止損:支撐,COLORGREEN,LINETHICK6;
DRAWTEXT(ISLASTBAR,支撐,'低位止損價(jià)位'),COLORGREEN,LINETHICK6;
UR:=10;LR:=10;
均價(jià):SUM(V*C,0)/SUM(V,0),COLORYELLOW;
|