通达信杀庄回马主图指标 可以用来看个股是否有效突破 源码分享 附图
ZBVAR3:=IF(1,(C/REF(C,1)-1)*100>9.5,0),NODRAW;
最后涨停距今数:BARSLAST(ZBVAR3),NODRAW,COLOR00CCCC;
ZBVAR4:=(REF(C,BARSLAST(ZBVAR3))+REF(OPEN,BARSLAST(ZBVAR3)))/2;
STICKLINE(C,ZBVAR4,REF(LOW,BARSLAST(ZBVAR3)),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,C);
STICKLINE(ZBVAR3,OPEN,C,2.6,0),COLOR0000E5;
STICKLINE(ZBVAR3,OPEN,C,2.4,0),COLOR335555;
STICKLINE(ZBVAR3,OPEN,C,1.8,0),COLOR338888;
STICKLINE(ZBVAR3,OPEN,C,1.2,0),COLOR33AAAA;
STICKLINE(ZBVAR3,OPEN,C,0.6,0),COLOR33CCCC;
STICKLINE(ZBVAR3,OPEN,C,0.1,0),COLOR33EEEE;
ZBVAR5:=REF(C,1);
ZBVAR6:=IF((ZBVAR5-C)*100/ZBVAR5>=10-0.01*100/ZBVAR5,1,0);
STICKLINE(ZBVAR6,OPEN,C,2.6,0),COLORE50000;
MA13:MA(C,13),COLORCYAN;
IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
MA21:MA(C,21),COLOR00CCCC,LINETHICK2;
ZBVAR7:=C>MA21 AND MA13>REF(MA13,1) AND ZBVAR6!=1;
ZBVAR8:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
ZBVAR9:=REF(C,1);
ZBVAR10:=SMA(MAX(C-ZBVAR9,0),2,1)/SMA(ABS(C-ZBVAR9),2,1)*100;
ZBVAR11:=SMA(MAX(C-ZBVAR9,0),14,1)/SMA(ABS(C-ZBVAR9),14,1)*100;
ZBVAR12:=45;
ZBVAR13:=80;
ZBVAR14:=20;
ZBVAR15:=5;
ZBVAR16:=ZBVAR10< ZBVAR12 AND REF(ZBVAR10,1)>ZBVAR12;
ZBVAR17:=ZBVAR10< ZBVAR14 AND REF(ZBVAR10,1)>ZBVAR14;
ZBVAR18:=COUNT(ZBVAR3,13)>=1;
ZBVAR19:=SMA(LOW,4,3);
ZBVAR20:=ZBVAR16 OR ZBVAR17 AND ZBVAR18;
ZBVAR21:=REF(ZBVAR16,1) OR REF(ZBVAR17,1) AND LOW< MA(C,5) AND ZBVAR18 AND ZBVAR7 AND C>REF(LOW,BARSLAST(ZBVAR3));
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,2.4,0),COLOR550055;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,1.8,0),COLOR880088;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,1.2,0),COLORAA00AA;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,0.6,0),COLORCC00CC;
STICKLINE(ZBVAR20,OPEN,C,0.1,0),COLOREE00EE;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,1.2,0),COLOR000088;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,0.6,0),COLOR0000AA;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,0.3,0),COLOR0000CC;
STICKLINE(ZBVAR21,OPEN,C,0.1,0),COLOR0000EE;
STICKLINE(ZBVAR21,ZBVAR19*0.995,ZBVAR19,5,0),COLORGREEN;
DRAWICON(ZBVAR21,LOW*0.98,1);
ZBVAR22:=AMOUNT/VOL/100;
ZBVAR23:=REF(C,1);
STICKLINE(CURRBARSCOUNT< 21 AND ZBVAR3=1,ZBVAR22,ZBVAR22,2.5,0),COLORYELLOW;
STICKLINE(C,ZBVAR4,ZBVAR4,2,0),COLORRED;
STICKLINE(C,REF(LOW,BARSLAST(ZBVAR3)),REF(LOW,BARSLAST(ZBVAR3)),2,0),COLORCCCC00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
ZBVAR3赋值:IF(1,(C/1日前的C-1)*100>9.5,0),NODRAW
输出最后涨停距今数:上次ZBVAR3距今天数,NODRAW,COLOR00CCCC
ZBVAR4赋值:(REF(C,上次ZBVAR3距今天数)+REF(开盘价,上次ZBVAR3距今天数))/2
STICKLINE(C,ZBVAR4,REF(最低价,上次ZBVAR3距今天数),4,0),COLOR002828
DRAWKLINE(最高价,开盘价,最低价,C)
当满足条件ZBVAR3时,在开盘价和C之间画柱状线
当满足条件ZBVAR3时,在开盘价和C之间画柱状线
当满足条件ZBVAR3时,在开盘价和C之间画柱状线
当满足条件ZBVAR3时,在开盘价和C之间画柱状线
当满足条件ZBVAR3时,在开盘价和C之间画柱状线
当满足条件ZBVAR3时,在开盘价和C之间画柱状线
ZBVAR5赋值:1日前的C
ZBVAR6赋值:IF((ZBVAR5-C)*100/ZBVAR5>=10-0.01*100/ZBVAR5,1,0)
当满足条件ZBVAR6时,在开盘价和C之间画柱状线
输出MA13:C的13日简单移动平均,画青色
IF(MA13>1日前的MA13,MA13,DRAWNULL),画红色
输出MA21:C的21日简单移动平均,COLOR00CCCC, 线宽为2
ZBVAR7赋值:C>MA21 AND MA13>1日前的MA13 AND ZBVAR6!=1
ZBVAR8赋值:(C的3日简单移动平均+C的6日简单移动平均+C的12日简单移动平均+C的24日简单移动平均)/4
ZBVAR9赋值:1日前的C
ZBVAR10赋值:SMA(C-ZBVAR9和0较大值,2,1)/SMA(C-ZBVAR9的绝对值,2,1)*100
ZBVAR11赋值:SMA(C-ZBVAR9和0较大值,14,1)/SMA(C-ZBVAR9的绝对值,14,1)*100
ZBVAR12赋值:45
ZBVAR13赋值:80
ZBVAR14赋值:20
ZBVAR15赋值:5
ZBVAR16赋值:ZBVAR10< ZBVAR12 AND 1日前的ZBVAR10>ZBVAR12
ZBVAR17赋值:ZBVAR10< ZBVAR14 AND 1日前的ZBVAR10>ZBVAR14
ZBVAR18赋值:统计13日满足ZBVAR3的天数>=1
最低价的4日[3日权重]移动平均
ZBVAR20赋值:ZBVAR16 OR ZBVAR17 AND ZBVAR18
ZBVAR21赋值:1日前的ZBVAR16 OR 1日前的ZBVAR17 AND 最低价< C的5日简单移动平均 AND ZBVAR18 AND ZBVAR7 AND C>REF(最低价,上次ZBVAR3距今天数)
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),开盘价,C,2.4,0),COLOR550055
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),开盘价,C,1.8,0),COLOR880088
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),开盘价,C,1.2,0),COLORAA00AA
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),开盘价,C,0.6,0),COLORCC00CC
当满足条件ZBVAR20时,在开盘价和C之间画柱状线
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),开盘价,C,1.2,0),COLOR000088
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),开盘价,C,0.6,0),COLOR0000AA
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),开盘价,C,0.3,0),COLOR0000CC
当满足条件ZBVAR21时,在开盘价和C之间画柱状线
当满足条件ZBVAR21时,在ZBVAR19*0.995和ZBVAR19之间画柱状线
当满足条件ZBVAR21时,在最低价*0.98和1之间画图标
ZBVAR22赋值:成交额/成交量/100
ZBVAR23赋值:1日前的C
当满足条件 到最后交易的周期< 21 AND ZBVAR3=1时,在ZBVAR22和ZBVAR22之间画柱状线
当满足条件C时,在ZBVAR4和ZBVAR4之间画柱状线
STICKLINE(C,REF(最低价,上次ZBVAR3距今天数),REF(最低价,上次ZBVAR3距今天数),2,0),COLORCCCC00