通达信【机构神器】副图参考指标 电脑版 源码附图

VAR1:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
VAR2:=SUM(IF(CLOSE=REF(CLOSE,1),0,VAR1),0);
VAR3:=EMA(VAR2,3)-MA(VAR2,9);
VAR4:=EMA(IF(VAR3>0,VAR3,0),3);
VAR5:=MA(CLOSE,3);
VAR6:=12;
VAR7:=26;
VAR8:=9;
DIF:EMA(CLOSE,VAR6)-EMA(CLOSE,VAR7),COLORYELLOW;
DEA:EMA(DIF,VAR8),COLORFF9900;
VAR9:=(DIF-DEA)*2;
STICKLINE(VAR4>REF(VAR4,1) AND VAR5>REF(VAR5,1),0,VAR9,2,0),COLORYELLOW;
持股:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
空仓:IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2;
牛熊分界线:0,COLORCYAN;
VAR14:=CROSS(DIF,DEA) AND DIF<(-0.1);
STICKLINE(VAR14,0,0.08,2,0),COLORMAGENTA;
DRAWTEXT(VAR14,(-0.8),40),COLORWHITE;
VAR15:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
VAR16:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(VAR15=2,21)=1;
STICKLINE(VAR16,0,0.06,2,0),COLORFFCC00;
DRAWICON(VAR16,DEA*0.8,13);
DRAWTEXT(VAR16,DEA*1,41),COLORYELLOW;
VAR17:=BARSLAST(REF(CROSS(DIF,DEA),1));
VAR18:=REF(CLOSE,VAR17+1)>CLOSE AND DIF>REF(DIF,VAR17+1) AND CROSS(DIF,DEA);
STICKLINE(VAR18,0,0.03,2,0),COLORYELLOW;
DRAWTEXT(VAR18,0.12,34),COLORMAGENTA;
VAR19:=BARSLAST(REF(CROSS(DEA,DIF),1));
VAR20:=REF(CLOSE,VAR19+1)<CLOSE AND REF(DIF,VAR19+1)>DIF AND CROSS(DEA,DIF);
DRAWTEXT(VAR14 AND VAR16 AND VAR18,0.25,42),COLORRED,LINETHICK2;
VAR21:=MACD.DIF#WEEK(12,26,9);
VAR22:=MACD.DEA#WEEK(12,26,9);
VAR23:=MACD.MACD#WEEK(12,26,9);
VAR24:=CROSS(VAR21,VAR22);
DRAWTEXT(VAR24,(-0.5),43),COLORYELLOW;
DRAWTEXT(CROSS(VAR22,VAR21),0,44),COLORGREEN;
VAR25:=CROSS(VAR23,VAR21) AND VAR23>=0-0.05 AND VAR23<=0.02;



未来函数检测结果如下:
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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