通达信顺势主图,源码分享指标公式


Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5);
MA21:MA(CLOSE,21);
MA34:MA(CLOSE,34),COLORMAGENTA;
MA60:MA(CLOSE,55);
AABC1:=(MA(CLOSE,1)+MA(CLOSE,1)+MA(CLOSE,1)+MA(CLOSE,1))/4;
AABC2:=MA(CLOSE,1);
AABC3:=SMA(SMA(SMA(AABC2,2,1),2,1),2,1);
AABC4:=MA(AABC3,2);
DRAWICON(FILTER(CROSS(AABC1,AABC4),1) AND CLOSE/REF(CLOSE,1)>1.05,LOW,1);
STICKLINE(FILTER(CROSS(AABC1,AABC4),1) AND CLOSE/REF(CLOSE,1),C,O,2,0),COLORMAGENTA;
高阳:IF(CURRBARSCOUNT<=CONST(REF(BARSLAST(FILTER(TOPRANGE(V)>=20 AND C>=O AND C>=REF(C,1),1)),1)+1)+1,CONST(REF(REF(C,BARSLAST(FILTER(TOPRANGE(V)>=20 AND C>=O AND C>=REF(C,1),1))),REF(BARSLAST(TOPRANGE(V)>=20 AND C>=O AND C>=REF(C,1)),1)+1)),DRAWNULL),COLORYELLOW,LINETHICK1;
高阴:IF(CURRBARSCOUNT<=CONST(REF(BARSLAST(TOPRANGE(V)>=20 AND C< O AND L<=REF(H,1)),1)+1)+1,CONST(REF(REF(O,BARSLAST(FILTER(TOPRANGE(V)>=20 AND C< O AND L<=REF(H,1),3))),REF(BARSLAST(TOPRANGE(V)>=20 AND C< O AND L<=REF(H,1)),1)+1)),DRAWNULL),COLORLIGREEN ,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=10,高阳,STRCAT('',CON2STR(高阳,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,高阴,STRCAT('',CON2STR(高阴,2))),COLORLIGREEN;
D:=72;
ABC3:=100-3*SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
ABC4:=100-3*SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
LX:=ABC3,COLORWHITE,LINETHICK2;
ABC24:=EMA(AMOUNT/VOL/100,5);
ABC25:=EMA(AMOUNT/VOL/100,13);
ABC26:=ABC24-ABC25;
CX:=IF(1000*ABC26/ABC24>0,1000*ABC26/ABC24,0),COLORFF44FF,LINETHICK0;
KK:=CROSS(CX,LX);
ABC1:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;
ABC2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,13)-LLV(LOW,13))*100;
做多:=SMA(ABC2,8,1)-2;
做空:=SMA(ABC1,6,1)-7,NODRAW;
STICKLINE(CROSS(做多,LX),C,O,2,0),COLORYELLOW;
资金:=STICKLINE(CROSS(做多,LX),C,O,2,0),COLORYELLOW;
DRAWICON(资金,L*1.01,9);
ZT:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
ZT1:=BARSLAST(ZT);
涨停距今:=ZT1,NODRAW,COLORWHITE;
DRAWTEXT(ZT1=1,H*1.02,'1'),COLORYELLOW;
DRAWTEXT(ZT1=2,H*1.02,'2'),COLORYELLOW;
DRAWTEXT(ZT1=3,H*1.02,'3'),COLORYELLOW;
DRAWTEXT(ZT1=6,H*1.02,'6'),COLORYELLOW;
DRAWTEXT(ZT1=9,H*1.02,'9'),COLORYELLOW;
DRAWTEXT(ZT1=13,H*1.02,'13'),COLORYELLOW;
DRAWICON(CROSS(CX,LX),C*0.85,11);
STICKLINE(CROSS(CX,LX),C,O,2,0),COLORLIRED ;



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

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

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

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