请老师帮忙修改!! [博易POBO]
咨询内容:
请老师帮忙修改!!
请老师帮忙修改成博易大师能用的,感谢!
<!-- 咨询内容: 附件 :
-->
共振.docx
N:=1;
N1:=1;
N2:=1;
HH:=HHV(HIGH,1)/5+HHV(HIGH,2)/5+HHV(HIGH,2)/5+HHV(HIGH,5)/5+HHV (HIGH,8)/5;
LL:=LLV(LOW,1)/5+LLV(LOW,2)/5+LLV(LOW,2)/5+LLV(LOW,5)/5+LLV(LOW,8)/5;
H1:= IFELSE(H<REF(H,2)&&REF(H,1)<REF(H,2),REF(H,2),0);
L1:= IFELSE(L>REF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
GG:=IFELSE(K2=1,H2,L2);
GG1:=VALUEWHEN(ISLASTBAR,GG);
TMP1:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWTEXT(CROSS(TMP1,0)&&EMA20<REF(EMA20,1),HH,'空'),COLORGREEN;
DRAWTEXT(CROSS(0,TMP1)&&EMA20>REF(EMA20,1),LL,'多'),COLORYELLOW;
N11:=10;
HHH:=HHV(HIGH,N11);
LLL:=LLV(LOW,N11);
HH1:=BARSLAST((HHH>REF(HHH,1)));
LL1:=BARSLAST((LLL<REF(LLL,1)));
A:=IF((HH1 < LL1),1,IF((HH1 > LL1),-1,0));
IF(A>=0,LL,HH),COLORYELLOW;
STICKLINE((HH1 < LL1),CLOSE,OPEN,10,0),COLORRED;
DRAWLINE((HH1 < LL1),HIGH,(HH1<LL1),LOW,0),COLORRED;
STICKLINE((HH1 > LL1),CLOSE,OPEN,10,0),COLORBLUE;
DRAWLINE((HH1 > LL1),HIGH,(HH1 > LL1),LOW,0),COLORBLUE;
DRAWTEXT(CROSS(HH1,LL1)&&EMA20<REF(EMA20,1),HH,'空');
DRAWTEXT(CROSS(LL1,HH1)&&EMA20>REF(EMA20,1),LL,'多');
DRAWTEXT(CROSS(LL1,HH1)&&CROSS(0,TMP1),L,'共振'),COLORCYAN;
DRAWTEXT(CROSS(HH1,LL1)&&CROSS(TMP1,0),L,'共振'),COLORMAGENTA;
AUTOFILTER;
PARTLINE2(EMA20,COLORRED,EMA20>REF(EMA20,1),COLORGREEN); 来源 程序化久久网
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: EMA20:EMA(C,20);N:=1;
N1:=1;
N2:=1;
HH:=HHV(HIGH,1)/5+HHV(HIGH,2)/5+HHV(HIGH,2)/5+HHV(HIGH,5)/5+HHV (HIGH,8)/5;
LL:=LLV(LOW,1)/5+LLV(LOW,2)/5+LLV(LOW,2)/5+LLV(LOW,5)/5+LLV(LOW,8)/5;
H1:= IFELSE(H<REF(H,2)&&REF(H,1)<REF(H,2),REF(H,2),0);
L1:= IFELSE(L>REF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
GG:=IFELSE(K2=1,H2,L2);
GG1:=VALUEWHEN(ISLASTBAR,GG);
TMP1:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWTEXT(CROSS(TMP1,0)&&EMA20<REF(EMA20,1),HH,'空'),COLORGREEN;
DRAWTEXT(CROSS(0,TMP1)&&EMA20>REF(EMA20,1),LL,'多'),COLORYELLOW;
N11:=10;
HHH:=HHV(HIGH,N11);
LLL:=LLV(LOW,N11);
HH1:=BARSLAST((HHH>REF(HHH,1)));
LL1:=BARSLAST((LLL<REF(LLL,1)));
A:=IF((HH1 < LL1),1,IF((HH1 > LL1),-1,0));
IF(A>=0,LL,HH),COLORYELLOW;
STICKLINE((HH1 < LL1),CLOSE,OPEN,10,0),COLORRED;
DRAWLINE((HH1 < LL1),HIGH,(HH1<LL1),LOW,0),COLORRED;
STICKLINE((HH1 > LL1),CLOSE,OPEN,10,0),COLORBLUE;
DRAWLINE((HH1 > LL1),HIGH,(HH1 > LL1),LOW,0),COLORBLUE;
DRAWTEXT(CROSS(HH1,LL1)&&EMA20<REF(EMA20,1),HH,'空');
DRAWTEXT(CROSS(LL1,HH1)&&EMA20>REF(EMA20,1),LL,'多');
DRAWTEXT(CROSS(LL1,HH1)&&CROSS(0,TMP1),L,'共振'),COLORCYAN;
DRAWTEXT(CROSS(HH1,LL1)&&CROSS(TMP1,0),L,'共振'),COLORMAGENTA;
AUTOFILTER;
PARTLINE2(EMA20,COLORRED,EMA20>REF(EMA20,1),COLORGREEN); 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容