通达信DK出击主图指标公式源码

MA1:MA(CLOSE,120)COLORYELLOW,DOTLINE;
MA2:MA(CLOSE,250)COLORMAGENTA,DOTLINE;
均线3:=MA(CLOSE,30),LINETHICK1;
均线2:=MA(CLOSE,20),LINETHICK0;
均线6:=MA(CLOSE,60);
均线12:=MA(CLOSE,120),COLORBLUE,LINETHICK1;
{买线:=MA(CLOSE,4);}
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0;
BU:=crOSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT (BU,LOW*0.989,'D'),COLORYELLOW,LINETHICK3;
DRAWTEXT(SEL,HIGH*1.0175,'K'),COLORWHITE,LINETHICK3;
STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000AA;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORAAAA00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00;
STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,5,0),COLORYELLOW;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,5,0),COLORWHITE;
AHC1:=CLOSE*vol;
AHC2:=EMA((expma(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13);
上轨:=1.06*AHC2;
顶:=1.13*AHC2;
ZT:=REF(C,1)*1.1-C< 0.01 AND H=C;
启爆:=CROSS(C,上轨) AND ZT;
DRAWTEXT(启爆,L*0.85,'启爆'),COLORYELLOW;
DRAWICON(启爆,L*0.90,24);
DRAWICON(启爆,L*0.92,25);
DRAWICON(启爆,L*0.94,26);
超牛:=CROSS(C,顶) AND ZT;
STICKLINE(超牛,O,C,2.5,0),COLORRED;
boll:=MA(C,20);
UPPER:=BOLL+2*STD(C,20);
LOWER:=BOLL-2*STD(C,20);
黑马:=CROSS(C,UPPER) AND C/REF(C,1)>1.05;
DRAWTEXT(黑马,L-1.15,'黑马'),COLORYELLOW;
N2:=60;
N1:=30;
BDDD:=C=LLV(C,2);
DDSJ:=BARSLAST(FILTER(CROSS(0.08,BDDD),N1))+1;
DRAWICON(DDSJ,L,1);
NA:=6;
mtm:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,NA),NA)/EMA(EMA(Abs(MTM),NA),NA);
买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);
DRAWICON(FILTER(卖1=1,1),H*1.06,2),COLORGREEN;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图