通达信波浪驱动副图指标 详细说明 源码 附图
{波浪驱动WM}
{ 参数填入: { 趋势N:(1,34,18); YMDF:(0,900000,131210); YMDF1:(0,900000,4790); YMDFZB:(0,900000,2065); }
趋势N:=18;
YMDF:=131210.00;
YMDF1:=4790.00;
YMDFZB:=2065.00;
VVR1:=(YEAR > 12);
VVR2:=(MONTH > 12);
VVR3:=(DAY > 25);
超跌幅度:=14;
NL:=80;
NS:=10;
HE:=1;
DD:=1;
VR1:=(1 + 0.00001);
SH:=1;
YH:=1;
MH:=1;
DH:=1;
HH:=1;
D0:=(HH = HE);
DN:=IF(D0,1,DRAWNULL);
VR2:=IF((HH = HE),1,0.001);
VM1:=VR1;
MID:=(((((3 * CLOSE) + LOW) + OPEN) + HIGH) / 6);
主力:=((((((((((((((((((((((20 * MID) + (19 * REF(MID,1))) + (18 * REF(MID,2))) + (17 * REF(MID,3))) + (16 * REF(MID,4))) + (15 * REF(MID,5))) + (14 * REF(MID,6))) + (13 * REF(MID,7))) + (12 * REF(MID,8))) + (11 * REF(MID,9))) + (10 * REF(MID,10))) + (9 * REF(MID,11))) + (8 * REF(MID,12))) + (7 * REF(MID,13))) + (6 * REF(MID,14))) + (5 * REF(MID,15))) + (4 * REF(MID,16))) + (3 * REF(MID,17))) + (2 * REF(MID,18))) + REF(MID,20)) / 210) * 1);
N0:=9;
M1:=3;
M2:=3;
RSV:=(((CLOSE - LLV(LOW,N0)) / (HHV(HIGH,N0) - LLV(LOW,N0))) * 100);
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=((3 * K) - (2 * D));
N3:=30;
M3:=30;
P1:=80;
P2:=100;
VAR1:=((((C + H) + O) + L) / 4);
趋势线:=EMA(CLOSE,17);
牛熊分界线:=EMA(CLOSE,50);
N1:=5;
VAR2:=(CLOSE * VOL);
VAR3:=EMA((((((EXPMA(VAR2,3) / EXPMA(VOL,3)) + (EXPMA(VAR2,6) / EXPMA(VOL,6))) + (EXPMA(VAR2,12) / EXPMA(VOL,12))) + (EXPMA(VAR2,24) / EXPMA(VOL,24))) / 4),14);
SUP:=(1.06 * VAR3);
SDN:=(VAR3 * 0.94);
VAR4:=EXPMA(CLOSE,9);
LUP:=EXPMA((VAR4 * (1 + (超跌幅度 / 100))),N1);
LDN:=EXPMA((VAR4 * (1 - (超跌幅度 / 100))),N1);
买入:=LDN;
卖出:=LUP;
幅度:=((100 * (卖出 - 买入)) / 买入);
M:=10;
N:=10;
LTZ:=(COUNT((C > O),NL) / NL);
SLZ:=((COUNT((C > O),NS) - COUNT((C < O),NS)) / 10);
Z1:=(((((主力 - LLV(主力,50)) / (HHV(主力,50) - LLV(主力,50))) * 20) + ((H / REF(主力,10)) * 20)) + ((LTZ * SLZ) * 20));
HVR1:=IF(((VR1 > 0.1) AND (HH = HE)),1,DRAWNULL);
Z2:=(((((MA(D,N) / M) + ((MA((K - REF(D,1)),5) / 2) / M)) * 5) * VR1) * HVR1);
ZL:=((MA((Z1 + Z2),2) * (VM1 - MOD(VR1,M))) * 100000);
ZLM:=MA(ZL,8);
能量涨:=IF((ZL > REF(ZLM,1)),ZLM,DRAWNULL);
STICKLINE((((ZL > ZLM) AND (ZL > 30)) AND (ZL > REF(ZL,1))),ZL,MAX(ZLM,30),1,0),COLORRED;
STICKLINE(((((ZL > ZLM) AND (ZL > 70)) AND (ZL < REF(ZL,1))) AND ((C / "DKX.DKX") > 1.05)),ZL,MAX(ZLM,30),1,0),COLORGREEN;
STICKLINE(((ZL > ZLM) AND (ZL < 30)),ZL,30,1,0),COLOR008080;
前浪:(ZL * HVR1),COLORRED;
后浪:(ZLM * HVR1),COLORMAGENTA;
趋势浪:MA(ZL,趋势N),DOTLINE,COLORRED;
介入:=30;
强势:=60;
超强:=80;
超跌:=IF((L < 买入),30,DRAWNULL);
STICKLINE(超跌,35,超跌,2,0),COLOR8000FF;
超卖关注:=IF(((EXIST((L < 买入),3) AND (前浪 < 45)) AND (前浪 > REF(前浪,1))),30,DRAWNULL);
超跌数:=COUNT((超跌 = 30),7);
小跌:=IF(((超跌数 = 3) AND (超跌 = 30)),45,DRAWNULL);
中跌:=IF(((超跌数 = 4) AND (超跌 = 30)),60,DRAWNULL);
大跌:=IF(((超跌数 = 5) AND (超跌 = 30)),75,DRAWNULL);
疯跌:=IF(((超跌数 > 5) AND (超跌 = 30)),(75 + ((超跌数 - 5) * 15)),DRAWNULL);
STICKLINE(小跌,小跌,30,2,0),COLORYELLOW;
STICKLINE(中跌,中跌,30,2,0),COLORCYAN;
STICKLINE(大跌,大跌,30,2,0),COLORRED;
STICKLINE(疯跌,疯跌,30,2,0),COLORMAGENTA;
金叉:=(CROSS(前浪,后浪) AND (后浪 < 40));
死叉:=(CROSS((-1 * 前浪),(-1 * 后浪)) AND (后浪 > 50));
DRAWICON(CROSS(后浪,30),30,34);
乌云来了:=EXIST(((((((C - REF(C,1)) / C) < 0.005) AND (HHV(VOL,5) = VOL)) AND (后浪 > 70)) AND (前浪 > 70)),1);
STICKLINE((乌云来了 AND (ZL > 30)),后浪,(后浪 - 10),1,0),COLORGREEN;
IF((趋势浪 > REF(趋势浪,1)),趋势浪,DRAWNULL),LINETHICK2,COLORRED;
CV:=CLOSE;
BBIBOLL:=((((MA(CV,3) + MA(CV,6)) + MA(CV,12)) + MA(CV,24)) / 4);
UPR:=IF(1,(BBIBOLL + (11 * STD(BBIBOLL,6))),DRAWNULL);
DWN:=IF(1,(BBIBOLL - (11 * STD(BBIBOLL,6))),DRAWNULL);
FD:=10;
底:=(FD * ((J > REF(J,1)) AND (J < 10)));
STICKLINE((底 = FD),20,22,1,0),COLOR8080FF;
买:(20 + (FD * (((DWN > REF(DWN,1)) AND (REF(DWN,1) < REF(DWN,2))) AND EXIST((底 = FD),3)))),COLORMAGENTA;
顶:=(100 - (FD * (J > 100)));
STICKLINE(((顶 = (100 - FD)) AND (前浪 > 50)),趋势浪,(趋势浪 - 1.5),1,0),COLOR40C040;
ZBXH:=5;
YMD:=YMDF;
YMD1:=YMDF1;
YMD2:=YMDF1;
YMD3:=YMDF1;
YMDZB:=YMDFZB;
YC:=MOD((YMD / 10000),100);
MC:=MOD((YMD / 100),100);
DC:=MOD(YMD,100);
Y1:=((((POW(YC,2) * 10) + (POW(MC,2) * 10)) + (POW(DC,2) * 1)) + ((YC * MC) * DC));
Y2:=((((20000 + (POW(YC,2) * 100)) + (POW(MC,2) * 10)) + (POW(DC,2) * 1000)) + ((YC * MC) * DC));
Y3:=((((30000 + (POW(YC,2) * 10)) + (POW(MC,2) * 1000)) + (POW(DC,2) * 100)) + ((YC * MC) * DC));
YZB:=(((POW(YC,2) * ZBXH) + (POW(MC,2) * ZBXH)) + (POW(DC,2) * ZBXH));
YES1:=(YMD1 = Y1);
YES2:=(YMD2 = Y2);
YES3:=(YMD3 = Y3);
YESZB:=(YMDZB = YZB);
GQ:=IF((((DATE <= (((1000000 + (YC * 10000)) + (MC * 100)) + DC)) AND YES1) AND YESZB),1,DRAWNULL);
LOCH:=前浪;
LOCL:=后浪;
LOCQQ:=(((LOCH + LOCL) / 2) * 1.3);
STICKLINE(((CURRBARSCOUNT < 10) AND (GQ = DRAWNULL)),MIN(LOCH,LLV(LOCH,20)),MAX((1.5 * LOCL),HHV(LOCH,20)),4,1),COLORRED;
SHQQ:=(GQ = DRAWNULL);
QQOUT:=1;
DRAWICON((SHQQ AND (CURRBARSCOUNT = 15)),(1.08 * LOCQQ),20);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 14)),REF((1.1 * LOCQQ),1),7);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 13)),REF((1.1 * LOCQQ),2),9);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 12)),REF((1.1 * LOCQQ),3),2);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 11)),REF((1.1 * LOCQQ),4),5);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 10)),REF((1.1 * LOCQQ),5),7);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 9)),REF((1.1 * LOCQQ),6),3);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 8)),REF((1.1 * LOCQQ),7),5);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 7)),REF((1.1 * LOCQQ),8),5);
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 6)),REF((1.1 * LOCQQ),9),4);
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
{波浪驱动WM}
{ 参数填入: { 趋势输出N:(1,34,18)
输出YMDF:(0,900000,131210)
YMDF1:(0,900000,4790)
YMDFZB:(0,900000,2065)
}
趋势N赋值:18
YMDF赋值:131210.00
YMDF1:=4790.00
YMDFZB:=2065.00
VVR1赋值:(YEAR > 12)
VVR2赋值:(MONTH > 12)
VVR3赋值:(DAY > 25)
超跌幅度赋值:14
NL赋值:80
NS赋值:10
HE赋值:1
DD赋值:1
VR1赋值:(1 + 0.00001)
SH赋值:1
YH赋值:1
MH赋值:1
DH赋值:1
HH赋值:1
D0赋值:(HH = HE)
如果D0返回1否则返回DRAWNULL
VR2赋值:IF((HH = HE),1,0.001)
VM1赋值:VR1
MID赋值:(((((3 * 收盘价) + 最低价) + OPEN) + 最高价) / 6)
主力赋值:((((((((((((((((((((((20 * MID) + (19 * 1日前的MID)) + (18 * 2日前的MID)) + (17 * 3日前的MID)) + (16 * 4日前的MID)) + (15 * 5日前的MID)) + (14 * 6日前的MID)) + (13 * 7日前的MID)) + (12 * 8日前的MID)) + (11 * 9日前的MID)) + (10 * 10日前的MID)) + (9 * 11日前的MID)) + (8 * 12日前的MID)) + (7 * 13日前的MID)) + (6 * 14日前的MID)) + (5 * 15日前的MID)) + (4 * 16日前的MID)) + (3 * 17日前的MID)) + (2 * 18日前的MID)) + 20日前的MID) / 210) * 1)
N0赋值:9
M1赋值:3
M2赋值:3
RSV赋值:(((收盘价 - N0日内最低价最低值) / (N0日内最高价最高值 - N0日内最低价最低值)) * 100)
RSV的M1日[1日权重]移动平均
K的M2日[1日权重]移动平均
J赋值:((3 * K) - (2 * D))
N3赋值:30
M3赋值:30
P1赋值:80
P2赋值:100
VAR1赋值:((((C + H) + O) + L) / 4)
趋势线赋值:收盘价的17日指数移动平均
牛熊分界线赋值:收盘价的50日指数移动平均
N1赋值:5
VAR2赋值:(收盘价 * 成交量)
VAR3赋值:EMA((((((VAR2的3日指数移动平均 / 成交量的3日指数移动平均) + (VAR2的6日指数移动平均 / 成交量的6日指数移动平均)) + (VAR2的12日指数移动平均 / 成交量的12日指数移动平均)) + (VAR2的24日指数移动平均 / 成交量的24日指数移动平均)) / 4),14)
SUP赋值:(1.06 * VAR3)
SDN赋值:(VAR3 * 0.94)
VAR4赋值:收盘价的9日指数移动平均
LUP赋值:EXPMA((VAR4 * (1 + (超跌幅度 / 100))),N1)
LDN赋值:EXPMA((VAR4 * (1 - (超跌幅度 / 100))),N1)
买入赋值:LDN
卖出赋值:LUP
幅度赋值:((100 * (卖出 - 买入)) / 买入)
M赋值:10
N赋值:10
LTZ赋值:(COUNT((C > O),NL) / NL)
SLZ赋值:((COUNT((C > O),NS) - COUNT((C < O),NS)) / 10)
Z1赋值:(((((主力 - 50日内主力最低值) / (50日内主力最高值 - 50日内主力最低值)) * 20) + ((H / 10日前的主力) * 20)) + ((LTZ * SLZ) * 20))
HVR1赋值:IF(((VR1 > 0.1) AND (HH = HE)),1,DRAWNULL)
Z2赋值:(((((D的N日简单移动平均 / M) + ((MA((K - 1日前的D),5) / 2) / M)) * 5) * VR1) * HVR1)
ZL赋值:((MA((Z1 + Z2),2) * (VM1 - MOD(VR1,M))) * 100000)
ZLM赋值:ZL的8日简单移动平均
能量涨赋值:IF((ZL > 1日前的ZLM),ZLM,DRAWNULL)
STICKLINE((((ZL > ZLM) AND (ZL > 30)) AND (ZL > 1日前的ZL)),ZL,ZLM和30较大值,1,0),COLORRED
STICKLINE(((((ZL > ZLM) AND (ZL > 70)) AND (ZL < 1日前的ZL)) AND ((C / "DKX.DKX") > 1.05)),ZL,ZLM和30较大值,1,0),COLORGREEN
STICKLINE(((ZL > ZLM) AND (ZL < 30)),ZL,30,1,0),COLOR008080
输出前浪:(ZL * HVR1),COLORRED
输出后浪:(ZLM * HVR1),COLORMAGENTA
输出趋势浪:ZL的趋势N日简单移动平均,DOTLINE,COLORRED
介入赋值:30
强势赋值:60
超强赋值:80
超跌赋值:IF((L < 买入),30,DRAWNULL)
当满足条件超跌时,在35和超跌之间画柱状线
超卖关注赋值:IF(((EXIST((L < 买入),3) AND (前浪 < 45)) AND (前浪 > 1日前的前浪)),30,DRAWNULL)
超跌数:=COUNT((超跌 = 30),7)
小跌赋值:IF(((超跌数 = 3) AND (超跌 = 30)),45,DRAWNULL)
中跌赋值:IF(((超跌数 = 4) AND (超跌 = 30)),60,DRAWNULL)
大跌赋值:IF(((超跌数 = 5) AND (超跌 = 30)),75,DRAWNULL)
疯跌赋值:IF(((超跌数 > 5) AND (超跌 = 30)),(75 + ((超跌数 - 5) * 15)),DRAWNULL)
当满足条件小跌时,在小跌和30之间画柱状线
当满足条件中跌时,在中跌和30之间画柱状线
当满足条件大跌时,在大跌和30之间画柱状线
当满足条件疯跌时,在疯跌和30之间画柱状线
金叉赋值:(前浪上穿后浪 AND (后浪 < 40))
死叉赋值:(CROSS((-1 * 前浪),(-1 * 后浪)) AND (后浪 > 50))
DRAWICON(后浪上穿30,30,34)
乌云来了赋值:EXIST(((((((C - 1日前的C) / C) < 0.005) AND (5日内成交量最高值 = 成交量)) AND (后浪 > 70)) AND (前浪 > 70)),1)
STICKLINE((乌云来了 AND (ZL > 30)),后浪,(后浪 - 10),1,0),COLORGREEN
IF((趋势浪 > 1日前的趋势浪),趋势浪,DRAWNULL),LINETHICK2,COLORRED
CV赋值:收盘价
BBIBOLL赋值:((((CV的3日简单移动平均 + CV的6日简单移动平均) + CV的12日简单移动平均) + CV的24日简单移动平均) / 4)
UPR赋值:IF(1,(BBIBOLL + (11 * BBIBOLL的6估算标准差)),DRAWNULL)
DWN赋值:IF(1,(BBIBOLL - (11 * BBIBOLL的6估算标准差)),DRAWNULL)
FD赋值:10
底赋值:(FD * ((J > 1日前的J) AND (J < 10)))
STICKLINE((底 = FD),20,22,1,0),COLOR8080FF
输出买:(20 + (FD * (((DWN > 1日前的DWN) AND (1日前的DWN < 2日前的DWN)) AND EXIST((底 = FD),3)))),COLORMAGENTA
顶赋值:(100 - (FD * (J > 100)))
STICKLINE(((顶 = (100 - FD)) AND (前浪 > 50)),趋势浪,(趋势浪 - 1.5),1,0),COLOR40C040
ZBXH赋值:5
YMD赋值:YMDF
YMD1:=YMDF1
YMD2:=YMDF1
YMD3:=YMDF1
YMDZB:=YMDFZB
YC赋值:MOD((YMD / 10000),100)
MC:=MOD((YMD / 100),100)
DC:=MOD(YMD,100)
Y1赋值:((((POW(YC,2) * 10) + (POW(MC,2) * 10)) + (POW(DC,2) * 1)) + ((YC * MC) * DC))
Y2赋值:((((20000 + (POW(YC,2) * 100)) + (POW(MC,2) * 10)) + (POW(DC,2) * 1000)) + ((YC * MC) * DC))
Y3赋值:((((30000 + (POW(YC,2) * 10)) + (POW(MC,2) * 1000)) + (POW(DC,2) * 100)) + ((YC * MC) * DC))
YZB赋值:(((POW(YC,2) * ZBXH) + (POW(MC,2) * ZBXH)) + (POW(DC,2) * ZBXH))
YES1赋值:(YMD1 = Y1)
YES2赋值:(YMD2 = Y2)
YES3赋值:(YMD3 = Y3)
YESZB赋值:(YMDZB = YZB)
GQ赋值:IF((((DATE <= (((1000000 + (YC * 10000)) + (MC * 100)) + DC)) AND YES1) AND YESZB),1,DRAWNULL)
LOCH赋值:前浪
LOCL赋值:后浪
LOCQQ赋值:(((LOCH + LOCL) / 2) * 1.3)
STICKLINE(((CURRBARSCOUNT < 10) AND (GQ = DRAWNULL)),MIN(LOCH,20日内LOCH最低值),MAX((1.5 * LOCL),20日内LOCH最高值),4,1),COLORRED
SHQQ:=(GQ = DRAWNULL)
QQOUT赋值:1
DRAWICON((SHQQ AND (CURRBARSCOUNT = 15)),(1.08 * LOCQQ),20)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 14)),REF((1.1 * LOCQQ),1),7)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 13)),REF((1.1 * LOCQQ),2),9)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 12)),REF((1.1 * LOCQQ),3),2)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 11)),REF((1.1 * LOCQQ),4),5)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 10)),REF((1.1 * LOCQQ),5),7)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 9)),REF((1.1 * LOCQQ),6),3)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 8)),REF((1.1 * LOCQQ),7),5)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 7)),REF((1.1 * LOCQQ),8),5)
DRAWNUMBER(((SHQQ AND (QQOUT = 1)) AND (CURRBARSCOUNT = 6)),REF((1.1 * LOCQQ),9),4)