飞狐64卦主图指标公式

[复制链接]
查看114 | 回复0 | 2021-8-21 12:42:58 | 显示全部楼层 |阅读模式

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<OPEN OR (CLOSE=OPEN AND CLOSE<=REF(CLOSE,1));
乾:=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,'夬');
{www.gupang.com 股旁网_飞狐股票指标公式}
坤:=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,'损');

202108211206.jpg

202108211206.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则