【大智慧】主力趨勢(shì)指標(biāo)公式
攻城獅 2016.01.11 15:40
說明:首先需要大智慧L2數(shù)據(jù)支持,沒實(shí)時(shí)的盤后下載數(shù)據(jù),方可施用
DRAWTEXTABS(10,10,’主力趨勢(shì)–‘),COLORYELLOW,linethick2;
DRAWTEXTABS(83,10,’紫色進(jìn)場(chǎng)’),COLORFF00FF,linethick2;
DRAWTEXTABS(140,10,’藍(lán)色出局’),COLORFFFF00,linethick2;
當(dāng)日成交:amount*BIGORDER(1,2)/10000-amount*BIGORDER(2,2) /10000,colorWhite,linethick0;
stickline(當(dāng)日成交>0,0,當(dāng)日成交,5,0),colorred;
stickline(當(dāng)日成交<0,當(dāng)日成交,0,5,0),colorgreen;
HS:=vol/capital;
DD:=(BIGORDER(1,2)-BIGORDER(2,2));
DT:=HS*DD*100;
當(dāng)日增減度:DT,linethick0;
當(dāng)日成交:=(DT*capital)*DYNAINFO(11)/10000;
買入手?jǐn)?shù):=(capital*DT)/100;
if (當(dāng)日成交>=0)then
begin
Str1:=’主力凈買入:’+NUMTOSTRN(當(dāng)日成交,3)+’萬(wàn)元,’;
Str2:= ‘凈買入:’+ NUMTOSTRN(買入手?jǐn)?shù),0)+’手,’;
Str3:= ‘當(dāng)日增減度:’ + NUMTOSTRN(DT,3);
end;
if 當(dāng)日成交<0 then
begin
Str1:=’主力凈賣出:’+ NUMTOSTRN(當(dāng)日成交,3)+’萬(wàn)元,’;
Str2:=’凈賣出:’+NUMTOSTRN(買入手?jǐn)?shù),0)+’手,’;
Str3:=’當(dāng)日增減度:’+NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT>=0,當(dāng)日成交,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT<0,當(dāng)日成交,Str1+str2+str3),COLORGREEN;
QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSEOPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE HSL:=((XVL/40)/1.15);
主買:=SUM(HSL,N1);
主賣:=EMA(主買,N3);
量柱:主買-主賣,colorWhite,linethick1;
STICKLINE((主買>=主賣),主買,主賣,8,1),COLORFF00FF,LINETHICK2;STICKLINE((主買& lt;主賣),主買,主賣,8,1),COLORFFFF00,LINETHICK2;
DRAWICON(CROSS( 量柱,0)and 當(dāng)日成交>150,0+2,1),ALIGN1;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。