macd启动拉升指标公式
本指标由普通macd改编,加入了选股公式。
diff : ema(close,12) - ema(close,26),colorwhite;
dea : ema(diff,9),coloryellow;
macd:2*(diff-dea);
zero : 0;
gj:=max(c,o);
stickline(macd>0 and macd>=ref(macd,1),0,macd,1,0),color0000ff;
stickline(macd>0 and macd<ref(macd,1),0,macd,1,0),colorffff00;
stickline(macd<0 and macd>=ref(macd,1),0,macd,1,0),colorff00ff;
stickline(macd<0 and macd<ref(macd,1),0,macd,1,0),color00ff00;
drawgbk(macd>0 ,strip(rgb(0,0,255),rgb(140,0,80),0)),layer0;
pk:=cross(0,macd) and macd<0;
a1:=100*(ema(c,12)-ema(c,26))/ema(c,26);
a2:=ema(a1,9);
macd:=(a1-a2)*2;
xg:macd>0 and macd>ref(macd,1);
diff :=ema(close,12) - ema(close,26),colorwhite;
dea :=ema(diff,9),coloryellow;
macd:=2*(diff-dea);
zero :0;
gj:=max(c,o);
stickline(macd>0 and macd>=ref(macd,1),0,macd,10,0),color0000ff;
stickline(macd>0 and macd<ref(macd,1),0,macd,10,0),colorffff00;
stickline(macd<0 and macd>=ref(macd,1),0,macd,10,0),colorff00ff;
stickline(macd<0 and macd<ref(macd,1),0,macd,10,0),color00ff00;
var1=hhv(var1,20);
多转空:=((((llv(macd,4)>0) and (macd<ref(macd,1))) and (ref(macd,1)>ref(macd,2))) and (ref(macd,2)>ref(macd,3)));
空转多:=((((hhv(macd,4)<0) and (macd>ref(macd,1))) and (ref(macd,1)<ref(macd,2))) and (ref(macd,2)<ref(macd,3)));
drawicon(多转空,macd,2);
drawicon(空转多,macd,1);
var01:=ema((close-llv(low,25))/(hhv(high,25)-llv(low,25))*100,5);
var02:=(hhv(high,25)-llv(low,25))/ema((close-llv(low,25)),5);
var03:=cross(var02,var01);
var04:=ref(var02,2)<ref(var02,1) and var02<ref(var02,1);
var05:=count(var03,7)>0 and var04;
var05 and count(var05,5)=1;
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);//www.goodgongshi.com
macd:=2*(diff-dea);
选股:cross(macd>0,0.5);
lc:=ref(close,1);
rsi5:=((sma(max((close - lc),0),5,1) / sma(abs((close - lc)),5,1)) * 100);
tr1:=sum(max(max((high - low),abs((high - ref(close,1)))),abs((low - ref(close,1)))),10);
hd:=(high - ref(high,1));
ld:=(ref(low,1) - low);
dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);
pdi:=((dmp * 100) / tr1);
mdi:=((dmm * 100) / tr1);
adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);
av:=(rsi5 + adx);
dxr:=(((adx + ref(adx,5)) / 2) + rsi5);
wr10:=((100 * (hhv(high,10) - close)) / (hhv(high,10) - llv(low,10)));
newvol:=(rsi5 - wr10);
阶段底部:=(av + newvol);
出击:cross(阶段底部,0);
dif3:=ema(close,12)-ema(close,26);
dea3:=ema(dif3,9);
macd3 := 2*(dif3-dea3);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
止跌:macd3>ref(macd3,1) and ref(macd3,2)>=ref(macd3,1) and j<50 and c>ref(c,1) and c>o and j>ref(j,1);
低位金叉:=cross(diff,dea) and diff<-0.1;
stickline(低位金叉,dea*0.86,dea*0.66,6,0),coloryellow;
drawtext(低位金叉,dea*0.86,' 金叉'),coloryellow;
jccount:=count(cross(diff,dea),barslast(dea>=0));
二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)=1;
stickline(二次金叉,dea*0.96,dea*0.76,6,0),colorff00ff;
drawicon(二次金叉,dea*1.1,'buy') ;
drawtext(二次金叉,dea*0.96,' 金叉'),colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,dea*1.09,dea*0.86,6,0),color00ff00;
drawline(a1=0,dea,底背离,dea,0),colorred,linethick1;
drawtext(底背离,dea*1.09,' 底背'),color6600ff;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick1;
drawtext(顶背离,dea*1.2,' 顶背'),color00ff00;
上一指标公式:牛头KDJ指标公式详解 同花顺牛头
下一指标公式:建仓雷达机构版指标公式详解 同花顺建仓
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD启动拉升指标公式详解 同花顺启动MACD仅供学习研究。