a:=vol*close;
b:=sum(a,1)/sum(vol,1);
b1:=ema(b,17);
资金:=(b-b1)*100/b;
diff : ema(资金,5) - ema(资金,34);
dea : ema(diff,9);
macd : 2*(diff-dea), colorstick;
stickline(macd>=0,macd,0,4,1),colorf00ff0;
stickline(macd<0,macd,0,3.1,1),colorwhite;
stickline(macd<ref(macd,1)and macd>0,0,macd,3,0 ),color00aaff;
stickline(macd<ref(macd,1)and macd>0,0,macd,2.2,0 ),color00bbff;
stickline(macd<ref(macd,1)and macd>0,0,macd,1.8,0 ),color00ccff;
stickline(macd<ref(macd,1)and macd>0,0,macd,1.3,0 ),color00ddff;
stickline(macd<ref(macd,1)and macd>0,0,macd,0.9,0 ),color00eeff;
stickline(macd<ref(macd,1)and macd>0,0,macd,0.5,0 ),color00ffff;
stickline(macd>=ref(macd,1)and macd>0,0,macd,4 ,0 ),color0000aa;
stickline(macd>=ref(macd,1)and macd>0,0,macd,3.3 ,0 ),color0011bb;
stickline(macd>=ref(macd,1)and macd>0,0,macd,2.2,0 ),color0022cc;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1.65 ,0 ),color0033dd;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1.1 ,0 ),color0044ee;
stickline(macd>=ref(macd,1)and macd>0,0,macd,0.55 ,0 ),color0055ff;
stickline(macd>ref(macd,1)and macd<0,0,macd,4,0 ),coloraa00bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,3.3 ,0 ),colorbb11bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,2.2,0 ),colorcc22bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,1.65,0 ),colordd33bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,1.1,0 ),coloree44bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,0.55 ,0 ),colorff55bb;
stickline(macd<=ref(macd,1)and macd<0,0,macd,4,0 ),colorffaa00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,3.3 ,0 ),colorffbb11;
stickline(macd<=ref(macd,1)and macd<0,0,macd,2.2,0 ),colorffcc22;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1.65 ,0 ),colorffdd33;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1.1 ,0 ),colorffee44;
stickline(macd<=ref(macd,1)and macd<0,0,macd,0.55 ,0 ),colorffff55;
if(diff<0,diff,0),colorred,linethick1;
if(diff<0,0,diff),coloryellow,linethick1;
if(diff<dea,diff,dea),color00ff00,linethick1;
if(diff>dea,dea,dea),colorwhite,linethick1;
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,0,-4.5,2,0),coloryellow;
drawtext(低位金叉,-4,' 低位金叉'),coloryellow;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,0,-2.5,5,0),colorff00ff;
drawicon(二次金叉,dea*1.2,11) ;
drawtext(二次金叉,-2,' 二次金叉'),colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,2.5,3,0),color00ff00;
drawline(a1=0,dea,底背离,dea,0),colorred,linethick2;
drawtext(底背离,2,' 底背离'),color00ff00;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
stickline(顶背离,0,4.5,3,0),colorffff00;
drawline(a2=0,dea,顶背离,dea,0),colorffff00,linethick2;
drawtext(顶背离,4,' 顶背离'),colorffff00;
【低位金叉】:
a:=vol*close;
b:=sum(a,1)/sum(vol,1);
b1:=ema(b,17);
资金:=(b-b1)*100/b;
diff:=ema(资金,5) - ema(资金,34);
dea:=ema(diff,9);
低位金叉:cross(diff,dea) and diff<-0.1;
【二次金叉】:
a:=vol*close;
b:=sum(a,1)/sum(vol,1);
b1:=ema(b,17);
资金:=(b-b1)*100/b;
diff:=ema(资金,5) - ema(资金,34);
dea:=ema(diff,9);
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
上一指标公式:薛斯通道-无意中得一高手研究了三年的智慧结晶指标详解 通达信斯通
下一指标公式:十战八胜主图指标详解 通达信通达信
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文金叉背离及选股指标详解 通达信公式选股仅供学习研究。