通达信主力决策副图源码分享




A1:=EMA(C,12)-EMA(C,25),NODRAW;

A2:=EMA(A1,6),NODRAW;

获利回吐:(A2>=0)*A2,COLORLIBLUE,LINETHICK1;

空头回补:(A2<0)*A2,COLORMAGENTA,LINETHICK1;

坚绝做空:(A1<0)*A1,COLORGREEN,LINETHICK1;

买入持股:(A1>=0)*A1,COLORRED,LINETHICK1;

STICKLINE(A2>=0,A2,0,3.2,0),COLORAAAAAA;

STICKLINE(A2>=0,A2,0,2.9,0),COLOR777777;

STICKLINE(A2>=0,A2,0,2.4,0),COLOR999999;

STICKLINE(A2>=0,A2,0,1.8,0),COLORBBBBBB;

STICKLINE(A2>=0,A2,0,1.1,0),COLORDDDDDD;

STICKLINE(A2>=0,A2,0,0.3,0),COLORFFFFFF;

STICKLINE(A2<0,A2,0,3.2,0),COLORFF5500;

STICKLINE(A2<0,A2,0,2.9,0),COLORYELLOW;

STICKLINE(A2<0,A2,0,2.4,0),COLORYELLOW;

STICKLINE(A2<0,A2,0,1.8,0),COLORYELLOW;

STICKLINE(A2<0,A2,0,1.1,0),COLORYELLOW;

STICKLINE(A2<0,A2,0,0.3,0),COLORYELLOW;

STICKLINE(A1<0,A1,0,3.2,0),COLORCC0066;

STICKLINE(A1<0,A1,0,2.9,0),COLOREE0066;

STICKLINE(A1<0,A1,0,1.8,0),COLORFF2266;

STICKLINE(A1<0,A1,0,1.1,0),COLORFF4466;

STICKLINE(A1<0,A1,0,0.3,0),COLORFF6666;

STICKLINE(A1>=0,A1,0,3.2,0),COLOR000055;

STICKLINE(A1>=0,A1,0,2.9,0),COLOR000077;

STICKLINE(A1>=0,A1,0,2.4,0),COLOR000099;

STICKLINE(A1>=0,A1,0,1.8,0),COLOR0000BB;

STICKLINE(A1>=0,A1,0,1.1,0),COLOR0000DD;

STICKLINE(A1>=0,A1,0,0.3,0),COLOR0000FF;

持股区域判断:=IF(获利回吐 > 0,1,0);

持股流出天数:=REF(COUNT(A1<A2,3),1) >=3;

持股强:=持股区域判断=1 AND 持股流出天数 AND A1>A2;

DRAWTEXT(持股强,买入持股*1.005,'多'),COLORMAGENTA,LINETHICK2;

回补区域判断:=IF(空头回补 < 0,1,0),NODRAW;

回补流出:=回补区域判断 AND ABS(A2)/ABS(A1)<2,NODRAW;

回补流程天数:=REF(COUNT(回补流出,3),1) >=3,NODRAW;

回补强:=回补流程天数 AND ABS(A2)/ABS(A1) >= 2;

DRAWTEXT(回补强,买入持股*1.005,'多'),COLORMAGENTA,LINETHICK2;

特殊区域强:=回补流程天数 AND REF(A1,1)<0 AND A1>0;

DRAWTEXT(特殊区域强,买入持股*1.005,'多'),COLORMAGENTA,LINETHICK2;

开始做空:REF(A1>A2,1) AND A2>A1,COLORBLUE,NODRAW;

开始做多:REF(A1<A2,1) AND A2<A1,COLORRED,NODRAW;

DRAWICON(开始做空,买入持股*1.005,2);

DRAWICON(开始做多,买入持股*1.005,1);



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

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

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

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