由抢劫macd和持股线流量观察两个指标合成,有未来函数,仅供参考。
short:=6;
long:=13;
mid:=4;
hj_1:=ema(close,short)-ema(close,long);
hj_2:=ema(hj_1,mid);
hj_3:=2*(hj_1-hj_2);
hj_4:=if(hj_3>0,1,(-1));
hj_5:=ref(hj_4,1);
hj_6:=hj_4*hj_5;
hj_7:=barslast(hj_6<0);
hj_8:=hj_7+1;
hj_9:=(sum(hj_3,0)-ref(sum(hj_3,0),hj_8))/10;
hj_10:=if(hj_3>0 and hj_3>=ref(hj_3,1),hj_3,0);
hj_11:=if(hj_3>0 and hj_3<=ref(hj_3,1),hj_3,0);
hj_12:=if(hj_3<0 and hj_3<ref(hj_3,1),hj_3,0);
hj_13:=if(hj_3<0 and hj_3>ref(hj_3,1),hj_3,0);
stickline(hj_10>0,0,hj_3,2,0),color0000bb;
stickline(hj_11>0,0,hj_3,2,1),color0000bb;
stickline(hj_12<0,hj_3,0,2,0),colorgreen;
stickline(hj_13<0,hj_3,0,2,1),colorgreen;
快线:hj_1,colorwhite;
慢线:hj_2,coloryellow;
乖离:hj_3*100,nodraw;
面积:=hj_9,nodraw;
hj_14:=cross(hj_1,hj_2) and hj_1<(-0.01);
drawicon(hj_14,hj_2*1.02,36);
hj_15:=count(cross(hj_1,hj_2),barslast(hj_2>=0));
hj_16:=cross(hj_1,hj_2) and hj_2<0 and count(hj_15=2,21)=1;
drawicon(hj_16,hj_2*1.12,1);
hj_17:=barslast(ref(cross(hj_1,hj_2),1));
hj_18:=ref(close,hj_17+1)>close and hj_1>ref(hj_1,hj_17+1) and cross(hj_1,hj_2);
a1:=ref(c,1);
a2:=dclose;
a3:=(a2-a1)/a1*100;
aa1:=(a3-ref(a3,1));
aa2:=9.8;
选股1:=cross(aa1,aa2);
a11:=ref(v,1);
a12:=dvol;
a13:=a12/a11;
aa3:=(a13-ref(a13,1));
aa4:=500;
选股2:=cross(aa3,aa4);
抢劫:选股1 and 选股2;
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
组合买: (var11+var13+var15+var17), , colorred;
v10:=peakbars(3,15,1)<10; v12:=if(v10=1,50,0);
头部:= if(v12=50,100,0);
卖:if(头部>ref(头部,1),1.3,0),colorgreen,linethick2;drawtext(卖,1.4,'高顶出货 '),colorgreen;
v9:=troughbars(3,15,1)<10; v11:=if(v9=1,50,0);
底部:= if(v11=50,50,0);
买:if( 底部>ref(底部,1),1.1,0),colorlimagenta,linethick2; drawtext(买,1.2,'主力抄底 '),colorlimagenta;
总亿:amount/100000000,colorff00ff,nodraw;
var1:=amount/((high-low)*2-abs(close-open));
流入亿:if(close>open,var1*(high-low),if(close<open,var1*((high-open)+(close-low)),amount/2))/100000000,colorred,nodraw;
流出亿:if(close>open,0-var1*((high-close)+(open-low)),if(close<open,0-var1*(high-low),0-amount/2))/100000000,colorwhite,nodraw;
额亿:流入亿+流出亿,colorffff00,nodraw;
{线:=ma(close,1)-ma(close,6),nodraw;}
yuwei:=ma(close,1)-ma(close,6),nodraw;
f1:=zig(3,16);
vertline(f1<ref(f1,1),2),coloraa8800;
m5:=ema(c,5);
m10:=ema(c,10);
m20:=ema(c,20);
zf:=(h-l)/ref(c,1)*100;
v1:=c>m5 and m5>m10 and m10>m20 and c>ref(c,1) and m5>ref(m5,1)
and m10>ref(m10,1) and m20>ref(m20,1) and c/o>1.03 and (h-c)/c<0.02;
v2:=v>ref(v,1)*1.3 ;
v3:=v/ref(ma(v,5),1)*2>=4;
v4:=v/ref(ma(v,5),1)*2<=15;
大60度且5日线:=atan((ma(c,5)/ref(ma(c,5),1)-1)*100)*180/3.14159>60;
开始拉升:=zf>10 and v1 and v2 and v3 and 大60度且5日线 and v4 and zf5,colorgreen,nodraw;
stickline(开始拉升>0 and 开始拉升>=ref(开始拉升,1),0,开始拉升,8,0),colorgreen;
drawtext(开始拉升,1.3,"将要拉升"),colorgreen;
n1:=12;n2:=26;m:=9;
cc:=(c+l+h+o)/4;
diff:=ema(cc,5)-ema(cc,13),colorbb00bb,linethick2;
dea:=ema(diff,4),color00bb00,linethick2;
macd:=xma((diff-dea)*200,2),colorstick;
红柱持股:macd,nodraw;
黄色高抛:macd,nodraw;
蓝柱持币:macd,nodraw;
紫色反弹:macd,nodraw;
stickline(macd<ref(macd,1)and macd>0,0,macd,6,0 ),color003333;
stickline(macd<ref(macd,1)and macd>0,0,macd,3.5,0 ),color004444;
stickline(macd<ref(macd,1)and macd>0,0,macd,3,0 ),color005555;
stickline(macd<ref(macd,1)and macd>0,0,macd,2.5,0 ),color007777;
stickline(macd<ref(macd,1)and macd>0,0,macd,2,0 ),color009999;
stickline(macd<ref(macd,1)and macd>0,0,macd,1.5,0 ),color00bbbb;
stickline(macd<ref(macd,1)and macd>0,0,macd,1,0 ),color00dddd;
stickline(macd<ref(macd,1)and macd>0,0,macd,0.5,0 ),color00ffff;
stickline(macd>=ref(macd,1)and macd>0,0,macd,6 ,0 ),color000033;
stickline(macd>=ref(macd,1)and macd>0,0,macd,3.5 ,0 ),color000044;
stickline(macd>=ref(macd,1)and macd>0,0,macd,3 ,0 ),color000055;
stickline(macd>=ref(macd,1)and macd>0,0,macd,2.5 ,0 ),color000077;
stickline(macd>=ref(macd,1)and macd>0,0,macd,2 ,0 ),color000099;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1.5 ,0 ),color0000bb;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1 ,0 ),color0000db;
stickline(macd>=ref(macd,1)and macd>0,0,macd,0.5 ,0 ),color0000ff;
stickline(macd>ref(macd,1)and macd<0,0,macd,6,0 ),colorff00ca;
stickline(macd>ref(macd,1)and macd<0,0,macd,3.5,0 ),colorff00cc;
stickline(macd>ref(macd,1)and macd<0,0,macd,3,0 ),colorff00db;
stickline(macd>ref(macd,1)and macd<0,0,macd,2.5,0 ),colorff00dd;
stickline(macd>ref(macd,1)and macd<0,0,macd,2,0 ),colorff00df;
stickline(macd>ref(macd,1)and macd<0,0,macd,1.5,0 ),colorff00ee;
stickline(macd>ref(macd,1)and macd<0,0,macd,1,0 ),colorff00ef;
stickline(macd>ref(macd,1)and macd<0,0,macd,0.5,0 ),colorff00ff;
stickline(macd<=ref(macd,1)and macd<0,0,macd,6,0 ),color333300;
stickline(macd<=ref(macd,1)and macd<0,0,macd,3.5,0 ),color444400;
stickline(macd<=ref(macd,1)and macd<0,0,macd,3,0 ),color555500;
stickline(macd<=ref(macd,1)and macd<0,0,macd,2.5,0 ),color777700;
stickline(macd<=ref(macd,1)and macd<0,0,macd,2,0 ),color999900;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1.5,0 ),colorbbbb00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1,0 ),colordddd00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,0.5,0 ),colorffff00;
dif:=(ema(close,12)-ema(close,26))*100;
deaa:=ema(dif,9);
rsv:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;
k:=sma(rsv,2,1);
d:=sma(k,2,1);
j:=3*k-2*d;
主流资金:=(ema(100*(c-llv(low,34))/(hhv(h,34)-llv(low,34)),3))/100, colorred,linethick2;
非主流资金:=(ema(100*(indexc-llv(indexl,34))/(hhv(indexh,34)-llv(indexl,34)),3))/100,colorgreen,linethick2;
kj共振:cross(dif,deaa) and cross(k,d) and 主流资金>非主流资金;
drawtext(kj共振,红柱持股,'b'),colorgreen;
四连阳:every(红柱持股>ref(红柱持股,1),4),nodraw;
last((h-l)/ref(c,1)<0.1,20,0) and vol>ref(vol,1)*2 and c>ref(c,1)*1.03
and "dmi.pdi">"dmi.mdi" and cross("dmi.adx","dmi.adxr")
and"dmi.adxr">"dmi.mdi" and "dmi.pdi">"dmi.adx" and"kdj.d">ref("kdj.d",1);
上一指标公式:庖丁解牛丹香指标公式详解 同花顺庖丁解牛
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文未来MACD指标公式详解 同花顺未来MACD仅供学习研究。