自用感觉还不错的指标同时把指标也分享出来源码无未来
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10)*2;
VAR4:=LLV(LOW,33)*2;
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3)*5;
Z:0,COLORBLACK;
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
洗盘:IF(VAR5< REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR0000FF;
STICKLINE(VAR5< REF(VAR5,1),0,VAR5,3,0),COLOR00FF80;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1)*2;
VAR31:=EMA(VAR21,10)*2;
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3)*3;
主力拉高:IF(VAR51< REF(VAR51,1),VAR51,0),COLORYELLOW,NODRAW;
STICKLINE(VAR51< REF(VAR51,1),0,VAR51,3,0),COLORYELLOW;
出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORCYAN,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLORCYAN;
LC := REF(CLOSE,1);
VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100);
RC := (CLOSE-LC)*VID;
LONG := SUM(RC,0);
DIFF := SMA(LONG,10,1);
DEA := SMA(LONG,20,1);
LON :=DIFF-DEA;
LLL:=MA(LON,10);
IF(LLL>=REF(LLL,1),LLL,DRAWNULL),COLORRED;
V2:EMA(LON,1),COLORGREEN;
V3:EMA(V2,3),COLORGREEN;
V4:EMA(V3,3),COLORGREEN;
V5:EMA(V4,3),COLORGREEN;
V6:EMA(V5,3),COLORGREEN;
IF(V2>=REF(V2,1),V2,DRAWNULL),COLORRED;
IF(V3>=REF(V3,1),V3,DRAWNULL),COLORRED;
IF(V4>=REF(V4,1),V4,DRAWNULL),COLORRED;
IF(V5>=REF(V5,1),V5,DRAWNULL),COLORRED;
IF(V6>=REF(V6,1),V6,DRAWNULL),COLORRED;
0,COLORWHITE;
STICKLINE(V2>REF(V2,1),V2,REF(V2,1),3,0),COLORRED;
STICKLINE(V2< REF(V2,1),V2,REF(V2,1),3,0),COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均*2
VAR4赋值:33日内最低价最低值*2
如果最低价<=VAR4返回VAR3否则返回0
输出Z:0,COLORBLACK
输出主力进场:IF(VAR5>1日前的VAR5,VAR5,0),画红色,NODRAW
输出洗盘:IF(VAR5< 1日前的VAR5,VAR5,0),画绿色,NODRAW
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,0 ),COLOR0000FF
STICKLINE(VAR5< 1日前的VAR5,0,VAR5,3,0),COLOR00FF80
VAR21:=SMA(最高价-VAR1的绝对值,13,1)/SMA(最高价-VAR1和0的较小值,10,1)*2
VAR31:=VAR21的10日指数移动平均*2
VAR41:=33日内最高价最高值
如果最高价>=VAR41返回VAR31否则返回0
输出主力拉高:IF(VAR51< 1日前的VAR51,VAR51,0),画黄色,NODRAW
STICKLINE(VAR51< 1日前的VAR51,0,VAR51,3,0),画黄色
输出出货:IF(VAR51>1日前的VAR51,VAR51,0),COLORCYAN,NODRAW
STICKLINE(VAR51>1日前的VAR51,0,VAR51,3,0 ),COLORCYAN
LC := 1日前的收盘价
VID := 2的成交量日累和/(((2日内最高价最高值-2日内最低价最低值))*100)
RC := (收盘价-LC)*VID
LONG := 0的RC日累和
LONG的10日[1日权重]移动平均
LONG的20日[1日权重]移动平均
LON :=DIFF-DEA
LLL赋值:LON的10日简单移动平均
IF(LLL>=1日前的LLL,LLL,DRAWNULL),画红色
输出V2:LON的1日指数移动平均,画绿色
输出V3:V2的3日指数移动平均,画绿色
输出V4:V3的3日指数移动平均,画绿色
输出V5:V4的3日指数移动平均,画绿色
输出V6:V5的3日指数移动平均,画绿色
IF(V2>=1日前的V2,V2,DRAWNULL),画红色
IF(V3>=1日前的V3,V3,DRAWNULL),画红色
IF(V4>=1日前的V4,V4,DRAWNULL),画红色
IF(V5>=1日前的V5,V5,DRAWNULL),画红色
IF(V6>=1日前的V6,V6,DRAWNULL),画红色
0,画白色
STICKLINE(V2>1日前的V2,V2,1日前的V2,3,0),画红色
STICKLINE(V2< 1日前的V2,V2,1日前的V2,3,0),画绿色