通达信欣喜分时主图源码 说明

1.设两条白色顶底线
2.设一条緑色顶部预警线
3.设洋红色柱状底部买入线
4.可以作为幅图使用
 

MA25:=EMA(CLOSE,25);
强弱:EMA(CLOSE,905);
IF(MA25>强弱,MA25,DRAWNULL),COLOR0000FF;
IF(MA25<强弱,MA25,DRAWNULL),COLOR00FF00;
STICKLINE((MA25 >强弱),MA25,强弱,0,0),COLOR0000FF;
STICKLINE((MA25 >强弱)AND MA25<REF(MA25,1),MA25,强弱,0,0),COLORYELLOW;
STICKLINE((MA25 >强弱)AND 强弱<REF(强弱,1),MA25,强弱,0,0),COLORCYAN;
STICKLINE((MA25 <强弱),MA25,强弱,0,0),COLOR00FF00;
STICKLINE((MA25 <强弱)AND MA25>REF(MA25,1),MA25,强弱,0,0),COLORCYAN;
STICKLINE((MA25 <强弱)AND 强弱>REF(强弱,1),MA25,强弱,0,0),COLORLIRED;
DRAWICON(CROSS(MA25,强弱),强弱*0.99,1);
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
T1:(L1+P1*8.5/9),COLORFFFFFF;
阻力:(L1+P1*7/9),COLOR00DD00;
Z:(L1+P1*4.5/9),COLOR000099,LINETHICK2;
B:(L1+P1*2.0/9),COLORYELLOW;
支撑:(L1+P1*0.5/9),COLORFFFFFF;
现价:=CLOSE,COLORWHITE;
STICKLINE(CROSS(支撑,现价),T1,支撑,2,0),COLORMAGENTA;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORFFFFFF;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★S'),COLORCYAN;{抛};
DRAWICON(CROSS(现价,T1),现价*0.999,8);
{DRAWTEXT(CROSS(现价,B),支撑,'买')COLORWHITE;}
STICKLINE(FILTER(C,60)>0,T1,支撑,0.5,0),COLORRED;{时间分割线};

XG:HHV(H,480),DOTLINE,COLORYELLOW;
T:=BARSCOUNT(C);
HHV(H,T),DOTLINE,COLOR00FFFF;
TP:= FILTER( C>=HHV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME>39600,240) ;
DRAWTEXT(TP,L,'★突破'),COLORRED;
STICKLINE(FILTER(CROSS(C,REF(XG,1)),10),C,HHV(O,T)*0.99,10,0),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(C,REF(XG,1)),10),HHV(O,T)*0.99,'上突 '),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,HHV(O,T)*0.9995,'上突必卖, 不破前高-买'),COLORYELLOW;
LLV(H,T),DOTLINE,COLORWHITE;
XG1:LLV(H,480),DOTLINE,COLORWHITE;
TP1:= FILTER(C>=LLV(H,T) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME>39600,240);
DRAWTEXT(TP,L,'★下破'),COLORRED;
STICKLINE(FILTER(CROSS(C,REF(XG1,1)),10),C*0.99,LLV(O,T),10,0),COLORWHITE;
DRAWTEXT(FILTER(CROSS(C,REF(XG1,1)),10),LLV(O,T)*0.992,'下破,'),COLORWHITE;
DRAWTEXT(ISLASTBAR=1,LLV(O,T),'下破, 不破前低-买'),COLORWHITE;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW,LINETHICK2;
DRAWNUMBER(ISLASTBAR,C,C),COLORFFFFFF;
XJ:=CONST(C),COLORFFFFFF,LINETHICK1;
中线:(XG+XG1)/2,LINETHICK2,COLORCYAN;
 




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

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

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