老师解决== [文华财经]
-
咨询内容:
NG:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),090000,0900)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),150000, 1500),0.5)||CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),210000,2100)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),220000,2200),0.5))+1);////指标 2
XXA:=BACKSET(ISLASTBAR,SUMBARS(TIME=IF(PERIOD=0,2100,2100),1)),NODRAW;///////////////////////////////////////////////////、////////////////////////////////////高低横线///指标((一))
//老师以上边指标为依据,修改下面指标显示,秒周期 分钟周期 2分钟周期都能好用。XXX:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IF(PERIOD=0,0900,0900)&&TIME<IF(PERIOD=0,1500,1500),0.5)||CROSS(TIME>=IF(PERIOD=0,2100,2100)&&TIME<IF(PERIOD=0,2200,2200),0.5))+1);
DRAWSL(XXX&&XXA&&(ISLASTBAR||REFX(TIME=2100,1)),HHV(H,BARSLAST(CROSS(XXX,0.5))+1),0,-BARSLAST(CROSS(XXX,0.5)),0,COLORWHITE),LINETHICK4;
DRAWSL(XXX&&XXA&&(ISLASTBAR||REFX(TIME=2100,1)),LLV(L,BARSLAST(CROSS(XXX,0.5))+1),0,-BARSLAST(CROSS(XXX,0.5)),0,COLORWHITE),LINETHICK4;
//BC:=BACKSET(ISLASTBAR,BARSLAST(TIME=2100)/2+2);
//AA:CROSS(BACKSET(ISLASTBAR,( BARSLAST( CROSS(XXX,0.5) ) /2 )+1 ),0.5),NODRAW;
//DRAWNUMBER(AA,REFX1(HHV(H,BARSLAST(CROSS(XXX,0.5))+1),10000) ,REFX1(HHV(H,BARSLAST(CROSS(XXX,0.5))+1),10000),0 ,COLORWHITE) ,FONTSIZE18;
//DRAWNUMBER(AA,REFX1(LLV(L,BARSLAST(CROSS(XXX,0.5))+1),10000) ,REFX1(LLV(L,BARSLAST(CROSS(XXX,0.5))+1),10000),0,COLORWHITE),VALIGN0,FONTSIZE18;
//DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,HHVBARS(H,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),H,158);//下行图标
//DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,LLVBARS(L,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),L,158),VALIGN0;//上行图标
//H=HHV(H,BARSLAST(TIME=IF(PERIOD=0,210000,2100))+1),SOUND('';
//L=LLV(L,BARSLAST(TIME=IF(PERIOD=0,210000,2100))+1),SOUND('';/////////////////////////////////////////////////////////////////////////////////////////////////////高低横线///指标((一))
//XXX:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IF(PERIOD=0,090000,0900)&&TIME<IF(PERIOD=0,150000, 1500),0.5)||CROSS(TIME>=IF(PERIOD=0,210000,2100)&&TIME<IF(PERIOD=0,220000,2200),0.5))+1);////指标 2
M:=5;//M值需要大于等于5
G:=MA(C,5);
D:=MA(C,10);
NNH:=BARSLAST(H=HHV(H,M)) ,NODRAW;
NNL:=BARSLAST(L=LLV(L,M)) ,NODRAW;
NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=M-3,NNH,IF(REF(G,NNL)<REF(D,NNL) AND NNL<=M-3,NNL,M-2)) ,NODRAW;
NNN:=IF(ISLASTBAR AND NN>0,NN,M-2) ,NODRAW;
H1:=REF(H,NNN)=HHV(H,M-1);
L1:=REF(L,NNN)=LLV(L,M-1);
FG01:=BACKSET(H1,NNN+1)>BACKSET(H1,NNN),NODRAW;//只设置前面第M-1个
FD01:=BACKSET(L1,NNN+1)>BACKSET(L1,NNN) ,NODRAW;
FG02:=FG01=FD01 AND G>D,NODRAW;
FD02:=FG01=FD01 AND G<D,NODRAW;
TTTT:=BARSLAST(FD01),NODRAW;
FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,M))>=M-2,M-2,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;
FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,M))>=M-2,M-2,BARSLAST(FG01)))) AND FG02=0 ,NODRAW;
GT:=BARSLAST(FG0),NODRAW;
DT:=BARSLAST(FD0),NODRAW;
LLLL:=DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;
FG1:=BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;
FD1:=BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;
FG11:=IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,M)))>REF(D,BARSLAST(L=LLV(L,M))),BARSLAST(L=LLV(L,M))<M-2,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;
FD11:=IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,M)))<REF(D,BARSLAST(H=HHV(H,M))),BARSLAST(H=HHV(H,M))<M-2,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;
GT1:=BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;
DT1:=BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;
FD2:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+M-2),DT1+1),NODRAW;
FG2A:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+M-2) AND REF(H,GT1)>HHV(H,GT1+M-2),GT1+1),NODRAW;
FG2B:=IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+M-1) AND H>HHV(H,REF(GT1,1)+M-1),1,0),NODRAW;
FG2:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+M-2),GT1+1),NODRAW;
FD2A:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+M-2) AND REF(L,DT1)>LLV(L,DT1+M-2),DT1+1),NODRAW;
FD2B:=IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+M-1),1,0),NODRAW;
TTTTTT:= H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;
HHHHHH:=REF(LLV(L,10),DT1),NODRAW;
FG21:=IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;
FD21:=IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;
FD231:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;
FG23:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;
FG231:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;
FD23:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;
FDD23:=REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;
FD24:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;
FG24:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;
GT2:=BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;
DT2:=BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;
FG3:=BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;
FD3:=BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;
FG31:=IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;
FD31:=IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;
GT3:=BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;
DT3:=BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;
FG4:=BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;
FD4:=BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;
FG41:=IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;
FD41:=IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;
HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;
LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;
HH:=HV(H,10),COLORYELLOW,LINETHICK1;
LL:=LV(L,10),COLORRED,LINETHICK1;
AAA:=CROSS(C,HH);
BAA:=CROSSDOWN(C,LL);
//DRAWICON(AAA&&XXX,L,144),VALIGN0;////图标
//DRAWICON(BAA&&XXX,H,142);////图标
HTH:=VALUEWHEN(LLL&&XXX,L);////横线指标
LT:=VALUEWHEN(HHH&&XXX,H);
NG11:=BACKSET(ISLASTBAR,BARSLAST(CROSS(EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0,0.5))+1);
NG22:=BACKSET(ISLASTBAR,BARSLAST(CROSS(EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0,0.5))+1);
DRAWSL(EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0,HTH,0,1,0,COLORRED),DASHDOTDOT;////虚横线
DRAWSL(EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0,LT,0,1,0,COLORBLUE),DASHDOTDOT;////虚横线
DRAWSL(NG11&&EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0,HTH,0,1,0,COLORRED),LINETHICK2;////横线
DRAWSL(NG22&&EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0,LT,0,1,0,COLORBLUE),LINETHICK2;////横线
XXXX1:=CROSS(BACKSET(ISLASTBAR,BARSLAST(EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0)+1),0.5);
XXXX2:=CROSS(BACKSET(ISLASTBAR,BARSLAST(EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0)+1),0.5);
//DRAWSL(XXXX2,HTH,0,999,0,COLORRED),LINETHICK4;////横线
//DRAWSL(XXXX1,LT,0,999,0,COLORBLUE),LINETHICK4;////横线指标
RR:=AAA&&NOT(LLL||HHH)||LLL;
GG:=BAA&&NOT(LLL||HHH)||HHH;
////老师,以以上K线形态为依据,把下列指标中的竹线 修改成上面K线形态,K线主体必须以 2 为标准 不能超过 2 ,该空心就空心 该实心就实心。
//STICKLINE1(BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS))&&C>=O,O,C,3,1),RGB(206,0,0);
STICKLINE1(BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS))&&C>=O,O,C,2,1),RGB(206,0,0);
STICKLINE1(BARSLAST(RR)<BARSLAST(GG)&&XXX&&C<O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS))&&C<O,O,C,2,0),RGB(206,0,0);
DRAWLINE(BARSLAST(RR)<BARSLAST(GG)&&XXX||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),H,1,MAX(O,C),RGB(206,0,0)),LINETHICK3;
DRAWLINE(BARSLAST(RR)<BARSLAST(GG)&&XXX||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),L,1,MIN(O,C),RGB(206,0,0)),LINETHICK3;
//STICKLINE1(BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS))&&C>=O,O,C,3,1),COLORBLUE;
STICKLINE1(BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS))&&C>=O,O,C,2,1),COLORBLUE;
STICKLINE1(BARSLAST(RR)>BARSLAST(GG)&&XXX&&C<O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS))&&C<O,O,C,2,0),COLORBLUE;
DRAWLINE(BARSLAST(RR)>BARSLAST(GG)&&XXX||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),H,1,MAX(O,C),COLORBLUE),LINETHICK3;
DRAWLINE(BARSLAST(RR)>BARSLAST(GG)&&XXX||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),L,1,MIN(O,C),COLORBLUE),LINETHICK3;
R1:BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),NODRAW;
B1:BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),NODRAW;
DRAWLINE(R1&&ISEQUAL,H,1,L,RGB(206,0,0)),LINETHICK3;
DRAWSL(R1&&ISEQUAL,O,0,0.4,0,RGB(206,0,0)),LINETHICK3;
DRAWSL(R1&&ISEQUAL,O,0,-0.4,0,RGB(206,0,0)),LINETHICK3;
DRAWLINE(B1&&ISEQUAL,H,1,L,COLORBLUE),LINETHICK3;
DRAWSL(B1&&ISEQUAL,O,0,0.4,0,COLORBLUE),LINETHICK3;
DRAWSL(B1&&ISEQUAL,O,0,-0.4,0,COLORBLUE),LINETHICK3;
//DRAWICON(AAA&&XXX,L,144),VALIGN0;////图标
//DRAWICON(BAA&&XXX,H,142);////图标
//R1:BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),NODRAW;
//B1:BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),NODRAW;
DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,HHVBARS(H,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),H,158),VALIGN0;//下行图标
DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,LLVBARS(L,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),L,158);//上行图标来源:程序化99
-
文华技术人员:
自定义分钟周期无法使用PERIOD函数,其他周期参考:
NG:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),090000,0900)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),150000, 1500),0.5)||CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),210000,2100)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),220000,2200),0.5))+1);////指标 2XXA:=BACKSET(ISLASTBAR,SUMBARS(TIME=IF(PERIOD=0,210000,2100),1)),NODRAW;///////////////////////////////////////////////////、////////////////////////////////////高低横线///指标((一))//老师以上边指标为依据,修改下面指标显示,秒周期 分钟周期 2分钟周期都能好用。XXX:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IF(PERIOD=0,090000,0900)&&TIME<IF(PERIOD=0,150000,1500),0.5)||CROSS(TIME>=IF(PERIOD=0,210000,2100)&&TIME<IF(PERIOD=0,220000,2200),0.5))+1);DRAWSL(XXX&&XXA&&(ISLASTBAR||REFX(TIME=2100,1)),HHV(H,BARSLAST(CROSS(XXX,0.5))+1),0,-BARSLAST(CROSS(XXX,0.5)),0,COLORWHITE),LINETHICK4;DRAWSL(XXX&&XXA&&(ISLASTBAR||REFX(TIME=2100,1)),LLV(L,BARSLAST(CROSS(XXX,0.5))+1),0,-BARSLAST(CROSS(XXX,0.5)),0,COLORWHITE),LINETHICK4;//BC:=BACKSET(ISLASTBAR,BARSLAST(TIME=2100)/2+2);//AA:CROSS(BACKSET(ISLASTBAR,( BARSLAST( CROSS(XXX,0.5) ) /2 )+1 ),0.5),NODRAW;//DRAWNUMBER(AA,REFX1(HHV(H,BARSLAST(CROSS(XXX,0.5))+1),10000) ,REFX1(HHV(H,BARSLAST(CROSS(XXX,0.5))+1),10000),0 ,COLORWHITE) ,FONTSIZE18;//DRAWNUMBER(AA,REFX1(LLV(L,BARSLAST(CROSS(XXX,0.5))+1),10000) ,REFX1(LLV(L,BARSLAST(CROSS(XXX,0.5))+1),10000),0,COLORWHITE),VALIGN0,FONTSIZE18;//DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,HHVBARS(H,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),H,158);//下行图标//DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,LLVBARS(L,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),L,158),VALIGN0;//上行图标//H=HHV(H,BARSLAST(TIME=IF(PERIOD=0,210000,2100))+1),SOUND('A');//L=LLV(L,BARSLAST(TIME=IF(PERIOD=0,210000,2100))+1),SOUND('B');/////////////////////////////////////////////////////////////////////////////////////////////////////高低横线///指标((一))//XXX:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IF(PERIOD=0,090000,0900)&&TIME<IF(PERIOD=0,150000, 1500),0.5)||CROSS(TIME>=IF(PERIOD=0,210000,2100)&&TIME<IF(PERIOD=0,220000,2200),0.5))+1);////指标 2
M:=5;//M值需要大于等于5G:=MA(C,5);D:=MA(C,10);NNH:=BARSLAST(H=HHV(H,M)) ,NODRAW;NNL:=BARSLAST(L=LLV(L,M)) ,NODRAW;NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=M-3,NNH,IF(REF(G,NNL)<REF(D,NNL) AND NNL<=M-3,NNL,M-2)) ,NODRAW;NNN:=IF(ISLASTBAR AND NN>0,NN,M-2) ,NODRAW;H1:=REF(H,NNN)=HHV(H,M-1);L1:=REF(L,NNN)=LLV(L,M-1);FG01:=BACKSET(H1,NNN+1)>BACKSET(H1,NNN),NODRAW;//只设置前面第M-1个FD01:=BACKSET(L1,NNN+1)>BACKSET(L1,NNN) ,NODRAW;FG02:=FG01=FD01 AND G>D,NODRAW;FD02:=FG01=FD01 AND G<D,NODRAW;TTTT:=BARSLAST(FD01),NODRAW;FG0:=FG01 AND IF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,M))>=M-2,M-2,BARSLAST(FD01)))) AND FD02=0 ,NODRAW;FD0:=FD01 AND IF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,M))>=M-2,M-2,BARSLAST(FG01)))) AND FG02=0 ,NODRAW;GT:=BARSLAST(FG0),NODRAW;DT:=BARSLAST(FD0),NODRAW;LLLL:=DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;FG1:=BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;FD1:=BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;FG11:=IF(GT=0 AND REF(GT,1)<DT AND IF(REF(G,BARSLAST(L=LLV(L,M)))>REF(D,BARSLAST(L=LLV(L,M))),BARSLAST(L=LLV(L,M))<M-2,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;FD11:=IF(DT=0 AND REF(DT,1)<GT AND IF(REF(G,BARSLAST(H=HHV(H,M)))<REF(D,BARSLAST(H=HHV(H,M))),BARSLAST(H=HHV(H,M))<M-2,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;GT1:=BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;DT1:=BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;FD2:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)>LLV(L,GT1+M-2),DT1+1),NODRAW;FG2A:=BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+M-2) AND REF(H,GT1)>HHV(H,GT1+M-2),GT1+1),NODRAW;FG2B:=IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+M-1) AND H>HHV(H,REF(GT1,1)+M-1),1,0),NODRAW;FG2:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)<HHV(H,DT1+M-2),GT1+1),NODRAW;FD2A:=BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+M-2) AND REF(L,DT1)>LLV(L,DT1+M-2),DT1+1),NODRAW;FD2B:=IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6) AND L>LLV(L,REF(DT1,1)+M-1),1,0),NODRAW;TTTTTT:= H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;HHHHHH:=REF(LLV(L,10),DT1),NODRAW;FG21:=IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;FD21:=IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;FD231:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;FG23:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) OR REF(FD231,DT1)=0),GT1+1),NODRAW;FG231:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;FD23:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) OR REF(FG231,GT1)=0),DT1+1),NODRAW;FDD23:=REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;FD24:=BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FG24:=BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;GT2:=BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;DT2:=BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;FG3:=BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW;FD3:=BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW;FG31:=IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;FD31:=IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;GT3:=BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;DT3:=BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;FG4:=BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW;FD4:=BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW;FG41:=IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;FD41:=IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;HH:=HV(H,10),COLORYELLOW,LINETHICK1;LL:=LV(L,10),COLORRED,LINETHICK1;AAA:=CROSS(C,HH);BAA:=CROSSDOWN(C,LL);//DRAWICON(AAA&&XXX,L,144),VALIGN0;////图标//DRAWICON(BAA&&XXX,H,142);////图标HTH:=VALUEWHEN(LLL&&XXX,L);////横线指标LT:=VALUEWHEN(HHH&&XXX,H);NG11:=BACKSET(ISLASTBAR,BARSLAST(CROSS(EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0,0.5))+1);NG22:=BACKSET(ISLASTBAR,BARSLAST(CROSS(EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0,0.5))+1);DRAWSL(EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0,HTH,0,1,0,COLORRED),DASHDOTDOT;////虚横线DRAWSL(EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0,LT,0,1,0,COLORBLUE),DASHDOTDOT;////虚横线DRAWSL(NG11&&EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0,HTH,0,1,0,COLORRED),LINETHICK2;////横线DRAWSL(NG22&&EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0,LT,0,1,0,COLORBLUE),LINETHICK2;////横线XXXX1:=CROSS(BACKSET(ISLASTBAR,BARSLAST(EXIST(LLL&&XXX,SUMBARS(HHH&&XXX,1))=0)+1),0.5);XXXX2:=CROSS(BACKSET(ISLASTBAR,BARSLAST(EXIST(HHH&&XXX,SUMBARS(LLL&&XXX,1))=0)+1),0.5);//DRAWSL(XXXX2,HTH,0,999,0,COLORRED),LINETHICK4;////横线//DRAWSL(XXXX1,LT,0,999,0,COLORBLUE),LINETHICK4;////横线指标RR:=AAA&&NOT(LLL||HHH)||LLL;GG:=BAA&&NOT(LLL||HHH)||HHH;////老师,以以上K线形态为依据,把下列指标中的竹线 修改成上面K线形态,K线主体必须以 2 为标准 不能超过 2 ,该空心就空心 该实心就实心。//STICKLINE1(BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS))&&C>=O,O,C,3,1),RGB(206,0,0);STICKLINE1(BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS))&&C>=O,O,C,2,1),RGB(206,0,0);STICKLINE1(BARSLAST(RR)<BARSLAST(GG)&&XXX&&C<O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS))&&C<O,O,C,2,0),RGB(206,0,0);DRAWLINE(BARSLAST(RR)<BARSLAST(GG)&&XXX||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),H,1,MAX(O,C),RGB(206,0,0)),LINETHICK3;DRAWLINE(BARSLAST(RR)<BARSLAST(GG)&&XXX||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),L,1,MIN(O,C),RGB(206,0,0)),LINETHICK3;//STICKLINE1(BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS))&&C>=O,O,C,3,1),COLORBLUE;STICKLINE1(BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS))&&C>=O,O,C,2,1),COLORBLUE;STICKLINE1(BARSLAST(RR)>BARSLAST(GG)&&XXX&&C<O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS))&&C<O,O,C,2,0),COLORBLUE;DRAWLINE(BARSLAST(RR)>BARSLAST(GG)&&XXX||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),H,1,MAX(O,C),COLORBLUE),LINETHICK3;DRAWLINE(BARSLAST(RR)>BARSLAST(GG)&&XXX||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),L,1,MIN(O,C),COLORBLUE),LINETHICK3;R1:BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),NODRAW;B1:BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),NODRAW;DRAWLINE(R1&&ISEQUAL,H,1,L,RGB(206,0,0)),LINETHICK3;DRAWSL(R1&&ISEQUAL,O,0,0.4,0,RGB(206,0,0)),LINETHICK3;DRAWSL(R1&&ISEQUAL,O,0,-0.4,0,RGB(206,0,0)),LINETHICK3;DRAWLINE(B1&&ISEQUAL,H,1,L,COLORBLUE),LINETHICK3;DRAWSL(B1&&ISEQUAL,O,0,0.4,0,COLORBLUE),LINETHICK3;DRAWSL(B1&&ISEQUAL,O,0,-0.4,0,COLORBLUE),LINETHICK3;//DRAWICON(AAA&&XXX,L,144),VALIGN0;////图标//DRAWICON(BAA&&XXX,H,142);////图标//R1:BARSLAST(RR)<BARSLAST(GG)&&XXX&&C>=O||EXIST(RR,BARPOS)&&XXX&&NOT(EXIST(GG,BARPOS)),NODRAW;//B1:BARSLAST(RR)>BARSLAST(GG)&&XXX&&C>=O||EXIST(GG,BARPOS)&&XXX&&NOT(EXIST(RR,BARPOS)),NODRAW;DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,HHVBARS(H,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),H,158),VALIGN0;//下行图标DRAWICON (XXX&&CROSS(BACKSET(ISLASTBAR,LLVBARS(L,BARSLAST(CROSS(XXX,0.5))+1)+1),0.5),L,158);//上行图标
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容