求老师帮忙修改箱体震荡公式 [文华财经]
-
咨询内容:
老师请帮我看一下我的指标为什么没有箱体,我想做一分钟短线小恒指,价格突破箱体做多,跌破箱体做空,现在公式没有箱体部分,求箱体部分,代码如下
MC:=MA(C,5);
MC1:=MA(C,10);
MH2:=MA(H,5);
ML2:=MA(L,5);
AA:=HHV(H,10);
BB:=ZIGZAG(AA,100,0); DD:=LLV(L,10);
EE:=ZIGZAG(DD,100,0); FF:PEAK(AA,100,1,0);
GG:=PEAK(DD,100,1,0);
FF1:=TROUGH(AA,100,1,0); GG1:TROUGH(DD,100,1,0);
BB1:(FF+GG1)/2,COLORRED;
FILLRGN(FF<>GG1,FF,GG1,RGB(79,85,202));
FILLRGN(MH2<>ML2,MH2,ML2,RGB(128,0,255));
HH1:=IFELSE(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IFELSE(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=V ALUEWHEN(HH1>0,HH1);
LL2:=V ALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
K2:=V ALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,HH2,LL2);
G1:=V ALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L>0,G1,G1,2,COLORCYAN);
DRAWNUMBER(H>0,G1,G1,2,COLORBLUE);
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWLINE(W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),COLORCYAN); DRAWLINE(W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORBLUE); DRAWSL(K2=1,G,0,1,0,COLORCY AN);
DRAWSL(K2=-3,G,0,1,0,COLORBLUE);
TMP:=OPEN-CLOSE;
DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCY AN);
DRAWLINE(TMP>0.00001,LOW,TMP>0.00001,CLOSE,COLORCYAN);
DRAWLINE(TMP<-0.00001,HIGH,TMP<-0.00001,CLOSE,COLORRED);
DRAWLINE(TMP<-0.00001,LOW,TMP<-0.00001,OPEN,COLORRED);
DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE); DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE); STICKLINE(C>FF&&TMP>0,OPEN,CLOSE,COLORYELLOW,0);
STICKLINE(C<FF&&C>GG1&&TMP>0,OPEN,CLOSE,COLORCY AN,0);
STICKLINE(C<GG1&&TMP>0,OPEN,CLOSE,COLORGREEN,0);
STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);
文件名:qq图片20181209200844.jpg
文件名:qq图片20181209202700.png来源:程序化99
-
文华技术人员:
1楼指标含有未来函数,会造成画线、标记等忽闪,对实盘指导意义不大,不建议深入研究
另外,箱体需要您具体量化一下才能编写
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容