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





Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK);

Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;

DRAWBAND(MA(CLOSE,60),RGB(250,0,0),MA(CLOSE,120),RGB(0,250,0));

NE:=IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1);

涨停:=C/REF(C,1)-1>=NE-0.01/REF(C,1) AND C=H AND PERIOD=5;

跌停:=REF(C,1)/C-1>=NE-0.01/REF(C,1) AND L=C AND PERIOD=5;

STICKLINE(涨停,O,C,2,0),COLORMAGENTA;

STICKLINE(跌停,O,C,2,0),COLORBLUE;

{曾涨跌停 K线变色}

曾涨停:=H/REF(C,1)-1>=NE-0.01/REF(C,1) AND C<H AND PERIOD=5;

STICKLINE(曾涨停,H-(H-MAX(O,C)),H,0,0),COLORFF00B5;

曾跌停:=REF(C,1)/L-1>=NE-0.01/REF(C,1) AND L<C AND PERIOD=5;

STICKLINE(曾跌停,L+(MIN(O,C)-L),L,0,0),COLOR00BB00;

{涨跌停开盘 K线变色}

涨停开盘:=O/REF(C,1)-1>=NE-0.01/REF(C,1) AND O=H AND PERIOD=5;{阴阳线的十分之一变色}

STICKLINE(涨停开盘,C+(O-C)*0.9,O,-1,0),COLORFF00F5;

跌停开盘:=REF(C,1)/O-1>=NE-0.01/REF(C,1) AND L=O AND PERIOD=5;

STICKLINE(跌停开盘,C-(C-O)*0.9,O,-1,0),COLOR00FF00;

DRAWTEXT(涨停 AND PERIOD=5,H*1.015,'涨'), COLORFF00FF;

DRAWTEXT(跌停 AND PERIOD=5,H*1.015,'跌'),COLORGREEN;

DRAWTEXT(曾涨停 AND PERIOD=5,H+0.2,'炸'),COLORGREEN;

DRAWTEXT(曾跌停 AND PERIOD=5,L-0.1,'撬'),COLORYELLOW;

DRAWKLINE(H,O,L,C);

X_1:=REF(HIGH,1)=HHV(HIGH,25);

X_2:=CROSS(X_1,0.99);

X_3:=REF(LOW,1)=LLV(LOW,25);

X_4:=CROSS(X_3,0.99);

X_5:=SUMBARS(X_4,1);

STICKLINE(X_5,REF(CLOSE,X_5+1),REF(CLOSE,X_5+1),2,0),COLORCYAN;

X_6:=SUMBARS(X_2,1);

STICKLINE(X_6,REF(CLOSE,X_6+1),REF(CLOSE,X_6+1),2,0),COLORYELLOW;

X_7:=(CLOSE+HIGH+LOW)/3;

X_8:=EMA(X_7,10);

X_9:=REF(X_8,1);

STICKLINE(X_8>X_9,X_8,X_9,2,0),COLORYELLOW;

STICKLINE(X_8<X_9,X_8,X_9,2,0),COLORLIBLUE;

X_10:=MA(CLOSE,5);

X_11:=MA(CLOSE,10);

X_12:=MA(CLOSE,20);

X_13:=MA(CLOSE,60);

X_14:=MA(CLOSE,120);

X_15:=MA(CLOSE,250);

KK:EMA(CLOSE,500),COLORMAGENTA,LINETHICK3;

IF(KK>=REF(KK,1),KK,DRAWNULL),COLORRED,LINETHICK3;

IF(KK<=REF(KK,1),KK,DRAWNULL),COLORGREEN,LINETHICK3;

X_16:=FILTER(OPEN/X_8<1.06 AND OPEN/X_12<1.1 AND X_13<X_14 AND OPEN/X_13<1.15 AND CLOSE>REF(CLOSE,X_5+1) AND OPEN/REF(CLOSE,X_5+1)<1.09 AND OPEN/X_14<1.25 AND CLOSE>REF(CLOSE,1)*1.04,30);

STICKLINE(X_16,CLOSE,OPEN,2,0),COLORMAGENTA;

