通达信【涨停支撑】主图指标 检测突破回踩 并实现有效突破的个股 源码

GHCZS1:=IF(1,(C/REF(C,1)-1)*100>9.5,0),NODRAW;
GHCZS2:=(REF(C,BARSLAST(GHCZS1))+REF(OPEN,BARSLAST(GHCZS1)))/2;
GHCZS3:=REF(C,1);
GHCZS4:=IF((GHCZS3-C)*100/GHCZS3>=10-0.01*100/GHCZS3,1,0);
STICKLINE(C,GHCZS2,REF(LOW,BARSLAST(GHCZS1)),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,C);
STICKLINE(GHCZS1,OPEN,CLOSE,2.6,0),COLOR0000E5;
STICKLINE(GHCZS1,OPEN,CLOSE,2.4,0),COLOR335555;
STICKLINE(GHCZS1,OPEN,CLOSE,1.8,0),COLOR338888;
STICKLINE(GHCZS1,OPEN,CLOSE,1.2,0),COLOR33AAAA;
STICKLINE(GHCZS1,OPEN,CLOSE,0.6,0),COLOR33CCCC;
STICKLINE(GHCZS1,OPEN,CLOSE,0.1,0),COLOR33EEEE;
STICKLINE(GHCZS4,OPEN,CLOSE,2.6,0),COLORE50000;
DRAWTEXT_FIX(1,0,0.07,0,'杨 春 荣 2 0 1 2 涨 停 支 撑 主 图'),COLORMAGENTA,LINETHICK4;
日线13:MA(C,13),COLORFFFFFF;IF(日线13>REF(日线13,1),日线13,DRAWNULL),COLORRED;
日线21:MA(C,21),COLOR00CCCC,LINETHICK2;
GHCZS5:=C>日线21 AND 日线13>REF(日线13,1) AND GHCZS4!=1;
GHCZS6:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
GHCZS7:=SMA(MAX(C-GHCZS3,0),2,1)/SMA(ABS(C-GHCZS3),2,1)*100;
GHCZS8:=SMA(MAX(C-GHCZS3,0),14,1)/SMA(ABS(C-GHCZS3),14,1)*100;
GHCZS9:=GHCZS7< 45 AND REF(GHCZS7,1)>45;GHCZS10:=GHCZS7< 20 AND REF(GHCZS7,1)>20;
GHCZS11:=COUNT(GHCZS1,13)>=1;GHCZS12:=SMA(LOW,4,3);GHCZS13:=GHCZS9 OR GHCZS10 AND GHCZS11;
GHCZS14:=REF(GHCZS9,1) OR REF(GHCZS10,1) AND LOW< MA(C,5) AND GHCZS11 AND GHCZS5 AND C>REF(LOW,BARSLAST(GHCZS1));
GHCZS15:=AMOUNT/VOL/100;STICKLINE(GHCZS13 AND NOT(GHCZS1),OPEN,C,2.4,0),COLOR550055;
STICKLINE(GHCZS13 AND NOT(GHCZS1),OPEN,C,1.8,0),COLOR880088;
STICKLINE(GHCZS13 AND NOT(GHCZS1),OPEN,C,1.2,0),COLORAA00AA;
STICKLINE(GHCZS13 AND NOT(GHCZS1),OPEN,C,0.6,0),COLORCC00CC;
STICKLINE(GHCZS13,OPEN,C,0.1,0),COLOREE00EE;
STICKLINE(GHCZS14 AND NOT(GHCZS1),OPEN,C,1.2,0),COLOR000088;
STICKLINE(GHCZS14 AND NOT(GHCZS1),OPEN,C,0.6,0),COLOR0000AA;
STICKLINE(GHCZS14 AND NOT(GHCZS1),OPEN,C,0.3,0),COLOR0000CC;
STICKLINE(GHCZS14,OPEN,C,0.1,0),COLOR0000EE;
STICKLINE(GHCZS14,GHCZS12*0.995,GHCZS12,5,0),COLOR00FF80;
DRAWICON(GHCZS14,LOW*0.98,23);
STICKLINE(CURRBARSCOUNT< 21 AND GHCZS1=1,GHCZS15,GHCZS15,2.5,0),COLOR00FFFF;
STICKLINE(C,GHCZS2,GHCZS2,2,0),COLOR0000FF;
STICKLINE(C,REF(LOW,BARSLAST(GHCZS1)),REF(LOW,BARSLAST(GHCZS1)),2,0),COLORCCCC00;



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


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

