网站首页 > 通达信公式 > 通达信主副图指标 正文
通达信主趋势MACD副图源码
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN;
DEA:EMA(DIF,9),COLORBLUE;
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORRED,LINETHICK2;
STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),0,MACD,0.05,0),COLORLIBLUE,LINETHICK2;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,0.05,0),COLORFF00FF,LINETHICK2;
NH:=REF(DIF,3)>=REF(DIF,2) AND REF(DIF,2)>=REF(DIF,1) AND DIF>REF(DIF,1)*1.1;
NH1:=ABS((REF(DIF,1)-REF(DEA,1))/REF(DIF,1))<=0.2;
DT:=REF(DIF,2)>REF(DEA,2) AND REF(DIF,1)>=REF(DEA,1) AND DIF>DEA;
NLZ:=MACD>REF(MACD,1) AND DIF>0;
NLZ1:=MACD>REF(MACD,1) AND DIF<0;
将死不死1:=(NH1 AND NH AND DT AND NLZ);
将死不死0:=(NH1 AND NH AND DT AND NLZ1);
将死不死:将死不死1 OR 将死不死0,NODRAW;
DRAWICON(将死不死,DEA-0.01,38);
DRAWICON(将死不死,DEA-0.03,38);
DRAWICON(CROSS(DIF,DEA),DEA,9);
DRAWICON(CROSS(DEA,DIF),DIF,15);
AB1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,AB1+1)>CLOSE AND DIF>REF(DIF,AB1+1) AND CROSS(DIF,DEA);
DRAWLINE(AB1=0,DEA,底背离,DEA,0),COLORYELLOW,LINETHICK1;
AB2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,AB2+1)<CLOSE AND REF(DEA,AB2+1)>DEA AND CROSS(DEA,DIF);
DRAWLINE(AB2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK1;
DRAWTEXT(底背离>0,DEA,底背离),COLORYELLOW;
DRAWTEXT(顶背离>0,DEA,顶背离),COLORGREEN;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
SHORT:=12;LONG:=26;MID:=9;
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,2,0),COLORYELLOW;
{持币:STICKLINE((SAR(10,2,20)>=H),MACD,0,1.5,0),COLORGREEN;
持股:STICKLINE((SAR(10,2,20)<=L),0,MACD,1.5,0),COLORYELLOW;}
ZSC:=CROSS(DEA#WEEK,DIF#WEEK);
ZSC1:=CROSS(DEA,DIF);
PC:=IF(EXISTR(ZSC,7,1),0,1);
PC1:=IF(EXISTR(ZSC1,7,1),0,1);
Q1:=MACD<0 AND MACD>REF(MACD ,1) AND
REF(MACD ,1)<REF(MACD ,2) AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
SCL:=EXISTR(CROSS(DEA,DIF),9,1);
C1:=BARSLAST(REF(Q1,1));
C2:=REF(MACD,C1+1)<MACD AND Q1 AND DIF<0 ;
TJ:=MACD>0;T:=MACD<0;
A:=LLV(MACD,50)=MACD;
DRAWICON(A AND FILTERX(A,20), MACD,1);
DRAWTEXT(BARSLAST(TJ)=1,MACD,1),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD,2),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=3,MACD,3),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD,5),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD,8),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD,13),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD,21),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD,34),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD,55),COLORYELLOW;
DRAWTEXT(BARSLAST(T)=1,MACD,1),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD,2),COLORGREEN;
DRAWTEXT(BARSLAST(T)=3,MACD,3),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD,5),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD,8),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD,13),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD,21),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD,34),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD,55),COLORGREEN;
X_1:=(CLOSE-EMA(CLOSE,5))/EMA(CLOSE,5)*100;
X_2:=(CLOSE-EMA(CLOSE,10))/EMA(CLOSE,10)*100;
X_3:=(CLOSE-EMA(CLOSE,20))/EMA(CLOSE,20)*100;
X_4:=(CLOSE-EMA(CLOSE,60))/EMA(CLOSE,60)*100;
X_5:=(CLOSE-EMA(CLOSE,120))/EMA(CLOSE,120)*100;
X_6:=X_1>1 AND X_2>2 AND X_3>3 AND X_4>4;
X_7:=X_1>2 AND X_2>4 AND X_3>6 AND X_4>8;
X_8:=X_1>3 AND X_2>5 AND X_3>7 AND X_4>9;
X_9:=X_1>4 AND X_2>6 AND X_3>8 AND X_4>10 AND X_5>12;
X_10:=BARSLASTCOUNT(X_7)=1 AND CROSS(CLOSE,EMA(CLOSE,50)*1.19) AND HIGH/CLOSE<1.05;{指标众筹QQ 115534139}
小鱼:BARSLASTCOUNT(X_6),NODRAW,COLORWHITE;
红鱼:BARSLASTCOUNT(X_7),NODRAW,COLORRED;
紫鱼:BARSLASTCOUNT(X_8),NODRAW,COLORMAGENTA;
黄鱼:BARSLASTCOUNT(X_9),NODRAW,COLORYELLOW;
选股票看什么指标最好 >
更多精彩内容,请关注公众号:万物狙击
其他说明
1、在下载过程遇到问题,请您 联系客服:QQ:2180737354 或 微信1:bsqj88886或者备用微信:bsqj88887 ,我们会在第一时间修复和反馈。2、本站所提供的股票指标等资源仅供参考学习交流,没稳赚的指标,赢亏自负,如果觉着指标好用请支持正版,否则产生的一切后果将由下载用户自行承担,有部分股票指标资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来联系我们,我们会及时删除,给您带来的不便,我们深表歉意!
⇒⇒⇒点击加入通达信指标公式交流群QQ群
猜你喜欢
- 2024-09-07 【通达信指标】主板预警指标公式,主板盘中预警埋伏涨停板(副图+选股)
- 2024-09-06 爆涨强势通达信主力拉升洗盘结束指标公式
- 2024-09-06 相当准的通达信主力筹码建仓选股指标公式
- 2024-09-06 【通达信指标】金底反弹指标公式,吸筹信号、铁底信号、银底信号、金底信号,多信号提示(副图+选股)
- 2024-09-05 【通达信指标】宽松版N字涨停指标,很多妖股牛股起涨的常见N字形态(副图+选股)
- 2024-09-05 狂涨牛股版通达信主力吸筹完毕启动股票指标公式
- 2024-09-05 准到离普通达信主力建仓加仓拉升指标公式
- 2024-09-04 【通达信指标】低开进宝指标公式,精选竞价低开个股,潜伏吃大肉(副图+选股)
- 2024-09-03 【通达信指标】极品顶底指标公式,狙杀金牛躺着赢(副图+选股)
- 2024-09-02 【通达信指标】寻底共振指标公式,低买高卖如神助(副图+选股)
- 09-08*ST蓝光新增1条限制消费令信息
- 09-08中控技术(688777)2024年半年报点评:海外业务不断拓展 “AI+数据”核心竞争力继续夯实
- 09-08深度*公司*东芯股份(688110):1H24收入率先修复 “存算联”蓝图徐徐铺开
- 09-08国科军工(688543)2024年中报点评:1H24归母净利增长84%;在研项目充足长期成长性无虞
- 09-08柳工(000528):混改、电动化、国际化三重逻辑共振 国内装载机龙头迈向世界一流
- 09-08扬农化工(600486):业绩符合预期 静待行业拐点
- 09-08鱼跃医疗(002223):国内承压下增长具备韧性 海外市场不断打开成长空间
- 09-08豪鹏科技(001283)2024年半年度报告点评:盈利拐点已现 逐季向上修复