惊天霹雳波段 多年不断优化的指标做波段必备明确指示进出信号成功率99%
N:=5;
M1:=3;
M2:=3;
QWX1:=HHV(CLOSE,30);
QWX2:=LLV(CLOSE,30);
QWX3:=CONST((QWX1+QWX2)/2);
QWX4:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
QWX5:=CONST((1-7/100)*(DMA(CLOSE,QWX4)));
QWX6:=CONST((1+7/100)*(DMA(CLOSE,QWX4)));
{KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KX:=SMA(RSV,3,1);
DX:=SMA(KX,3,1);
JX:=3*KX-2*DX;
{MACD}
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*2+QWX3,COLORWHITE;
DEA:=EMA(DIF,9),COLORYELLOW;
MCD:=(DIF-DEA)*2+QWX3;
DRAWBAND(MCD,RGB(120,0,100),QWX3,RGB(60,100,50));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
牛熊线:(EMA(CLOSE,30)+EMA(CLOSE,72))/2,LINETHICK2,COLORGREEN;
M5:MA(CLOSE,N),COLORWHITE;
M10:MA(CLOSE,M1),COLORYELLOW;
M20:MA(CLOSE,M2),COLORFF00FF;
VAR1:=IF(CLOSE>OPEN,CLOSE,OPEN);
VAR2:=MEMA(CLOSE,5);
VAR3:=ATAN((VAR2/REF(VAR2,1)-1)*100);
VAR4:=IF(VAR3>0,VAR3,VAR3);
VAR5:=(CLOSE/REF(CLOSE,1)-1)*100;
VAR6:=VAR5<1.5 AND VAR5>-1.5;
今日之升★:LAST(VAR6,4,1) AND VAR5>2 AND VOL>REF(VOL,1),NODRAW,COLORYELLOW;
DRAWTEXT(今日之升★,L/1.01,'★'),COLORYELLOW;
强势:IF(VAR4>=REF(VAR4,1) AND VAR4>=0,M10,DRAWNULL),COLORRED,LINETHICK2;
整理:IF(VAR4<REF(VAR4,1) AND VAR4>0,M10,DRAWNULL),COLORGREEN,LINETHICK2;
支撑:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX5,DRAWNULL),DRAWNULL),COLORCYAN;
阻力:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX6,DRAWNULL),DRAWNULL),COLORYELLOW;
{柱型显示}
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;
{蓝}
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
{红}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
{绿 WWW.}
STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,3,0),COLOR009900;
STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;
STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
{灰}
STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
STICKLINE(CROSS(JX,DX),OPEN,CLOSE,0.5,0),COLORYELLOW;
STICKLINE(CROSS(DX,JX),OPEN,CLOSE,0.5,0),COLOR000099;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:5
M1赋值:3
M2赋值:3
QWX1赋值:30日内收盘价最高值
QWX2赋值:30日内收盘价最低值
QWX3赋值:CONST((QWX1+QWX2)/2)
QWX4赋值:(2*收盘价+最高价+最低价的绝对值/4-收盘价的20日简单移动平均)/收盘价的20日简单移动平均
QWX5赋值:CONST((1-7/100)*(D收盘价的QWX4日简单移动平均))
QWX6赋值:CONST((1+7/100)*(D收盘价的QWX4日简单移动平均))
{KDJ}
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
KX的3日[1日权重]移动平均
JX赋值:3*KX-2*DX
{MACD}
DIF赋值:(收盘价的12日指数移动平均-收盘价的26日指数移动平均)*2+QWX3,画白色
DEA赋值:DIF的9日指数移动平均,画黄色
MCD赋值:(DIF-DEA)*2+QWX3
DRAWBAND(MCD,RGB(120,0,100),QWX3,RGB(60,100,50))
DRAWKLINE(最高价,OPEN,最低价,收盘价)
输出
牛熊线:(收盘价的30日指数移动平均+收盘价的72日指数移动平均)/2,LINETHICK2,COLORGREEN
输出
M5:收盘价的N日简单移动平均,画白色
M10:收盘价的M1日简单移动平均,画黄色
M20:收盘价的M2日简单移动平均,COLORFF00FF
如果收盘价>OPEN返回收盘价否则返回OPEN
VAR2赋值:收盘价的5日平滑移动平均
VAR3赋值:ATAN((VAR2/1日前的VAR2-1)*100)
如果VAR3>0返回VAR3否则返回VAR3
VAR5赋值:(收盘价/1日前的收盘价-1)*100
VAR6赋值:VAR5<1.5 AND VAR5>-1.5
输出
今日之升★:LAST(VAR6,4,1) AND VAR5>2 AND 成交量>1日前的成交量,NODRAW,画黄色
当满足条件今日之升★时,在L/1.01和'★'位置书写文字
输出
强势:IF(VAR4>=1日前的VAR4 AND VAR4>=0,M10,DRAWNULL),画红色,LINETHICK2
输出
整理:IF(VAR4<1日前的VAR4 AND VAR4>0,M10,DRAWNULL),COLORGREEN,LINETHICK2
输出
支撑:IF(PERIOD=5,IF(上次CURRBARSCOUNT=5距今天数,QWX5,DRAWNULL),DRAWNULL),COLORCYAN
输出
阻力:IF(PERIOD=5,IF(上次CURRBARSCOUNT=5距今天数,QWX6,DRAWNULL),DRAWNULL),画黄色
{柱型显示}
STICKLINE(收盘价>1日前的收盘价*1.0985 AND 收盘价=最高价,收盘价,OPEN,4,-1),COLOR00FFFF
STICKLINE(收盘价<1日前的收盘价*0.9015 AND 收盘价=最低价,收盘价,OPEN,4,-1),COLORGREEN
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件OPEN>=收盘价时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线
当满足条件收盘价>OPEN时,在收盘价和OPEN之间画柱状线
{绿 WWW.}
STICKLINE(CROSS(M5,C的3日指数移动平均),VAR1,(OPEN+收盘价)/2,3,0),COLOR009900
STICKLINE(CROSS(M5,C的3日指数移动平均),VAR1,(OPEN+收盘价)/2,2.2,0),COLOR00BB00
STICKLINE(CROSS(M5,C的3日指数移动平均),VAR1,(OPEN+收盘价)/2,1.5,0),COLOR00DD00
STICKLINE(CROSS(M5,C的3日指数移动平均),VAR1,(OPEN+收盘价)/2,0.5,0),COLOR00FF00
{灰}
STICKLINE(CROSS(C的3日指数移动平均,M5),OPEN,(OPEN+收盘价)/2,3,0),COLOR999999
STICKLINE(CROSS(C的3日指数移动平均,M5),OPEN,(OPEN+收盘价)/2,2.2,0),COLORBBBBBB
STICKLINE(CROSS(C的3日指数移动平均,M5),OPEN,(OPEN+收盘价)/2,1.5,0),COLORDDDDDD
STICKLINE(CROSS(C的3日指数移动平均,M5),OPEN,(OPEN+收盘价)/2,0.5,0),COLORFFFFFF
STICKLINE(JX上穿DX,OPEN,收盘价,0.5,0),画黄色
STICKLINE(DX上穿JX,OPEN,收盘价,0.5,0),COLOR000099