您的位置:查股网 > 查股公式 > 狙击手MACD(通达信公式)[查股公式]
股票行情消息查询:
大盘云图

狙击手MACD(通达信公式)[查股公式]

2022/3/11 9:59:47
{公式名称: 狙击手MACD

公式描述: 
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式源码:}
VAR1:=MACD.MACD;
VAR2:=HHVBARS(VAR1,BARSLAST(VAR1<0)+1);
VAR3:=CROSS(BACKSET(CROSS(0,VAR1),REF(VAR2,1)+2),0.5);
VAR4:=CROSS(BACKSET(CROSS(0,VAR1) OR (ISLASTBAR AND VAR1>0),REF(VAR2,1)+2),0.5);
VAR5:=DRAWLINE(VAR3,VAR1,REF(VAR3,1),REF(VAR1,1),1);
STICKLINE(VAR1>0,0,VAR1,1.8,0),COLORAA00AA;
STICKLINE(VAR1<0,0,VAR1,1.8,0),COLORLICYAN;
VAR6:=LLVBARS(VAR1,BARSLAST(VAR1>0)+1);
VAR7:=CROSS(BACKSET(CROSS(VAR1,0),REF(VAR6,1)+2),0.5);
VAR8:=BARSLAST(FILTERX(CROSS(0,VAR1),BARSCOUNT(CLOSE)));
VAR9:=DRAWLINE(VAR7,VAR1,REF(VAR7,1),REF(VAR1,1),1);
STICKLINE(VAR1<0 AND VAR1<VAR9 AND VAR9<0,VAR1,VAR9,1,0),COLORBLUE;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;
DEA:EMA(DIF,9),COLORGREEN,LINETHICK2;
VAR10:=BARSLAST(REF(CROSS(DIF,DEA),1));
VAR11:=REF(CLOSE,VAR10+1)>CLOSE AND DIF>REF(DIF,VAR10+1) AND CROSS(DIF,DEA);
底背:DRAWLINE(VAR10=0,DEA,VAR11,DEA,0),COLORRED,LINETHICK2;
VAR12:=BARSLAST(REF(CROSS(DEA,DIF),1));
VAR13:=REF(CLOSE,VAR12+1)<CLOSE AND REF(DIF,VAR12+1)>DIF AND CROSS(DEA,DIF);
顶背:DRAWLINE(VAR12=0,DEA,VAR13,DEA,0),COLORBLUE,LINETHICK2;
MACD1:(DIF-DEA)*2,COLORSTICK,COLORLIBLUE;
VAR14:=COUNT(MACD1>0,30)=0 AND BARSCOUNT(MACD1=LLV(MACD1,30))>=15 AND DYNAINFO(4)>0 AND HHV(MACD1,5)>REF(MACD1,12) AND MACD1>REF(MACD1,1) AND (REF(MACD1,2)=LLV(MACD1,5) OR REF(MACD1,1)=LLV(MACD1,5)) AND REF(MACD1,1)>REF(MACD1,15);
DRAWICON(VAR14,VAR1*1.01,25);
{股民学院 整理}
DRAWTEXT(VAR14,0*0.1,3),COLORGREEN;
VAR15:=COUNT(MACD1>0,10)=0 AND BARSCOUNT(MACD1=LLV(MACD1,10))>=6 AND DYNAINFO(4)>0 AND HHV(MACD1,3)>REF(MACD1,7) AND MACD1>REF(MACD1,1) AND (REF(MACD1,2)=LLV(MACD1,5) OR REF(MACD1,1)=LLV(MACD1,5)) AND REF(MACD1,1)>REF(MACD1,7);
DRAWICON(VAR15,VAR1*1.01,26);
DRAWICON(VAR15,VAR1*1.01,26);
VAR16:=CROSS(DEA,0) AND DIF>0;
VAR17:=21;
VAR18:=FILTER(BACKSET(FILTER(REF(VAR1,VAR17)=HHV(VAR1,2*VAR17+1),VAR17),VAR17+1),VAR17);
TOP21:DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(VAR18))+1,VAR1,ISLASTBAR,REF(VAR1,BARSLAST(VAR18)),1),COLORGREEN;
VAR19:=CROSS(DEA,DIF) AND DEA>0 AND DIF>0;
VAR20:=CROSS(DIF,DEA) AND COUNT(VAR19=1,6)>=1 AND DIF>0 AND DEA<0.55 AND VAR1>REF(VAR1,2);
DRAWICON(VAR20,0-0.05,34);

相关文章列表
天天查股公式列表

股票公式分类

查股网:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红查询 股票评级报告
广告客服:315126368   843010021
天天查股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29