X_17:=FILTER(OPEN/X_8<1.06 AND OPEN/X_12<1.1 AND X_13>X_14 AND OPEN/X_13<1.15 AND CLOSE>REF(CLOSE,X_6+1) AND OPEN/REF(CLOSE,X_6+1)<1.09 AND OPEN/X_14<1.25 AND CLOSE>REF(CLOSE,1)*1.04,30);

STICKLINE(X_17,CLOSE,OPEN,2,0),COLORBLUE;

X_18:=FILTER(OPEN/X_8<1.06 AND OPEN/X_12<1.1 AND X_13>X_14 AND OPEN/X_13<1.15 AND CLOSE>REF(CLOSE,X_5+1) AND OPEN/REF(CLOSE,X_5+1)<1.09 AND OPEN/X_14<1.25 AND CLOSE>REF(CLOSE,1)*1.04,30);

STICKLINE(X_18,CLOSE,OPEN,2,0),COLORYELLOW;

X_19:=FILTER(OPEN/X_8<1.06 AND OPEN/X_12<1.1 AND X_13<X_14 AND OPEN/X_13<1.15 AND CLOSE>REF(CLOSE,X_6+1) AND OPEN/REF(CLOSE,X_6+1)<1.09 AND OPEN/X_14<1.25 AND CLOSE>REF(CLOSE,1)*1.04,30);

STICKLINE(X_19,CLOSE,OPEN,2,0),COLORRED;

STICKLINE(X_17,LOW-0.46,LOW-0.65,3.8,0),COLOR111111;

STICKLINE(X_17,LOW-0.44,LOW-0.65,3.6,0),COLOR222222;

STICKLINE(X_17,LOW-0.42,LOW-0.65,3.4,0),COLOR333333;

STICKLINE(X_17,LOW-0.4,LOW-0.65,3.2,0),COLOR444444;

STICKLINE(X_17,LOW-0.38,LOW-0.65,3,0),COLOR555555;

STICKLINE(X_17,LOW-0.36,LOW-0.65,2.8,0),COLOR666666;

STICKLINE(X_17,LOW-0.34,LOW-0.65,2.6,0),COLOR777777;

STICKLINE(X_17,LOW-0.32,LOW-0.65,2.4,0),COLOR888888;

STICKLINE(X_17,LOW-0.3,LOW-0.65,2.2,0),COLOR999999;

STICKLINE(X_17,LOW-0.28,LOW-0.55,2,0),COLOR000033;

STICKLINE(X_17,LOW-0.26,LOW-0.55,1.8,0),COLOR000044;

STICKLINE(X_17,LOW-0.24,LOW-0.55,1.6,0),COLOR000055;

STICKLINE(X_17,LOW-0.22,LOW-0.55,1.4,0),COLOR000066;

STICKLINE(X_17,LOW-0.2,LOW-0.55,1.2,0),COLOR000077;

STICKLINE(X_17,LOW-0.18,LOW-0.55,1,0),COLOR000088;

STICKLINE(X_17,LOW-0.16,LOW-0.55,0.8,0),COLOR000099;

STICKLINE(X_17,LOW-0.14,LOW-0.55,0.6,0),COLOR0000BB;

STICKLINE(X_17,LOW-0.12,LOW-0.55,0.4,0),COLOR0000DD;

STICKLINE(X_17,LOW-0.1,LOW-0.55,0.2,0),COLORGREEN;

STICKLINE(X_17,LOW-0.48,LOW-0.3,2,0),COLORFF1100;

STICKLINE(X_17,LOW-0.48,LOW-0.3,1.8,0),COLORFF2200;

STICKLINE(X_17,LOW-0.48,LOW-0.3,1.6,0),COLORFF3300;

STICKLINE(X_17,LOW-0.48,LOW-0.3,1.4,0),COLORFF4400;

STICKLINE(X_17,LOW-0.48,LOW-0.3,1.2,0),COLORFF5500;

STICKLINE(X_17,LOW-0.48,LOW-0.3,1,0),COLORFF6600;

