通达信【穿越时空】主图 指标源码




{K线图着重显示涨跌停}

BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));

XA_1:=IF(DATE<=1200823,1,0);

旧涨停:=(C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1;

旧跌停:=(C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1;

涨停:=C>=ZTPRICE(REF(C,1),BK) AND C=H;

跌停:=C<=DTPRICE(REF(C,1),BK) AND C=L;

曾涨停:=(H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1);

曾跌停:=(L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1);

STICKLINE(旧涨停 AND PERIOD=5,O,C,3,0),COLORFF83FA;

STICKLINE(旧跌停 AND PERIOD=5,O,C,3,0),COLORGREEN;

STICKLINE(涨停 AND PERIOD=5,C,O,3,0),COLORFF00FF;

STICKLINE(跌停 AND PERIOD=5,C,O,3,0),COLORGREEN;

STICKLINE(曾涨停 AND PERIOD=5,H,L,0,0),COLORYELLOW;{涨停后回落}

STICKLINE(曾跌停 AND PERIOD=5,L,H,0,0),COLORGREEN;{跌停后回升}

上线:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;

XA_2:=EMA((EMA(CLOSE,19)+EMA(CLOSE,20)+EMA(CLOSE,21))/3,3);

XA_3:=EMA(XA_2,3);{股票指标网http://}

XA_4:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3);

XA_5:=EMA(EMA(EMA(XA_4,1),2),3);

XA_6:=EMA((EMA(CLOSE,19)+EMA(CLOSE,20)+EMA(CLOSE,21))/3,3);

XA_7:=XA_6-(XA_4-XA_6);

下线:EMA(EMA(EMA(XA_7,1),2),3),COLORGREEN,LINETHICK2;

中线:(上线+下线)/2,DOTLINE,COLOR99EEEE;

XA_8:=150;

XA_9:=3;

XA_10:=REF(HHV(HIGH,XA_8),XA_9);

XA_11:=REF(LLV(LOW,XA_8),XA_9);

XA_12:=XA_10-(XA_10-XA_11)*0.886;

XA_13:=XA_10-(XA_10-XA_11)*0.946;

底二886:REFDATE(XA_12,DATE),DOTLINE,COLORFFCC00;

底一946:REFDATE(XA_13,DATE),COLORBLUE;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,GNBLOCK),COLORCYAN;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,EXTERNSTR(0,2)),COLORYELLOW;




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

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

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

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