成本线限时通达信公式 副图 源码附图

XS:=1;
{涨停};
ZT:=C/REF(C,1)>1.096 AND C=H;
STICKLINE(ZT,O,C,2,0),COLORYELLOW;
{跌停};
DT:=C/REF(C,1)<0.913 AND C=L;
STICKLINE(DT,O,C,2,0),COLORGREEN;
{均价压力支撑};
CBX:=(EMA(C,5)+EMA(C,10)+EMA(C,20)+EMA(C,30)+EMA(C,60))/5;
成本线:EMA(CBX,5)*XS,COLORMAGENTA,LINETHICK2;
BB05:=ATAN((成本线/REF(成本线,1)-1)*100)*180/3.1416; 
IF(BB05>30 AND 成本线>REF(成本线,1),成本线,DRAWNULL)*XS,LINETHICK2,COLORRED; 
IF(BB05<0 AND 成本线<REF(成本线,1), 成本线,DRAWNULL)*XS,LINETHICK2,COLORGREEN; 
压1:EMA(HHV(HIGH,10),5)*XS,COLORBLUE,DOTLINE;
压2:EMA(HHV(C,10),5)*XS,COLORBLUE;
撑1:EMA(LLV(C,10),5)*XS,COLORYELLOW;
撑2:EMA(LLV(LOW,10),5)*XS,COLORYELLOW,DOTLINE;  
{现价画直线}
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3),DOTLINE,COLORLIGRAY;
{所属板块};
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0.78,0,STRCAT(Z3,GNBLOCK)),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.85,0,FGBLOCK),COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,0.90,0,EXTERNSTR(0,3)),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.95,0,EXTERNSTR(0,6)),COLORLIBLUE;
DRAWTEXT_FIX(ISLASTBAR,0,100,0,EXTERNSTR(0,12)),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0,100,0,EXTERNSTR(0,1)),COLORYELLOW;
 
 
DRAWTEXT_FIX(ISLASTBAR,0.02,1-0.05,0,STRCAT(STRCAT('流通市值:',CON2STR((FINANCE(40)/100000000),2)),'亿')),COLORWHITE;
成交额:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2),'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(1,0.26,1-0.05,0,成交额),COLORF4E202;
DRAWTEXT_FIX(ISLASTBAR,0.36,1-0.05,0,STRCAT('换手率: ', CON2STR(DYNAINFO(37)*100,2))),COLORGREEN;
 
{筹码};
庄筹线:=EMA(WINNER(C)*81,5)*XS;
散筹线:=EMA((WINNER(C*1.1)-WINNER(C*0.91))*72,3)*XS; 
DRAWICON(庄筹线<REF(庄筹线,1),HIGH*1.0088,2);
DRAWICON(庄筹线>REF(庄筹线,1),LOW*1,1);
 



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

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

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