STICKLINE(X_17,LOW-0.48,LOW-0.3,0.8,0),COLORFF7700;

STICKLINE(X_17,LOW-0.48,LOW-0.3,0.6,0),COLORFF8800;

STICKLINE(X_17,LOW-0.48,LOW-0.3,0.4,0),COLORFF9900;

STICKLINE(X_17,LOW-0.48,LOW-0.3,0.2,0),COLORFFAA00;

STICKLINE(X_17,LOW-0.38,LOW-0.3,2,0),COLOR0033AA;

STICKLINE(X_17,LOW-0.38,LOW-0.3,1.8,0),COLOR0044AA;

STICKLINE(X_17,LOW-0.38,LOW-0.3,1.6,0),COLOR0055AA;

STICKLINE(X_17,LOW-0.38,LOW-0.3,1.4,0),COLOR0066BB;

STICKLINE(X_17,LOW-0.38,LOW-0.3,1.2,0),COLOR0077CC;

STICKLINE(X_17,LOW-0.38,LOW-0.3,1,0),COLOR0088DD;

STICKLINE(X_17,LOW-0.38,LOW-0.3,0.8,0),COLOR0099EE;

STICKLINE(X_17,LOW-0.38,LOW-0.3,0.6,0),COLOR00AAFF;

STICKLINE(X_17,LOW-0.38,LOW-0.3,0.4,0),COLOR00CCFF;

STICKLINE(X_17,LOW-0.38,LOW-0.3,0.2,0),COLORGREEN;

STICKLINE(X_17,LOW-0.62,LOW-0.73,4,0),COLOR001133;

STICKLINE(X_17,LOW-0.6,LOW-0.72,3.6,0),COLOR002255;

STICKLINE(X_17,LOW-0.58,LOW-0.71,3.2,0),COLOR002288;

STICKLINE(X_17,LOW-0.56,LOW-0.7,2.8,0),COLOR0033AA;

STICKLINE(X_17,LOW-0.54,LOW-0.69,2.4,0),COLOR0044CC;

STICKLINE(X_17,LOW-0.54,LOW-0.68,2,0),COLOR0055EE;


