飞狐牛气冲天指标公式,飞狐MACD背离二叉指标公式
admin888
|飞狐牛气冲天指标公式,飞狐MACD背离二叉指标公式
飞狐牛气冲天指标公式
INPUT:G1(8,8,35);
股票:=0;
理:IF(CLOSE>ma(CLOSE,5),股票+1,股票),COLORWHITE;
想:IF(CLOSE>MA(CLOSE,10),理+1,理),COLOR999999;
论:IF(CLOSE>MA(CLOSE,20),想+1,想),COLOR00FFFF;
坛:IF(CLOSE>MA(CLOSE,60),论+1,论),COLORFF00FF;
估:IF(MA(CLOSE,5)>MA(CLOSE,10),坛+1,坛),COLORFFAA00;
界:IF(MA(CLOSE,10)>MA(CLOSE,20),估+1,估),COLOR6AFF;
文:IF(MA(CLOSE,20)>MA(CLOSE,60),界+1,界),COLORFF;
FILLRGN(CLOSE,0,文),COLORFF;
FILLRGN(CLOSE,0,界),COLOR6AFF;
FILLRGN(CLOSE,0,估),COLORFFAA00;
FILLRGN(CLOSE,0,坛),COLORGREEN;
FILLRGN(CLOSE,0,论),COLORFF00FF;
FILLRGN(CLOSE,0,想),COLOR999999;
FILLRGN(CLOSE,0,理),COLORWHITE;
估算:理+想+论+坛+估+界+文,LINETHICK,COLORFF00FF;
G2:=(REF(估算,1)<=2 AND 估算>=G1);
牛气:=IF(G2,1,0);
冲天:stICKLINE(牛气,0,6.8,5,0),COLORBAFF;
DRAWICON(牛气=1,7,8);
飞狐MACD背离二叉指标公式
v1:=ma(CLOSE,17)+Abs(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
v2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:IF(MA(CLOSE,17)
ma10:=MA(C,10),COLORWHITE,LINETHICK1;
ma30:MA(C,30),COLOR00ff00,LINETHICK2;
stickline(ma10>= REF(ma10,1),ma10,ref(ma10,1),8,1),COLORRED,LINETHICK2;
stickline(ma10< REF(ma10,1),ma10,ref(ma10,1),8,1),COLORff9900,LINETHICK2;
A1:=BArslAST(REF(crOSS("macddifF"(12,26,9),"MacD.DEA"(12,26,9)),1));
B1:=REF(C,A1+1)> C AND REF("MACD.DIFF"(12,26,9),A1+1)<"MACD.DIFF"(12,26,9)
AND CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9));
DRAWTEXT(B1> 0,L-0.02,'底背离'),COLOR00FFFF;{底
背离}C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIFF"(12,26,9)),1));
D1:=REF(C,C1+1)
"MACD.DIFF"(12,26,9));
DRAWTEXT(D1> 0,H+0.16,'顶背离'),COLOR00FF00;{顶背离}
Jm:=CROSS("Macd.DIFF"(12,26,9),"Macd.DEA"(12,26,9));
Jma:=CROSS("Macd.DEA"(12,26,9),"Macd.DIFF"(12,26,9));
Drawtext (Jm,l,'金叉'),colorwhite;{金叉}
Drawtext (Jma,h,'死叉'),coloryellow;{死叉}
JmCOUNT:=COUNT(Jm,BARSLAST("Macd.DEA"(12,26,9)>=0));
Jmtj:1*("Macd.DEA"(12,26,9)<0 and Count(JmCount=2,21)=1),linethick0;
JmaCOUNT:=COUNT(Jma,BARSLAST("Macd.DEA"(12,26,9)>=0));
Jmatj:1*("Macd.DEA"(12,26,9)>0 and Count(JmaCount=2,21)=1),linethick0;
Drawtext (Jmtj,l,'二次金叉'),colorwhite;{macd二次金叉}
Drawtext (Jmatj,h,'二次死叉'),colorwhite;{macd二次死叉}
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。