请老师调整一下 [博易POBO]
咨询内容:
Q:=1;
Q1:=0.001;
N1:=1;
HX:=HHV(HIGH,N00);
LX:=LLV(LOW,N00);
H1:=IF(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,Q)-CLOSE)>Q1,REF(HX,N1),0);
L1:=IF(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,Q))>Q1,REF(LX,N1),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
//DRAWNUMBER(LX>0,G1,G1,0),COLORCYAN;
TMP:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
A:=BARSLAST(CROSS(W1>0||W2>0&&W1>0,0.5))+1;
L4:=REF(L2,A);
L3:=VALUEWHEN(W2>0&&W1<=0||W1<=0,L2);
B:=BARSLAST(CROSS(W1<=0||W2>0&&W1<=0,0.5))+1;
TT:=IF(L3<>L4,L2,REF(L,B));
MA55:=MA(CLOSE,55);
多止损:IF(K2<0,TT,DRAWNULL),COLORFF0000,LINETHICK2,NODRAW;
空止损:IF(K2>0,H2,DRAWNULL),COLORFFFFFF,LINETHICK2,NODRAW;
M1:=BACKSET(ISLASTBAR,BARSLAST(CROSS(0,K2))+1),NODRAW;
M2:=BACKSET(ISLASTBAR,BARSLAST(CROSS(K2,0))+1),NODRAW;
DRAWSL(CROSS(M1,0.001)&&BARSLAST(CROSS(M1,0.001))<BARSLAST(CROSS(M2,0.001)),TT,0,0,0),COLORFF99CC,LINETHICK9;
DRAWSL(CROSS(M2,0.001)&&BARSLAST(CROSS(M1,0.001))>BARSLAST(CROSS(M2,0.001)),H2,0,0,0),COLORFFFFFF,LINETHICK9;
N000:=1;
Q0:=1;
Q10:=0.1;
N10:=1;
HX0:=HHV(HIGH,N00);
LX0:=LLV(LOW,N00);
H10:=IF(HX0<REF(HX0,1)&&HX0<REF(HX0,2)&&HX0<REF(HX0,4)&&LX0<REF(LX0,1)&&LX0<REF(LX0,3)&&LX0<REF(LX0,5)&&OPEN>CLOSE&&(HHV(OPEN,Q0)-CLOSE)>Q10,REF(HX0,N10),0);
L10:=IF(LX0>REF(LX0,1)&&LX0>REF(LX0,3)&&LX0>REF(LX0,5)&&HX0>REF(HX0,1)&&HX0>REF(HX0,2)&&HX0>REF(HX0,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,Q0))>Q10,REF(LX0,N10),0);
H20:=VALUEWHEN(H10>0,H10);
L20:=VALUEWHEN(L10>0,L10);
K10:=IF(CLOSE>H20,-3,IF(CLOSE<L20,1,0));
K20:=VALUEWHEN(K10<>0,K10);
G0:=IF(K20=1,H20,L20);
G10:=VALUEWHEN(ISLASTBAR,G0);
//DRAWNUMBER(LX>0,G1,G1,0),COLORCYAN;
TMP:=K20;
W10:=K20;
W20:=OPEN-CLOSE;
HT0:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT0:=IF(OPEN<CLOSE,OPEN,CLOSE);
A0:=BARSLAST(CROSS(W10>0||W20>0&&W10>0,0.5))+1;
L40:=REF(L20,A0);
L30:=VALUEWHEN(W20>0&&W10<=0||W10<=0,L20);
B0:=BARSLAST(CROSS(W10<=0||W20>0&&W1<=0,0.5))+1;
TT0:=IF(L30<>L40,L20,REF(L,B0));
MA550:=MA(CLOSE,55);
M10:=BACKSET(ISLASTBAR,BARSLAST(CROSS(0,K20))+1),NODRAW;
M20:=BACKSET(ISLASTBAR,BARSLAST(CROSS(K20,0))+1),NODRAW;
DRAWSL(CROSS(M10,0.1)&&BARSLAST(CROSS(M10,0.1))<BARSLAST(CROSS(M20,0.1)),TT0,0,0,0),COLORFF99CC,LINETHICK9;
DRAWSL(CROSS(M20,0.1)&&BARSLAST(CROSS(M10,0.1))>BARSLAST(CROSS(M20,0.1)),H20,0,0,0),COLORFFFFFF,LINETHICK9;
请老师把这两条线向左延长一点
DRAWSL(CROSS(M1,0.001)&&BARSLAST(CROSS(M1,0.001))<BARSLAST(CROSS(M2,0.001)),TT,0,0,0),COLORFF99CC,LINETHICK9;
DRAWSL(CROSS(M2,0.001)&&BARSLAST(CROSS(M1,0.001))>BARSLAST(CROSS(M2,0.001)),H2,0,0,0),COLORFFFFFF,LINETHICK9;
请老师调整一下
N00:=1;Q:=1;
Q1:=0.001;
N1:=1;
HX:=HHV(HIGH,N00);
LX:=LLV(LOW,N00);
H1:=IF(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,Q)-CLOSE)>Q1,REF(HX,N1),0);
L1:=IF(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,Q))>Q1,REF(LX,N1),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
//DRAWNUMBER(LX>0,G1,G1,0),COLORCYAN;
TMP:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
A:=BARSLAST(CROSS(W1>0||W2>0&&W1>0,0.5))+1;
L4:=REF(L2,A);
L3:=VALUEWHEN(W2>0&&W1<=0||W1<=0,L2);
B:=BARSLAST(CROSS(W1<=0||W2>0&&W1<=0,0.5))+1;
TT:=IF(L3<>L4,L2,REF(L,B));
MA55:=MA(CLOSE,55);
多止损:IF(K2<0,TT,DRAWNULL),COLORFF0000,LINETHICK2,NODRAW;
空止损:IF(K2>0,H2,DRAWNULL),COLORFFFFFF,LINETHICK2,NODRAW;
M1:=BACKSET(ISLASTBAR,BARSLAST(CROSS(0,K2))+1),NODRAW;
M2:=BACKSET(ISLASTBAR,BARSLAST(CROSS(K2,0))+1),NODRAW;
DRAWSL(CROSS(M1,0.001)&&BARSLAST(CROSS(M1,0.001))<BARSLAST(CROSS(M2,0.001)),TT,0,0,0),COLORFF99CC,LINETHICK9;
DRAWSL(CROSS(M2,0.001)&&BARSLAST(CROSS(M1,0.001))>BARSLAST(CROSS(M2,0.001)),H2,0,0,0),COLORFFFFFF,LINETHICK9;
N000:=1;
Q0:=1;
Q10:=0.1;
N10:=1;
HX0:=HHV(HIGH,N00);
LX0:=LLV(LOW,N00);
H10:=IF(HX0<REF(HX0,1)&&HX0<REF(HX0,2)&&HX0<REF(HX0,4)&&LX0<REF(LX0,1)&&LX0<REF(LX0,3)&&LX0<REF(LX0,5)&&OPEN>CLOSE&&(HHV(OPEN,Q0)-CLOSE)>Q10,REF(HX0,N10),0);
L10:=IF(LX0>REF(LX0,1)&&LX0>REF(LX0,3)&&LX0>REF(LX0,5)&&HX0>REF(HX0,1)&&HX0>REF(HX0,2)&&HX0>REF(HX0,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,Q0))>Q10,REF(LX0,N10),0);
H20:=VALUEWHEN(H10>0,H10);
L20:=VALUEWHEN(L10>0,L10);
K10:=IF(CLOSE>H20,-3,IF(CLOSE<L20,1,0));
K20:=VALUEWHEN(K10<>0,K10);
G0:=IF(K20=1,H20,L20);
G10:=VALUEWHEN(ISLASTBAR,G0);
//DRAWNUMBER(LX>0,G1,G1,0),COLORCYAN;
TMP:=K20;
W10:=K20;
W20:=OPEN-CLOSE;
HT0:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT0:=IF(OPEN<CLOSE,OPEN,CLOSE);
A0:=BARSLAST(CROSS(W10>0||W20>0&&W10>0,0.5))+1;
L40:=REF(L20,A0);
L30:=VALUEWHEN(W20>0&&W10<=0||W10<=0,L20);
B0:=BARSLAST(CROSS(W10<=0||W20>0&&W1<=0,0.5))+1;
TT0:=IF(L30<>L40,L20,REF(L,B0));
MA550:=MA(CLOSE,55);
M10:=BACKSET(ISLASTBAR,BARSLAST(CROSS(0,K20))+1),NODRAW;
M20:=BACKSET(ISLASTBAR,BARSLAST(CROSS(K20,0))+1),NODRAW;
DRAWSL(CROSS(M10,0.1)&&BARSLAST(CROSS(M10,0.1))<BARSLAST(CROSS(M20,0.1)),TT0,0,0,0),COLORFF99CC,LINETHICK9;
DRAWSL(CROSS(M20,0.1)&&BARSLAST(CROSS(M10,0.1))>BARSLAST(CROSS(M20,0.1)),H20,0,0,0),COLORFFFFFF,LINETHICK9;
请老师把这两条线向左延长一点
DRAWSL(CROSS(M1,0.001)&&BARSLAST(CROSS(M1,0.001))<BARSLAST(CROSS(M2,0.001)),TT,0,0,0),COLORFF99CC,LINETHICK9;
DRAWSL(CROSS(M2,0.001)&&BARSLAST(CROSS(M1,0.001))>BARSLAST(CROSS(M2,0.001)),H2,0,0,0),COLORFFFFFF,LINETHICK9;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 老师在吗 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容