算法基本上是同macd一致,并考虑了成交量的变化。使用方法同macd。金叉买入参考。死叉卖出参考。背离买入等...
使用时请结合技术指标、成交量、大盘走势等多因素进行综合判断。
m:=10;
a:=vol*c;
b:=sum(a,1)/sum(vol,1);
b1:=ema(b,17);
资金:=(b-b1)*100/b;
diff:ema(资金,12)-ema(资金,26),coloryellow;
dea:ema(diff,9),colorligray;
mac: 2*(diff-dea), colorstick;
stickline(mac>=ref(mac,1)and mac>0,0,mac,3,0),color0000aa;
stickline(mac>=ref(mac,1)and mac>0,0,mac,2,0),color0000cc;
stickline(mac>=ref(mac,1)and mac>0,0,mac,1,0),color0000ee;
stickline(mac>=ref(mac,1)and mac>0,0,mac,0.1,0),color5555ff;
stickline(mac>=ref(mac,1)and mac>0,0,mac,0,0),color8080ff;
stickline(mac<ref(mac,1)and mac>0,0,mac,3,0),color770077;
stickline(mac<ref(mac,1)and mac>0,0,mac,2,0),color990099;
stickline(mac<ref(mac,1)and mac>0,0,mac,1,0),colorbb00bb;
stickline(mac<ref(mac,1)and mac>0,0,mac,0,0),colordd00dd;
stickline(mac<ref(mac,1)and mac>0,0,mac,0.1,0),colorff00ff;
stickline(mac>ref(mac,1)and mac<0,0,mac,3,0),colorff0000;
stickline(mac>ref(mac,1)and mac<0,0,mac,2,0),colorff5500;
stickline(mac>ref(mac,1)and mac<0,0,mac,1,0),colorff9900;
stickline(mac>ref(mac,1)and mac<0,0,mac,0,0),colorffff00;
stickline(mac<=ref(mac,1)and mac<0,0,mac,3,0),color155500;
stickline(mac<=ref(mac,1)and mac<0,0,mac,2,0),color208000;
stickline(mac<=ref(mac,1)and mac<0,0,mac,1,0),color2baa00;
stickline(mac<=ref(mac,1)and mac<0,0,mac,0.1,0),color35d500;
stickline(mac<=ref(mac,1)and mac<0,0,mac,0,0),color40ff00;
ema(diff,26),crossdot,colorff3333,linethick1;
a:=vol*close;
b:=sum(a,1)/sum(vol,1);
b1:=ema(b,17);
资金:=(b-b1)*100/b;
diff : ema(资金,10) - ema(资金,20);
dea : ema(diff,6);//www.goodgongshi.com
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;
上一指标公式:SKDJ大盘顶底强化版指标公式详解 同花顺强化SKDJ
下一指标公式:BDQP副图指标公式详解 同花顺BDQP
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文资金趋势副图指标公式详解 同花顺趋势仅供学习研究。