原理解析:
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),画黄色
DRAWBAND(收盘价的60日简单移动平均,RGB(250,0,0),收盘价的120日简单移动平均,RGB(0,250,0))
NE赋值:IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1)
涨停赋值:C/1日前的C-1>=NE-0.01/1日前的C AND C=H AND PERIOD=5
跌停赋值:1日前的C/C-1>=NE-0.01/1日前的C AND L=C AND PERIOD=5
当满足条件涨停时,在O和C之间画柱状线
当满足条件跌停时,在O和C之间画柱状线
{曾涨跌停 K线变色}曾涨停赋值:H/1日前的C-1>=NE-0.01/1日前的C AND CSTICKLINE(曾涨停,H-(H-O和C较大值),H,0,0),COLORFF00B5
曾跌停赋值:1日前的C/L-1>=NE-0.01/1日前的C AND LSTICKLINE(曾跌停,L+(O和C的较小值-L),L,0,0),COLOR00BB00
{涨跌停开盘 K线变色}涨停开盘:=O/1日前的C-1>=NE-0.01/1日前的C AND O=H AND PERIOD=5
{阴阳线的十分之一变色}STICKLINE(涨停开盘,C+(O-C)*0.9,O,-1,0),COLORFF00F5
跌停开盘:=1日前的C/O-1>=NE-0.01/1日前的C AND L=O AND PERIOD=5
STICKLINE(跌停开盘,C-(C-O)*0.9,O,-1,0),COLOR00FF00
当满足条件涨停 AND PERIOD=5时,在H*1.015和'涨'位置书写文字
当满足条件跌停 AND PERIOD=5时,在H*1.015和'跌'位置书写文字
当满足条件曾涨停 AND PERIOD=5时,在H+0.2和'炸'位置书写文字
当满足条件曾跌停 AND PERIOD=5时,在L-0.1和'撬'位置书写文字
DRAWKLINE(H,O,L,C)
X_1赋值:1日前的最高价=25日内最高价最高值
X_2赋值:X_1上穿0.99
X_3赋值:1日前的最低价=25日内最低价最低值
X_4赋值:X_3上穿0.99
X_5赋值:X_4累加至1的天数
STICKLINE(X_5,X_5+1日前的收盘价,X_5+1日前的收盘价,2,0),画青色
X_6赋值:X_2累加至1的天数
STICKLINE(X_6,X_6+1日前的收盘价,X_6+1日前的收盘价,2,0),画黄色
X_7赋值:(收盘价+最高价+最低价)/3
X_8赋值:X_7的10日指数移动平均
X_9赋值:1日前的X_8
当满足条件X_8>X_9时,在X_8和X_9之间画柱状线
当满足条件X_8X_10:=收盘价的5日简单移动平均
X_11:=收盘价的10日简单移动平均
X_12:=收盘价的20日简单移动平均
X_13:=收盘价的60日简单移动平均
X_14:=收盘价的120日简单移动平均
X_15:=收盘价的250日简单移动平均
输出KK:收盘价的500日指数移动平均,画洋红色,LINETHICK3
IF(KK>=1日前的KK,KK,DRAWNULL),画红色,LINETHICK3
IF(KK<=1日前的KK,KK,DRAWNULL),画绿色,LINETHICK3
X_16:=FILTER(开盘价/X_8<1.06 AND 开盘价/X_12<1.1 AND X_13X_5+1日前的收盘价 AND 开盘价/X_5+1日前的收盘价<1.09 AND 开盘价/X_14<1.25 AND 收盘价>1日前的收盘价*1.04,30)
当满足条件X_16时,在收盘价和开盘价之间画柱状线
X_17:=FILTER(开盘价/X_8<1.06 AND 开盘价/X_12<1.1 AND X_13>X_14 AND 开盘价/X_13<1.15 AND 收盘价>X_6+1日前的收盘价 AND 开盘价/X_6+1日前的收盘价<1.09 AND 开盘价/X_14<1.25 AND 收盘价>1日前的收盘价*1.04,30)
当满足条件X_17时,在收盘价和开盘价之间画柱状线
X_18:=FILTER(开盘价/X_8<1.06 AND 开盘价/X_12<1.1 AND X_13>X_14 AND 开盘价/X_13<1.15 AND 收盘价>X_5+1日前的收盘价 AND 开盘价/X_5+1日前的收盘价<1.09 AND 开盘价/X_14<1.25 AND 收盘价>1日前的收盘价*1.04,30)
当满足条件X_18时,在收盘价和开盘价之间画柱状线
X_19:=FILTER(开盘价/X_8<1.06 AND 开盘价/X_12<1.1 AND X_13X_6+1日前的收盘价 AND 开盘价/X_6+1日前的收盘价<1.09 AND 开盘价/X_14<1.25 AND 收盘价>1日前的收盘价*1.04,30)
当满足条件X_19时,在收盘价和开盘价之间画柱状线
当满足条件X_17时,在最低价-0.46和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.44和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.42和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.4和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.36和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.34和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.32和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.3和最低价-0.65之间画柱状线
当满足条件X_17时,在最低价-0.28和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.26和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.24和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.22和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.2和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.18和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.16和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.14和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.12和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.1和最低价-0.55之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.48和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.38和最低价-0.3之间画柱状线
当满足条件X_17时,在最低价-0.62和最低价-0.73之间画柱状线
当满足条件X_17时,在最低价-0.6和最低价-0.72之间画柱状线
当满足条件X_17时,在最低价-0.58和最低价-0.71之间画柱状线
当满足条件X_17时,在最低价-0.56和最低价-0.7之间画柱状线
当满足条件X_17时,在最低价-0.54和最低价-0.69之间画柱状线
当满足条件X_17时,在最低价-0.54和最低价-0.68之间画柱状线

声明:本站所有资源,均为用户自主上传,仅作为学习交流之用,其版权归原作者或原出版社所有,本站不对所涉及的版权问题负法律责任。如有侵权,请联系我们删除!