大智慧改进的KDJ指标公式,大智慧VOL猎狼量指标公式
admin888
|大智慧改进的KDJ指标公式,大智慧VOL猎狼量指标公式
大智慧改进的KDJ指标公式
N:=5;
M1:=3;
M2:=3;
ZC:=IF(BARPOS=1,1,DAYS1970-DAYS1970[1]<>WEEKDAY-WEEKDAY[1]);
{上市第一日ZC取1,每周初交易日取1,其他交易日取0 }M:=BARSLAST(ZC)+1;
{最后一周交易日}周初标记:=DAYS1970-DAYS1970[1]<>WEEKDAY-WEEKDAY[1];
A:=IF(BARPOS=1,1,周初标记);
WO:=if(m=1,o,ref(o,m-1));
WC:=c;
WH:=if(m=1,h,hhv(h,m));
WL:=if(m=1,l,llv(l,m));
VAR1:=WEEKDAY>REF(WEEKDAY,1);
ZRSV:=(CLOSE-MIN(LLV(WL,SUMBARS(VAR2,1)),LLV(WL,SUMBARS(VAR2,n))))/(MAX(HHV(WH,SUMBARS(VAR2,1)),HHV(WH,SUMBARS(VAR2,n)))-MIN(LLV(WL,SUMBARS(VAR2,1)),LLV(WL,SUMBARS(VAR2,n))))*100;
ZK:SMA(ZRSV,SUMBARS(VAR2,m1)-SUMBARS(VAR2,1),1),COLORWHITE;
ZD:SMA(ZK,SUMBARS(VAR2,m2)-SUMBARS(VAR2,1),1),COLORYELLOW;
ZJ:3*ZK-2*ZD,COLORMAGENTA,LINETHICK1;
大智慧VOL猎狼量指标公式
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日内创新高:=N日净量=HHV(N日净量,N);
DRAWTEXT(N日内创新高,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 VOL
DRAWTEXT(REF(COUNT(VOL<量34,8)=8,1) and VOL>量34,VOL,'↑增'),coloryellow;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。