高级天一主图通达信指标 主图 源码 测试图

动态止损度:=5;
黑:=0;
离L:=0;
提示:=0;
布林M:=0;
MMA:=0;
五:MA(CLOSE,5),LINETHICK2,COLORWHITE;
十:MA(CLOSE,10),COLOR00FFFF;
M18:=MA(CLOSE,60),COLORRED;
离基:=五;
离O:=离基*1.20,COLOR555555;
离A:离基*1.15,LINETHICK2,COLORMAGENTA;
离B:离基*1.10,LINETHICK2,COLORLIBLUE;
离C:离基*0.90,LINETHICK2,COLORGREEN;
离D:=离基*0.85,COLOR333333;
EXP50:=EXPMA(CLOSE,50),COLORGREEN;
MA25:MA(CLOSE,25),LINETHICK2,COLORRED;
MA60:MA(CLOSE,60),COLORBLUE;
β0:=(H-L)/2+L,LINETHICK0;
α:=β0,LINETHICK0;
β:=REF(β0,1),LINETHICK0,COLORGREEN;
γ:=REF(β0,2),LINETHICK0,COLORMAGENTA;
高:PLOYLINE(1,CONST(HHV(H,50))),COLOR770077,LINETHICK1;
低:=PLOYLINE(1,CONST(LLV(L,50))),COLOR777700,LINETHICK1;
中:=PLOYLINE(1,(高-低)/2+低),COLOR005555,LINETHICK4;
止损价:=CONST(HHV(C,5)*(100-动态止损度)/100);
止:PLOYLINE(CONST(C)<=止损价,止损价),COLOR888800,LINETHICK4;
DRAWTEXT(DYNAINFO(7)<=止损价 AND ISLASTBAR,止损价*1.05,'止损');
MA1:=MA(CLOSE,5),COLORRED;
C2:=REF(C,1);
AA:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(AA,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(AA,H,L,0,0),COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
DRAWICON(CROSS(MA1,MA2),MA1,1);
BA:=CLOSE/REF(C,1)>=1.09;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'当前版面共涨停       次'),COLORYELLOW;
DRAWTEXT_FIX(1,0.33,0,0,'所属板块'),COLORCYAN;
DRAWTEXT_FIX(1,0.39,0,0,HYBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(1,0.45,0,0,DYBLOCK),COLORGREEN;
DRAWTEXT_FIX(1,0.51,0,0,GNBLOCK),COLORYELLOW;
流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
DRAWTEXT_FIX(1,0.13,0,0,流通盘),COLORWHITE;
现价:PLOYLINE(1,CONST(C)),COLOR008888,LINETHICK1;
影线幅度:=2;
 上下影:=REF(H/MAX(C,O),1)>=(1+影线幅度/100) AND L/MIN(C,O)<=(1-影线幅度/100);
DRAWTEXT(上下影,L,'★上下影'),COLORFF00FF;
MA2:=MA(CLOSE,10),COLORYELLOW;
MA3:=MA(CLOSE,20),COLOR770077;
E50:=EXPMA(CLOSE,50),LINETHICK1,POINTDOT,COLORLIGREEN;
E100:=EXPMA(CLOSE,100),POINTDOT,COLORGRAY;
MA181:MA(C,181),COLORGRAY;
IF(CONST(α>β) AND DYNAINFO(7)>0,DYNAINFO(7),DRAWNULL),COLOR000088,LINETHICK1;
IF(CONST(α<=β)AND DYNAINFO(7)>0 ,DYNAINFO(7),DRAWNULL),COLOR008800,LINETHICK1;
IF(CONST(α>β) AND DYNAINFO(7)>0 AND DYNAINFO(7)>=高*0.99,DYNAINFO(7),DRAWNULL),COLOR000088,LINETHICK1;
IF(CONST(α<=β)AND DYNAINFO(7)>0 AND DYNAINFO(7)<=低*1.01 ,DYNAINFO(7),DRAWNULL),COLOR008800,LINETHICK1;
N1:=12;{,公式源码 HTTP://}
N2:=26;
N3:=9;
DIFF:=(EMA(CLOSE,N1) - EMA(CLOSE,N2));
DEA:=EMA(DIFF,N3);
MACD:=(2 * (DIFF - DEA));
MACD2:=MACD;
SARH:=CLOSE>SAR(4,2,20);
停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
B1:='┄┄┄┄┄┄┄┄┄┄';
DRAWTEXT(停,C*0.943,B1),COLOR1A7AFF;
B2:='┄┄┄┄┄';
DRAWTEXT(停,C*0.9714,B2),COLORGREEN;
五V:=MA(V,5);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
STICKLINE(C< MA3 AND 黑=1,H,L,0,0),COLOR555555;
STICKLINE(MA1< MA3 AND 黑=1,O,C,2.5,1),COLOR555555;
STICKLINE(BA AND C< MA3,O,C,2.7,1),COLORWHITE;
头上边:=MAX(O,C),NODRAW;
头下边:=MIN(O,C),NODRAW;
垂头:=ABS(O-C),NODRAW;
长针:=(头下边-L),NODRAW;
垂:=长针/垂头>2 AND (H-头上边)<=长针 AND L< REF(L,1) AND O< REF(C,1),NODRAW;
DRAWTEXT(垂 AND L<=LLV(L,3) AND L< 离C AND 提示,L/1.01,'针') AND 提示,COLORGREEN,LINETHICK4;
DRAWTEXT(H>MA(CLOSE,5)*1.07 AND ISLASTBAR AND 提示,H*1.01,'离!'),COLORGREEN,LINETHICK2;
DRAWTEXT(L< MA(CLOSE,5)*1.005 AND L>MA(CLOSE,5) AND 提示=0 AND H< MA(CLOSE,5)*1.07 AND ISLASTBAR,L/1.02,'低吸'),COLORGREEN,LINETHICK2;
上5日:=REF(EVERY(C< MA1,2),1) AND CROSS(C,MA1);
STICKLINE(上5日,H,L,0,0),COLORFF00FF;
STICKLINE(上5日,O,C,2.7,0),COLORFF00FF;
DRAWICON(上5日,L,1);
破5日:=REF(EVERY(C>MA1,4),1) AND CROSS(MA1,C);
DRAWICON(破5日,H,2);






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

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

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