玖玺时间窗 主图 通达信 源码 贴图
A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
X1:=EMA(((VARA/10)+EMA(A,10)),3);Y1:=EMA(A,3);
Y2:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
X2:EMA(((SLOPE(C,22)*20)+C),55);
N1:=7;
VAR1:=REF(C,1);
VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000;
VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N1),VAR2,VAR2<=LLV(VAR2,N1),VAR2,1);
VAR4:=VAR2=VAR3;
VAR5:=VAR2<REF(VAR2,1);
RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VAR6:=(2*C+H+L)/4;
VAR7:=EMA(EMA(EMA(VAR6,4),4),4);
VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;
VAR9:=MA(VAR8,3)+0.03;
VAR10:=MA(VAR8,1);
KB:=EMA(C,3)-EMA(C,18);
DB:=EMA(KB,3);
AA:=BARSCOUNT(C);
AH:=HHV(H,120);
AL:=LLV(L,120);
A0:=(AH-AL)/30;
{股票指标网}
VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);
小股民:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(小股民,1)+0.333*小股民,2)*VAR3S;
STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,3.2,0),COLOR004400;
STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.7,0),COLOR006600;
STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.1,0),COLOR008800;
STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,1.5,0),COLOR00AA00;
STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.9,0),COLOR00CC00;
STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.3,0),COLOR00EE00;
STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,3.2,0),COLOR000055;
STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.7,0),COLOR000077;
STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.1,0),COLOR000099;
STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,1.5,0),COLOR0000BB;
STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.9,0),COLOR0000DD;
STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.3,0),COLOR0000FF;
STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,3.15,0),COLORAA1100;
STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,2.45,0),COLORAA3300;
STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.75,0),COLORAA5500;
STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.05,0),COLORAA7700;
STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,0.35,0),COLORAA9900;
STICKLINE(VAR4 AND VAR5,L,OPEN,3.15,0),COLOR1111FF;
STICKLINE(VAR4 AND VAR5,L,OPEN,2.45,0),COLOR3333FF;
STICKLINE(VAR4 AND VAR5,L,OPEN,1.75,0),COLOR5555FF;
STICKLINE(VAR4 AND VAR5,L,OPEN,1.05,0),COLOR7777FF;
STICKLINE(VAR4 AND VAR5,L,OPEN,0.35,0),COLOR9999FF;
STICKLINE(CROSS(小股民,庄家) AND 小股民<30,L,OPEN,3.15,0),COLOR770077;
STICKLINE(CROSS(小股民,庄家) AND 小股民<30,L,OPEN,2.45,0),COLOR990099;
STICKLINE(CROSS(小股民,庄家) AND 小股民<30,L,OPEN,1.75,0),COLORBB00BB;
STICKLINE(CROSS(小股民,庄家) AND 小股民<30,L,OPEN,1.05,0),COLORDD00DD;
STICKLINE(CROSS(小股民,庄家) AND 小股民<30,L,OPEN,0.35,0),COLORFF00FF;
STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,3.15,0),COLOR337777;
STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,2.45,0),COLOR339999;
STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.75,0),COLOR33BBBB;
STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.05,0),COLOR33DDDD;
STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,0.35,0),COLOR33FFFF;
STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L,OPEN,3.15,1),COLORFFFFFF;
DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*1.05,'变盘时间窗'),COLORFFFFFF;
DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1.03,' 离场'),COLORYELLOW;
DRAWTEXT(VAR4 AND VAR5,L*0.97,' 进场')COLORFFFFFF;
DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*0.96,'地量'),COLOR33FFFF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A赋值:AMOUNT/V/100
VARA赋值:EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5)
X1赋值:EMA(((VARA/10)+EMA(A,10)),3)
Y1赋值:A的3日指数移动平均
Y2赋值:(C+0.618*1日前的C+0.382*2日前的C+0.236*3日前的C+0.146*4日前的C)/2.382
输出X2:EMA(((SLOPE(C,22)*20)+C),55)
N1赋值:7
VAR1:=1日前的C
VAR2:=SMA(C-VAR1和0较大值,N1,1)/SMA(C-VAR1的绝对值,N1,1)*1000
VAR3:=DRAWLINE(VAR2>=N1日内VAR2最高值,VAR2,VAR2<=N1日内VAR2最低值,VAR2,1)
VAR4:=VAR2=VAR3
VAR5:=VAR2<1日前的VAR2
RSV赋值:(C-25日内L最低值)/(25日内最高价最高值-25日内L最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
VAR6:=(2*C+H+L)/4
VAR7:=VAR6的4日指数移动平均,4),4)
VAR8:=(VAR7-1日前的VAR7)/1日前的VAR7*100
VAR9:=VAR8的3日简单移动平均+0.03
VAR10:=VAR8的1日简单移动平均
KB:=C的3日指数移动平均-C的18日指数移动平均
DB:=KB的3日指数移动平均
AA赋值:C的有效数据周期数
AH:=120日内H最高值
AL:=120日内L最低值
A0:=(AH-AL)/30
{股票指标网}
VAR2S:=(2*收盘价+最高价+最低价)/4
如果YEAR>=2099 AND MONTH>2返回0否则返回1
VAR4S:=5日内最低价最低值
VAR5S:=4日内最高价最高值
小股民赋值:EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S
庄家赋值:E0.667*1日前的小股民+0.333*小股民的2日简单移动平均*VAR3S
STICKLINE(KB
STICKLINE(KB
STICKLINE(KB
STICKLINE(KB
STICKLINE(KB
STICKLINE(KB
STICKLINE(KB>DB AND DB>1日前的DB,C,开盘价,3.2,0),COLOR000055
STICKLINE(KB>DB AND DB>1日前的DB,C,开盘价,2.7,0),COLOR000077
STICKLINE(KB>DB AND DB>1日前的DB,C,开盘价,2.1,0),COLOR000099
STICKLINE(KB>DB AND DB>1日前的DB,C,开盘价,1.5,0),COLOR0000BB
STICKLINE(KB>DB AND DB>1日前的DB,C,开盘价,0.9,0),COLOR0000DD
STICKLINE(KB>DB AND DB>1日前的DB,C,开盘价,0.3,0),COLOR0000FF
STICKLINE(VAR9上穿VAR10 AND J>65,H,开盘价,3.15,0),COLORAA1100
STICKLINE(VAR9上穿VAR10 AND J>65,H,开盘价,2.45,0),COLORAA3300
STICKLINE(VAR9上穿VAR10 AND J>65,H,开盘价,1.75,0),COLORAA5500
STICKLINE(VAR9上穿VAR10 AND J>65,H,开盘价,1.05,0),COLORAA7700
STICKLINE(VAR9上穿VAR10 AND J>65,H,开盘价,0.35,0),COLORAA9900
当满足条件VAR4 AND VAR5时,在L和开盘价之间画柱状线
当满足条件VAR4 AND VAR5时,在L和开盘价之间画柱状线
当满足条件VAR4 AND VAR5时,在L和开盘价之间画柱状线
当满足条件VAR4 AND VAR5时,在L和开盘价之间画柱状线
当满足条件VAR4 AND VAR5时,在L和开盘价之间画柱状线
STICKLINE(小股民上穿庄家 AND 小股民<30,L,开盘价,3.15,0),COLOR770077
STICKLINE(小股民上穿庄家 AND 小股民<30,L,开盘价,2.45,0),COLOR990099
STICKLINE(小股民上穿庄家 AND 小股民<30,L,开盘价,1.75,0),COLORBB00BB
STICKLINE(小股民上穿庄家 AND 小股民<30,L,开盘价,1.05,0),COLORDD00DD
STICKLINE(小股民上穿庄家 AND 小股民<30,L,开盘价,0.35,0),COLORFF00FF
STICKLINE(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L,开盘价,3.15,0),COLOR337777
STICKLINE(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L,开盘价,2.45,0),COLOR339999
STICKLINE(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L,开盘价,1.75,0),COLOR33BBBB
STICKLINE(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L,开盘价,1.05,0),COLOR33DDDD
STICKLINE(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L,开盘价,0.35,0),COLOR33FFFF
STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L,开盘价,3.15,1),COLORFFFFFF
DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*1.05,'变盘时间窗'),COLORFFFFFF
DRAWTEXT(VAR9上穿VAR10 AND J>65,H*1.03,' 离场'),画黄色
当满足条件VAR4 AND VAR5时,在L*0.97和' 进场'位置书写文字
DRAWTEXT(0.9上穿1/成交量*1000>0.01 AND "KDJ.J"<0,L*0.96,'地量'),COLOR33FFFF