多空趋势看盘观看多空趋势寻找底点和高点顺势操作
DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH*1.01,'快闪'),coloryellow;DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),LOW*0.99,'关注'),colorwhite;DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L,1) ;DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);MID:=REF(HIGH+LOW,1)/2;JJ :=(C*2+H+L)/4;SKK :( EMA(JJ,13) - EMA(JJ,21))*180,COLORFFFFFF,LINETHICK2;SDD : EMA(SKK,3),COLOR00FFFF,LINETHICK2;多方: (SKK-SDD)*0.5,colorred,LINETHICK2;空方: -1*(SKK-SDD)*0.5,colorgreen,LINETHICK2;RC:=DYNAINFO(3);RC,colorwhite;SK:=(SLOPE(EMA(JJ,2),7)*15+JJ)*0.8*0.0001;SD:=EMA(SK,2);SJ:=2.8*SK-1.8*SD;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6)*15*4*1.5;STICKLINE(SK>SD AND DK<RC OR DK=RC,RC,RC+DK,2,1),colorred;STICKLINE(DK>0 AND SK>SD ,RC,RC+DK,2,0),colorred;STICKLINE(DK>0 AND SK<SD ,RC,RC+DK,2,0),COLOR00FF00;STICKLINE(DK>0 AND 多方<空方,RC,RC+DK,2,0),colorgreen;STICKLINE(CROSS(多方,空方),RC,RC+DK,2,0),coloryellow;STICKLINE(CROSS(空方,多方),RC,RC+DK,2,0),colorgreen;STICKLINE(DK<0 AND 多方<空方 AND SK<SD,RC,RC+DK,2,1),colorgreen;DRAWICON(CROSS(SKK,SDD) AND (SDD<-65),SDD-0.1,1);DRAWICON(CROSS(SDD,SKK) AND (SDD>65),SDD+0.1,2);VAR1:=IF(DATE>=1990601,0,1);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);黑码:(VAR10)*8,colorred,LINETHICK2;买入:(VAR11+VAR13+VAR15+VAR17)*12,coloryellow,LINETHICK2;抄底:(买入>16 AND REF(黑码,1)>8)*18,STICK,LINETHICK4,COLORDB70DB;卖出:(VAR12+VAR14+VAR16+VAR18)*12,colorgreen,LINETHICK2;VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-6),0,1,0),COLOR0000FF;DRAWTEXT((VARC=1),(-6.5),'底。买'),COLOR0000FF;STICKLINE((VARD=1),8,0,1,0),COLOR00FF00;DRAWTEXT((VARD=1),8.5,'顶。卖'),COLOR00FF00;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),最高价*1.01,'快闪'),画黄色
DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),最低价*0.99,'关注'),画白色
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L,1)
DRAWICON((ZIG(3,5)[=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2)]
MID赋值:1日前的最高价+最低价/2
JJ :=(C*2+H+L)/4
SKK :( JJ的13日指数移动平均 - JJ的21日指数移动平均)*180,COLORFFFFFF, 线宽为2
SDD : SKK的3日指数移动平均,COLOR00FFFF, 线宽为2
输出多方: (SKK-SDD)*0.5,画红色, 线宽为2
输出空方: -1*(SKK-SDD)*0.5,画绿色, 线宽为2
RC赋值:DYNAINFO(3)
RC,画白色
SK赋值:(SLOPE(JJ的2日指数移动平均,7)*15+JJ)*0.8*0.0001
SD赋值:SK的2日指数移动平均
SJ赋值:2.8*SK-1.8*SD
C的3日[1日权重]移动平均
C的5日[1日权重]移动平均
DK赋值:2*(S2-S6)*15*4*1.5
当满足条件SK>SD AND DK当满足条件DK>0 AND SK>SD 时,在RC和RC+DK之间画柱状线
当满足条件DK>0 AND SK当满足条件DK>0 AND 多方<空方时,在RC和RC+DK之间画柱状线
STICKLINE(多方上穿空方,RC,RC+DK,2,0),画黄色
STICKLINE(空方上穿多方,RC,RC+DK,2,0),画绿色
当满足条件DK<0 AND 多方<空方 AND SKDRAWICON(SKK上穿SDD AND (SDD<-65),SDD-0.1,1)
DRAWICON(SDD上穿SKK AND (SDD>65),SDD+0.1,2)
如果DATE>=1990601返回0否则返回1
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3)
VAR12:=ZIG(3,6)[=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3)]
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)<=REF(ZIG(3,22),3)
VAR14:=ZIG(3,22)[=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)>=REF(ZIG(3,22),3)]
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)<=REF(ZIG(3,51),3)
VAR16:=ZIG(3,51)[=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)>=REF(ZIG(3,51),3)]
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)<=REF(ZIG(3,72),3)
VAR18:=ZIG(3,72)[=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)>=REF(ZIG(3,72),3)]
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND 最高价>最低价+0.04,4,0)
输出黑码:(VAR10)*8,画红色, 线宽为2
输出买入:(VAR11+VAR13+VAR15+VAR17)*12,画黄色, 线宽为2
输出抄底:(买入>16 AND 1日前的黑码>8)*18,STICK,LINETHICK4,COLORDB70DB
输出卖出:(VAR12+VAR14+VAR16+VAR18)*12,画绿色, 线宽为2
VARC赋值:(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3))
VARD赋值:(ZIG(3,5)[=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3))]
STICKLINE((VARC=1),(-6),0,1,0),COLOR0000FF
DRAWTEXT((VARC=1),(-6.5),'底。买'),COLOR0000FF
STICKLINE((VARD=1),8,0,1,0),COLOR00FF00
DRAWTEXT((VARD=1),8.5,'顶。卖'),COLOR00FF00