GHCZS1赋值:IF(1,(C/1日前的C-1)*100>9.5,0),NODRAW
GHCZS2赋值:(REF(C,上次GHCZS1距今天数)+REF(开盘价,上次GHCZS1距今天数))/2
GHCZS3赋值:1日前的C
GHCZS4赋值:IF((GHCZS3-C)*100/GHCZS3>=10-0.01*100/GHCZS3,1,0)
STICKLINE(C,GHCZS2,REF(最低价,上次GHCZS1距今天数),4,0),COLOR002828
DRAWKLINE(最高价,开盘价,最低价,C)
当满足条件GHCZS1时,在开盘价和收盘价之间画柱状线
当满足条件GHCZS1时,在开盘价和收盘价之间画柱状线
当满足条件GHCZS1时,在开盘价和收盘价之间画柱状线
当满足条件GHCZS1时,在开盘价和收盘价之间画柱状线
当满足条件GHCZS1时,在开盘价和收盘价之间画柱状线
当满足条件GHCZS1时,在开盘价和收盘价之间画柱状线
当满足条件GHCZS4时,在开盘价和收盘价之间画柱状线
当满足条件1时,在横轴0纵轴0.07位置书写文字
输出日线13:C的13日简单移动平均,COLORFFFFFF
IF(日线13>1日前的日线13,日线13,DRAWNULL),画红色
输出日线21:C的21日简单移动平均,COLOR00CCCC, 线宽为2
GHCZS5赋值:C>日线21 AND 日线13>1日前的日线13 AND GHCZS4!=1
GHCZS6赋值:(C的3日简单移动平均+C的6日简单移动平均+C的12日简单移动平均+C的24日简单移动平均)/4
GHCZS7赋值:SMA(C-GHCZS3和0较大值,2,1)/SMA(C-GHCZS3的绝对值,2,1)*100
GHCZS8赋值:SMA(C-GHCZS3和0较大值,14,1)/SMA(C-GHCZS3的绝对值,14,1)*100
GHCZS9赋值:GHCZS7< 45 AND 1日前的GHCZS7>45
GHCZS10:=GHCZS7< 20 AND 1日前的GHCZS7>20
GHCZS11:=统计13日满足GHCZS1的天数>=1
最低价的4日[3日权重]移动平均
GHCZS13:=GHCZS9 OR GHCZS10 AND GHCZS11
GHCZS14:=1日前的GHCZS9 OR 1日前的GHCZS10 AND 最低价< C的5日简单移动平均 AND GHCZS11 AND GHCZS5 AND C>REF(最低价,上次GHCZS1距今天数)
GHCZS15:=成交额/成交量/100
STICKLINE(GHCZS13 AND NOT(GHCZS1),开盘价,C,2.4,0),COLOR550055
STICKLINE(GHCZS13 AND NOT(GHCZS1),开盘价,C,1.8,0),COLOR880088
STICKLINE(GHCZS13 AND NOT(GHCZS1),开盘价,C,1.2,0),COLORAA00AA
STICKLINE(GHCZS13 AND NOT(GHCZS1),开盘价,C,0.6,0),COLORCC00CC
当满足条件GHCZS13时,在开盘价和C之间画柱状线
STICKLINE(GHCZS14 AND NOT(GHCZS1),开盘价,C,1.2,0),COLOR000088
STICKLINE(GHCZS14 AND NOT(GHCZS1),开盘价,C,0.6,0),COLOR0000AA
STICKLINE(GHCZS14 AND NOT(GHCZS1),开盘价,C,0.3,0),COLOR0000CC
当满足条件GHCZS14时,在开盘价和C之间画柱状线
当满足条件GHCZS14时,在GHCZS12*0.995和GHCZS12之间画柱状线
当满足条件GHCZS14时,在最低价*0.98和23之间画图标
当满足条件 到最后交易的周期< 21 AND GHCZS1=1时,在GHCZS15和GHCZS15之间画柱状线
当满足条件C时,在GHCZS2和GHCZS2之间画柱状线
STICKLINE(C,REF(最低价,上次GHCZS1距今天数),REF(最低价,上次GHCZS1距今天数),2,0),COLORCCCC00

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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