【大智慧】VOL獵狼量指標公式
攻城獅 2015.11.08 18:21
input:M1(5),M2(10),N(20);
DRAWTEXTREL(600,10,’ ★【獵狼老頭】:日凈流入量 單位:手’),color00FF00;
V1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:VOL,COLORCD52FF,STICK3D,PRECIS0;
主買:IF(CLOSE>OPEN,V1*(HIGH-LOW),IF(CLOSE主賣:IF(CLOSE>OPEN,0-V1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE 主賣盤:=IF(CLOSE>OPEN,V1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE 買賣差:=(主買+主賣);
買賣差比:買賣差/CAPITAL*100;
獵狼線:=0;
FILLRGN(買賣差,獵狼線,買賣差>=獵狼線,RGB(155,0,0),買賣差<獵狼線,RGB(0,150,0)),PRECIS0;
今日凈買:(主買+主賣)/10000,COLORMAGENTA,LINETHICK0,PRECIS2;
買賣比:主買/主賣盤;
圖長度像素:=380*0.4;
主動買盤長度:=主買/1000000*圖長度像素+180;
主動賣盤長度:=主賣盤/1000000*圖長度像素+180;
DRAWTEXTABS(10,5,’主買盤: ‘+NUMTOSTRN(主買,1)+’手★┣→’),COLOR0000FF,LINETHICK2,PRECIS0;
DRAWTEXTABS(10,25,’主賣盤:’+NUMTOSTRN(主賣,1)+’手★┣→’),COLOR00FFFF,LINETHICK2,PRECIS0;
DRAWRECTABS(180,5,主動買盤長度,20 ,RGB(200,60,0)),COLOR6699FF;
DRAWRECTABS(180,25,主動賣盤長度,40 ,RGB(0,255,0) ),COLORFFFFFF;
DRAWTEXTREL(850,920,’成交量雷達’),COLORFF00FF,LINETHICK4;
N日凈量:SUM(今日凈買,N),LINETHICK0,PRECIS1;
N日內創(chuàng)新高:=N日凈量=HHV(N日凈量,N);
DRAWTEXT(N日內創(chuàng)新高,V,’↑’),COLORFF0000;
MA1:MA(VOL,M1),LINETHICK2,COLORFFFFFF;
MA2:MA(VOL,M2),LINETHICK2,COLORYELLOW;
天量:=VOL=HHV(VOL,0);
DRAWTEXT(天量,天量,’天量’),COLOR00FFFF;
量34:MA(VOL,34),COLOR00FF00,LINETHICK2;
L13:=LLV(MA(VOL,5),13);
PARTLINE(M1,(M2< M1)),COLORFF00FF,LINETHICK2;
PARTLINE(量34,M2>量34),COLOR0000FF,LINETHICK2;
DRAWTEXT(REF(COUNT(VOL>L13,8)=8,1) and VOLDRAWTEXT(REF(COUNT(VOL<量34,8)=8,1) and VOL>量34,VOL,’↑增’),coloryellow;
申明:本文為作者投稿或轉載,在概念股網 http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網立場,不代表本網贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。