飞狐64卦主图指标公式,飞狐千钧赢富+量价买卖线指标公式
admin888
|飞狐64卦主图指标公式,飞狐千钧赢富+量价买卖线指标公式
飞狐64卦主图指标公式
input:P1(5,1,300), P2(10,1,300), P3(30,1,300), P4(60,1,300);
ma1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:=MA(CLOSE,P3);
MA4:=MA(CLOSE,P4);
A:=CLOSE>OPEN OR (CLOSE=OPEN AND CLOSE>REF(CLOSE,1));
X:=CLOSE
乾:=DRAWTEXT(COUNT(A,6)=6,HIGH*1.01,'乾')COLORRED;
泰:=DRAWTEXT(REF(COUNT(A,3)=3,3)AND COUNT(X,3)=3,LOW*0.99,'泰');
大壮:=DRAWTEXT(REF(COUNT(A,4)=4,2)AND COUNT(X,2)=2,LOW*0.99,'大壮');
小畜:=DRAWTEXT(REF(COUNT(A,3)=3,3)AND REF(X,2) AND COUNT(A,2)=2,HIGH*1.01,'小畜')COLORCYAN;
需:=DRAWTEXT(REF(COUNT(A,3)=3,3) AND REF(X,2) AND REF(A,1) AND X,LOW*0.99,'需');
大有:=DRAWTEXT(REF(COUNT(A,4)=4,2) AND REF(X,1) AND A,HIGH*1.01,'大有')COLORRED;
大畜:=DRAWTEXT(REF(COUNT(A,3)=3,3) AND REF(COUNT(X,2)=2,1) AND A,HIGH*1.01,'大畜');
决:=DRAWTEXT(REF(COUNT(A,5)=5,1) AND X,LOW*0.99,'?');
坤:=DRAWTEXT(COUNT(X,6)=6,LOW*0.99,'坤');
否:=DRAWTEXT(REF(COUNT(X,3)=3,3)AND COUNT(A,3)=3,HIGH*1.01,'否');
豫:=DRAWTEXT(REF(COUNT(X,3)=3,3)AND REF(A,2) AND COUNT(X,2)=2,LOW*0.99,'豫');
观:=DRAWTEXT(REF(COUNT(X,4)=4,2)AND COUNT(A,2)=2,HIGH*1.01,'观');
比:=DRAWTEXT(REF(COUNT(x,4)=4,2)AND REF(A,1) AND X,LOW*0.99,'比');
晋:=DRAWTEXT(REF(COUNT(X,3)=3,3) AND REF(A,2) AND REF(X,1) AND A,HIGH*1.01,'晋');
剥:=DRAWTEXT(REF(COUNT(X,5)=5,1) AND A,HIGH*1.01,'剥');
萃:=DRAWTEXT(REF(COUNT(X,3)=3,3) AND REF(COUNT(A,2)=2,1) AND X,LOW*0.99,'萃');
震:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,2)=2,3) AND REF(A,2) AND COUNT(X,2)=2,LOW*0.99,'震');
无妄:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,2)=2,3) AND COUNT(A,3)=3,HIGH*1.01,'无妄')COLORRED;
复:=DRAWTEXT(REF(A,5) AND COUNT(X,5)=5,LOW*0.99,'复');
益:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,3)=3,2) AND COUNT(A,2)=2,HIGH*1.01,'益');
屯:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,3)=3,2) AND REF(A,1) AND X,LOW*0.99,'屯');
噬嗑:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,2)=2,3) AND REF(A,2) AND REF(X,1) AND A,HIGH*1.01,'噬嗑');
颐:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,4)=4,1) AND A,HIGH*1.01,'颐');
随:=DRAWTEXT(REF(A,5) AND REF(COUNT(X,2)=2,3) AND REF(COUNT(A,2)=2,1) AND X,LOW*0.99,'随');
巽:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,2)=2,3) AND REF(X,2) AND COUNT(A,2)=2 ,HIGH*1.01,'巽')COLORLIRED;
后:=DRAWTEXT(REF(X,5) AND COUNT(A,5)=5 ,HIGH*1.01,'?');
升:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,2)=2,3) AND COUNT(X,3)=3,LOW*0.99,'升');
恒:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,3)=3,2) AND COUNT(X,2)=2,LOW*0.99,'恒');
井:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,2)=2,3) AND REF(X,2) AND REF(A,1) AND X,LOW*0.99,'井');
鼎:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,3)=3,2) AND REF(X,1) AND A,HIGH*1.01,'鼎')COLORLIRED;
蛊:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,2)=2,3) AND REF(COUNT(X,2)=2,1) AND A,HIGH*1.01,'蛊');
大过:=DRAWTEXT(REF(X,5) AND REF(COUNT(A,4)=4,1) AND X,LOW*0.99,'大过');
坎:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(COUNT(X,2)=2,2) AND REF(A,1) AND X,LOW*0.99,'坎');
讼:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(X,3) AND COUNT(A,3)=3,HIGH*1.01,'讼');
师:=DRAWTEXT(REF(X,5) AND REF(A,4) AND COUNT(X,4)=4,LOW*0.99,'师');
解:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(X,3) AND REF(A,2) AND COUNT(X,2)=2,LOW*0.99,'解');
涣:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(COUNT(X,2)=2,2) AND COUNT(A,2)=2,HIGH*1.01,'涣');
末济:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(X,3) AND REF(A,2) AND REF(X,1) AND A,HIGH*1.01,'末济');
蒙:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(COUNT(X,3)=3,1) AND A,HIGH*1.01,'蒙');
困:=DRAWTEXT(REF(X,5) AND REF(A,4) AND REF(X,3) AND REF(COUNT(A,2)=2,1) AND X,LOW*0.99,'困');
离:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(COUNT(A,2)=2,2) AND REF(X,1) AND A,HIGH*1.01,'离');
同人:=DRAWTEXT(REF(A,5) AND REF(X,4) AND COUNT(A,4)=4,HIGH*1.01,'同人');
明夷:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(A,3) AND COUNT(X,3)=3,LOW*0.99,'明夷');
丰:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(COUNT(A,2)=2,2) AND COUNT(X,2)=2,LOW*0.99,'丰');
家人:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(A,3) AND REF(X,2) AND COUNT(A,2)=2,HIGH*1.01,'家人');
既济:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(A,3) AND REF(X,2) AND REF(A,1) AND X,LOW*0.99,'既济');
贲:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(A,3) AND REF(COUNT(X,2)=2,1) AND A,HIGH*1.01,'贲');
革:=DRAWTEXT(REF(A,5) AND REF(X,4) AND REF(COUNT(A,3)=3,1) AND X,LOW*0.99,'革');
艮:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(A,3) AND REF(COUNT(X,2)=2,1) AND A,HIGH*1.01,'艮');
?:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND COUNT(A,4)=4 ,HIGH*1.01,'?');
谦:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(A,3) AND COUNT(X,3)=3,LOW*0.99,'谦');
小过:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(COUNT(A,2)=2,2) AND COUNT(X,2)=2,LOW*0.99,'小过');
渐:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(A,3) AND REF(X,2) AND COUNT(A,2)=2,HIGH*1.01,'渐');
蹇:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(A,3) AND REF(X,2) AND REF(A,1) AND X,LOW*0.99,'蹇');
旅:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(COUNT(A,2)=2,2) AND REF(X,1) AND A,HIGH*1.01,'旅')COLORRED;
咸:=DRAWTEXT(REF(COUNT(X,2)=2,4) AND REF(COUNT(A,3)=3,1) AND X,LOW*0.99,'咸');
兑:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(X,3) AND REF(COUNT(A,2)=2,1) AND X,LOW*0.99,'兑')COLORLICYAN;
履:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(X,3) AND COUNT(A,3)=3,HIGH*1.01,'履')COLORRED;
临:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND COUNT(X,4)=4,LOW*0.99,'临');
归妹:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(X,3) AND REF(A,2) AND COUNT(X,2)=2,LOW*0.99,'归妹');
中孚:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(COUNT(X,2)=2,2) AND COUNT(A,2)=2,HIGH*1.01,'中孚');
节:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(COUNT(X,2)=2,2) AND REF(A,1) AND X,LOW*0.99,'节');
睽:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(X,3) AND REF(A,2) AND REF(X,1) AND A,HIGH*1.01,'睽');
损:=DRAWTEXT(REF(COUNT(A,2)=2,4) AND REF(COUNT(X,3)=3,1) AND A,HIGH*1.01,'损');
飞狐千钧赢富+量价买卖线指标公式
INPUT:X(2008,1990,2020);
换手率:IF(CAPITAL=0,INDEXV/EstDATA(12),vol/FINANCE(7)),PRECISION2,LINETHICK0;
variable:wday[7]='星期六';
wday[1]:='星期日';
wday[2]:='星期一';
wday[3]:='星期二';
wday[4]:='星期三';
wday[5]:='星期四';
wday[6]:='星期五';
fy:=YEAR;
fm:=MONTH;
fd:=DAY;
wd:=WEEkdAY;
p:=SYSPARAM(1);
BB:=BARPOS;
str1:=''+NUMTOSTR(fy[p],0)+'年'+NUMTOSTR(fm[p],0)+'月'+NUMTOSTR(fd[p],0)+'日 '+wday[wd[p]+1];
SJ:=OPENMINUTES(CURRENTTIME)>1 and OPENMINUTES(CURRENTTIME)<239;
qj0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
jj:=(HIGH+LOW+CLOSE)/3;
特大:IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))),PRECISION0,COLOR0000FF,LINETHICK;
大户:IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN)))),PRECISION0,COLORFF00FF,LINETHICK;
中户:IF(CAPITAL=0,qj0*(HIGH-maX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE)))),PRECISION0,COLOR00FF00,LINETHICK;
散户:IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj))),PRECISION0,COLORFF6600,LINETHICK;
总1:=(特大+大户)-(中户+散户);
总:=vol;
ww:=SYSPARAM(2);
n1:=SYSPARAM(3);
nn:=n1-ww+1;
hh:=HHV(总,nn);
ll:=LLV(总,nn);
ZG:=hh[n1];
ZD:=ll[n1];
中0:=ZD+(ZG-ZD)*0.5;
中:=中0*0.05;
CM:=SUM(总1,25);
ZJ:=REF(总1,1);
ZSB:=(总1-REF(总1,1))/总*100;
ZSA:=cm/IF(STKTYPE=0,SUM(VOL,25),IF(STKTYPE=13,SUM(VOL,10),CAPITAL));
cc:=REF(CLOSE,BArslAST(fm>REF(fm,1)));
主力成本:=(cc*(特大+大户)*100)/(特大+大户)/100;
DF1:=ema(CLOSE,12)-EMA(CLOSE,26);
DA1:=EMA(DF1,9);
qj6:=df1>da1 and da1<0;
qj7:="kdj.k">"kdj.d" and "kdj.d"<30;
qj8:=df1
qj9:="kdj.k"<"kdj.d" and "kdj.k">80;
w1:=SUM(大户,5)+SUM(特大,5);
w2:=SUM(散户,5)+SUM(中户,5);
量振1:=特大>大户 and 大户>散户;
量振2:=特大<散户 and 大户<散户;
标振1:=qj6 and qj7;
标振2:=qj8 and qj9;
a:=w1-w2;
a0:=IF(a>0,a,0);
b0:=IF(a<0,a,0);
STICKLINE(总1<0,0,-总1+总/2,8,0),ColorFF4400;
STICKLINE(总1<0,0,-总1+总/2,6,0),ColorFF8800;STICKLINE(总1<0,0,-总1+总/2,3,0),ColorFFaa00;
STICKLINE(总1<0,0,-总1+总/2,1,0),ColorFFcc00;
STICKLINE(总1>0,0,+总1+总/2,8,0),Color000044;
STICKLINE(总1>0,0,+总1+总/2,6,0),Color000088;
STICKLINE(总1>0,0,+总1+总/2,3,0),Color0000aa;
STICKLINE(总1>0,0,+总1+总/2,1,0),Color0000cc;
STICKLINE(a0,0,a0,8,0),Color000044;
STICKLINE(a0,0,a0,5,0),Color000088;
STICKLINE(a0,0,a0,3,0),Color0000aa;
STICKLINE(a0,0,a0,1,0),Color0000cc;
STICKLINE(b0,0,-b0,8,0),Color004400;
STICKLINE(b0,0,-b0,5,0),Color008800;
STICKLINE(b0,0,-b0,3,0),Color00aa00;
STICKLINE(b0,0,-b0,1,0),Color00cc00;
STICKLINE(BB=ww,中*0.2,中*9.2,(散户[P]/总*200)*1.02,1),COLORWHITE,LINETHICK2;
STICKLINE(BB=ww,中*0.8,中*8.6,散户[P]/总*200,0),COLORFF8800;
STICKLINE(BB=ww,中*10.2,中*19.2,(中户[P]/总*200)*1.02,1),COLORWHITE,LINETHICK2;
STICKLINE(BB=ww,中*10.8,中*18.6,中户[P]/总*200,0),COLORFF00FF;
STICKLINE(BB=ww,中*20.2,中*29.2,(大户[P]/总*200)*1.02,1),COLORWHITE,LINETHICK2;
STICKLINE(BB=ww,中*20.8,中*28.6,大户[P]/总*200,0),COLOR0088FF;
STICKLINE(BB=ww,中*30.2,中*39.2,(特大[P]/总*200)*1.02,1),COLORWHITE,LINETHICK2;
STICKLINE(BB=ww,中*30.8,中*38.6,特大[P]/总*200,0),COLOR0000FF;
STICKLINE(BB=ww-28,中*-0.2,中*40,500,0),COLOR000000;
DRAWTEXTEX(CLOSE,1,420,0,str1),ColorffFF00;
DRAWTEXTEX(CLOSE,1,200,0,STKLABEL+' '+STKNAME+''),ColorffFF00;
DRAWTEXT(BB=ww,中*36,'特大:'+NUMTOSTR(特大[P]/总*100,2)+' %'),COLOR00FF00;
DRAWTEXT(BB=ww,中*26,'大户:'+NUMTOSTR(大户[P]/总*100,2)+' %'),COLOR00FF00;
DRAWTEXT(BB=ww,中*16,'中户:'+NUMTOSTR(中户[P]/总*100,2)+' %'),COLOR00FF00;
DRAWTEXT(BB=ww,中*6,'散户:'+NUMTOSTR(散户[P]/总*100,2)+' %'),COLOR00FF00;
周趋势:MA(a0,5),ColorFF00FF,PRECISION0;
平滑值:WMA(周趋势,5),Color00FF00,PRECISION0;
买:量振1 and 标振1 and 周趋势>平滑值,Color0000FF,LINETHICK;
卖:量振2 and 标振2 and 周趋势<平滑值,Color00FF00,LINETHICK;
difF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd1:=2*(DIFF-DEA);
CS1:=100;
CS2:=HHV(Abs(MacD1),CS1);
CS3:=ABS(100/CS2);
MACD:(MACD1*CS3+100)/2,LINETHICK5,color00FF00;
CS:=MACD;
日红:=CS>=REF(CS,1);
日转红:=日红 AND REF(日红,1)=0;
PARTLINE(日红,CS),LINETHICK5,colorred;
AA:=0;
V1:=LLV(LOW,10);
V2:=HHV(HIGH,25);
价位线:=EMA((CLOSE-V1)/(V2-V1)*4,4);
DRAWTEXT(crOSS(价位线,0.3),AA,'买'),color0000FF;
DRAWTEXT(CROSS(3.7,价位线),AA,'卖'),colorFF00;
VERTLINE(CROSS(价位线,0.3)),color0000FF,LINEDASHDOT;
VERTLINE(CROSS(3.7,价位线)),colorFF00,LINEDASHDOT;
DRAWTEXTEX(CLOSE,1,200,130,'主力成本:'+NUMTOSTR(主力成本[p],2)),COLOR00FF00;
DRAWTEXTEX(CLOSE,1,420,130,'主力筹码占流通:'+NUMTOSTR(IF(ZSA>0,ZSA[P]*100,0),2)+' %'),COLOR00FF00;
DRAWTEXTEX(CLOSE,1,720,130,'较昨日增减:'+NUMTOSTR(ZSB[P],2)+' %'),COLOR00FF00;
DRAWTEXTEX(c and 总1[P]<0,1,720,0,'散户主买主力主卖'),COLORffee00;
DRAWTEXTEX(c and 总1[P]>0,1,720,0,'主力主买 散户主卖'),COLOR0000ff;
DRAWTEXTEX(c and 总1[P]>0,1,560,0,'金盾'),COLOR0000ff;
周仓:=SUM(总1,5)
月仓:=SUM(总1,25);
年仓:=SUM(总1,240);
上周:=REF(周仓,1);
上月:=REF(月仓,1);
上年:=REF(年仓,BARSLAST(fy=X));
周增:=周仓-上周;
月增:=月仓-上月;
年增:=年仓-上年;
EXPLAIN(1,'==================================='),colorwhite;
EXPLAIN(1,'今日增减:'+NUMTOSTR((总1[p]*100)/10000,2)+' 万股'),COLOrffff00;
EXPLAIN(1,'昨日增减:'+NUMTOSTR(zj[p]*100/10000,2)+' 万股'),ColorFF8B00;
EXPLAIN(1,'==================================='),colorwhite;
EXPLAIN(1,'周仓:'+NUMTOSTR(周仓[p]*100/10000,2)+' 万股'),COLORred;
EXPLAIN(1,'上周:'+NUMTOSTR(上周[p]*100/10000,2)+' 万股'),COLORred;
EXPLAIN(1,'增减:'+NUMTOSTR(周增[p]*100/10000,2)+' 万股'),COLORred;
EXPLAIN(1,'==================================='),colorwhite;
EXPLAIN(1,'月仓:'+NUMTOSTR(月仓[p]*100/10000,2)+' 万股'),COLORFF00FF;
EXPLAIN(1,'上月:'+NUMTOSTR(上月[p]*100/10000,2)+' 万股'),COLORFF00FF;
EXPLAIN(1,'增减:'+NUMTOSTR(月增[p]*100/10000,2)+' 万股'),COLORFF00FF;
EXPLAIN(1,'==================================='),colorwhite;
EXPLAIN(1,'年仓:'+NUMTOSTR(年仓[p]*100/10000,2)+' 万股'),COLOR00EE00;
EXPLAIN(1,'上年:'+NUMTOSTR(上年[p]*100/10000,2)+' 万股'),COLOR00EE00;
EXPLAIN(1,'增减:'+NUMTOSTR(年增[p]*100/10000,2)+' 万股'),COLOR00EE00;
EXPLAIN(1,'==================================='),colorwhite;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。