小刀山河指标小刀钻研多年技术指标
N:=5;M1:=10;M2:=20;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)));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;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);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;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;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赋值:10
M2赋值:20
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日简单移动平均))
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
KX的3日[1日权重]移动平均
JX赋值:3*KX-2*DX
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
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和'★'位置书写文字
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之间画柱状线
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