主图
周期微调 1 20 3
趋势线开关 1 1 1
STICKLINE(VOL/REF(VOL,1)>=2.8,OPEN,CLOSE,1,0),COLORYELLOW;{高量柱}
DRAWTEXT(VOL/REF(VOL,1)>=2.8,L*0.99,'高量'),COLORYELLOW;
A1:=REF(HIGH,3)=HHV(HIGH,周期微调*3+1);
B1:=FILTER(A1,3);
C11:=BACKSET(B1,3+1);
D11:=FILTER(C11,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,周期微调*3+1);
B2:=FILTER(A2,3);
C22:=BACKSET(B2,3+1);
D22:=FILTER(C22,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
H1:=(D11 AND NOT(D22 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
H2:=D11 AND NOT(D22 AND E1>=E2);
L1:=D22 AND NOT(D11 AND E1=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
IF(趋势线开关=1,DRAWLINE(LD,L,HD,H,0),DRAWNULL)LINETHICK1,DOTLINE,COLOR0000FF;
IF(趋势线开关=1,DRAWLINE(HD,H,LD,L,0),DRAWNULL)LINETHICK1,DOTLINE,COLOR00FF00;
J1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HD),BARSLAST(LD))+1);
J2:=J1>REF(J1,1);
A3:=H;
B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));
D33:=A3 AND B3 AND HD;
E3:=BACKSET(D33,REF(BARSLAST(HD),1)+2);
HH:=E3>REF(E3,1);
A4:=L>REF(L,REF(BARSLAST(LD),1)+1);
B4:=REF(L,REF(BARSLAST(LD),1)+1);
D4:=A4 AND B4 AND LD;
E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);
LL:=E4>REF(E4,1);
H3:=HH OR BARSTATUS=2 OR BARSCOUNT(C)=1;
X3:=REF(BARSLAST(H3),1)+1;
F3:=BACKSET(H3 AND COUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(10,20)),X3));
G3:=F3>REF(F3,1); I3:=BACKSET(G3,2);
LZ:=I3>REF(I3,1);
L4:=LZ OR BARSTATUS=2 OR BARSCOUNT(C)=1;
X4:=REF(BARSLAST(L4),1)+1;
F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));
G4:=F4>REF(F4,1); I4:=BACKSET(G4,2); HZ:=I4>REF(I4,1);
K1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HZ),BARSLAST(LZ))+1); K2:=K1>REF(K1,1);
UU:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
WWQ:=BACKSET(XX,REF(BARSLAST(LD),1)+2);
XXQ:=WWQ>REF(WWQ,1);
UU2:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
WW3Q:=BACKSET(XX2,REF(BARSLAST(HD),1)+2);
XX3Q:=WW3Q>REF(WW3Q,1);
WW4Q:=BACKSET(XX3Q,REF(BARSLAST(HD),1)+2);
XX4Q:=WW4Q>REF(WW4Q,1);
Q0:=BARSLAST(XX2>0);
Q1:=BARSLAST(XX>0);
Q2:=BARSLAST(WW2>0);
Q3:=BARSLAST(VV>0);
Q4:=BARSLAST(XXQ>0);
Q5:=BARSLAST(XX3Q>0);
Q6:=BARSLAST(XX4Q>0);
DRAWTEXT( VV=1 AND Q0>Q1,L,'【C】')COLORMAGENTA;
DRAWTEXT(VV2=1 AND Q0>Q1,H,'【B】')COLORMAGENTA;
DRAWTEXT( XX=1 AND Q0>Q1,L,'【A】')COLORMAGENTA;
DRAWTEXT(XX2=1 AND Q5>Q4 ,H,'【D】')COLORMAGENTA;
DRAWTEXT(XXQ=1 AND Q5>Q4 ,L,'【E】')COLORMAGENTA;
DRAWTEXT(VV2=1 AND Q0<Q1,H,'【C-】')COLORMAGENTA;
DRAWTEXT( VV=1 AND Q0<Q1,L,'【B-】')COLORMAGENTA;
DRAWTEXT(XX2=1 AND Q0<Q1,H,'【A-】')COLORMAGENTA;
DRAWTEXT( XX=1 AND Q5<Q4,L,'【D】')COLORMAGENTA;
DRAWTEXT(XX3Q=1 AND Q5<Q4,H,'【E】')COLORMAGENTA;{//5个点两种形态}
{两点卖出,E、D}
周期E:=BARSLAST(XX3Q=1 AND Q5<Q4);
周期D:=BARSLAST(XX=1 AND Q5<Q4);
E:=REF(H,周期E);
D:=REF(L,周期D);
XS1:=SQRT(E/D);
C11:=D*SQRT(XS1);
C12:=D*XS1;
C13:=D*(SQRT(XS1)+XS1-1);
STICKLINE(CURRBARSCOUNT=CONST(周期D)+1,D,C13,0,-1),COLORFF00FF;
DRAWLINE(CURRBARSCOUNT=CONST(周期D)+1,C11,CURRBARSCOUNT=CONST(周期D)-3,C11,0),DOTLINE,COLORFF00FF;
DRAWLINE(CURRBARSCOUNT=CONST(周期D)+1,C12,CURRBARSCOUNT=CONST(周期D)-5,C12,0),DOTLINE,COLORFF00FF;
DRAWLINE(CURRBARSCOUNT=CONST(周期D)+1,C13,CURRBARSCOUNT=CONST(周期D)-7,C13,0),DOTLINE,COLORFF00FF;
DRAWLINE(CURRBARSCOUNT=CONST(周期D)+1,L,CURRBARSCOUNT=CONST(周期D)-6,C13,0),DOTLINE,COLORFF00FF;{//斜线}
IF(Q5<Q4,DRAWLINE(XX3Q,H,XX,L,0),DRAWNULL)COLORMAGENTA,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期D)+1,C11,VARCAT('C1=',VAR2STR(C11,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=CONST(周期D)+1,C12,VARCAT('C2=',VAR2STR(C12,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=CONST(周期D)+1,C13,VARCAT('(E、D)C3=',VAR2STR(C13,2))),COLORYELLOW;
{两点卖出,A-,B-}
周期A2:=BARSLAST(XX2=1 AND Q0<Q1);
周期B2:=BARSLAST(VV=1 AND Q0<Q1);
A2:=REF(H,周期A2);
B2:=REF(L,周期B2);
XS2:=SQRT((A2)/(B2));
C21:=B2*SQRT(XS2);
C22:=B2*XS2;
C23:=B2*(SQRT(XS2)+XS2-1);
STICKLINE(CURRBARSCOUNT=CONST(周期B2)+1,B2,C23,0,-1),COLORMAGENTA;
C1D:DRAWLINE(CURRBARSCOUNT=CONST(周期B2)+1,C21,CURRBARSCOUNT=CONST(周期B2)-3,C21,0),DOTLINE,COLORFF00FF;
C2D:DRAWLINE(CURRBARSCOUNT=CONST(周期B2)+1,C22,CURRBARSCOUNT=CONST(周期B2)-5,C22,0),DOTLINE,COLORFF00FF;
C3D:DRAWLINE(CURRBARSCOUNT=CONST(周期B2)+1,C23,CURRBARSCOUNT=CONST(周期B2)-6,C23,0),DOTLINE,COLORFF00FF;
DRAWLINE(CURRBARSCOUNT=CONST(周期B2)+1,L,CURRBARSCOUNT=CONST(周期B2)-6,C23,0),DOTLINE,COLORFF00FF;{//斜线}
IF(Q0<Q1,DRAWLINE(XX2,H,VV,L,0),DRAWNULL)COLORLIRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B2)+1,C21,VARCAT('C1D=',VAR2STR(C21,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B2)+1,C22,VARCAT('C2D=',VAR2STR(C22,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B2)+1,C23,VARCAT('(A-、B-)C3D=',VAR2STR(C23,2))),COLORYELLOW;
{三点卖出,D,A-,B-,创新高}
周期C2:=BARSLAST(VV2=1 AND Q0<Q1);
C2:=REF(H,周期C2);
A3:=IFC(D<B2,A2,DRAWNULL);
VARV1:=SQRT(A3/D);
VARV2:=SQRT(VARV1);
N1:=A3/VARV2;
N2:=A3/VARV1;
N3:=A3/(VARV2+VARV1-1);
D11:=2*A3-D-(N2-N3),COLORRED,NODRAW;
D12:=A3+(A2-D),COLORRED,NODRAW;
D13:=2*A3-D+(N1-N2),COLORRED,NODRAW;
STICKLINE(D<B2 AND CURRBARSCOUNT=CONST(周期B2)+1,B2,D13,0,0),COLORLIRED;
D1B:DRAWLINE(D<B2 AND CURRBARSCOUNT=CONST(周期B2)+1,D11,D<B2 AND CURRBARSCOUNT=CONST(周期B2)-8,D11,0),DOTLINE,COLORLIRED;
D2B:DRAWLINE(D<B2 AND CURRBARSCOUNT=CONST(周期B2)+1,D12,D<B2 AND CURRBARSCOUNT=CONST(周期B2)-8,D12,0),DOTLINE,COLORLIRED;
D3B:DRAWLINE(D<B2 AND CURRBARSCOUNT=CONST(周期B2)+1,D13,D<B2 AND CURRBARSCOUNT=CONST(周期B2)-8,D13,0),DOTLINE,COLORLIRED;
DRAWLINE(D<B2 AND CURRBARSCOUNT=CONST(周期B2)+1,L,D<B2 AND CURRBARSCOUNT=CONST(周期B2)-6,D13,0),DOTLINE,COLORLIRED;{//斜线}
IF(Q0<Q1,DRAWLINE(XX,L,XX2,H,0),DRAWNULL)COLORLIRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B2)+1,D11,VARCAT('(D、A-、B-)D1B=',VAR2STR(D11,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B2)+1,D12,VARCAT('D2=B',VAR2STR(D12,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B2)+1,D13,VARCAT('D3=B',VAR2STR(D13,2))),COLORWHITE;
{两点买入,D,A-}
XS3:=SQRT(A2/D);
C31:=A2/SQRT(XS3);
C32:=A2/XS3;
C33:=A2/(SQRT(XS3)+XS3-1);
STICKLINE(CURRBARSCOUNT=CONST(周期A2)+1,A2,C33,0,-1),COLORFF8000;
C1C:DRAWLINE(CURRBARSCOUNT=CONST(周期A2)+1,C31,CURRBARSCOUNT=CONST(周期A2)-3,C31,0),DOTLINE,COLORFF8000;
C2C:DRAWLINE(CURRBARSCOUNT=CONST(周期A2)+1,C32,CURRBARSCOUNT=CONST(周期A2)-5,C32,0),DOTLINE,COLORFF8000;
C3C:DRAWLINE(CURRBARSCOUNT=CONST(周期A2)+1,C33,CURRBARSCOUNT=CONST(周期A2)-7,C33,0),DOTLINE,COLORFF8000;
DRAWLINE(CURRBARSCOUNT=CONST(周期A2)+1,H,CURRBARSCOUNT=CONST(周期A2)-6,C33,0),DOTLINE,COLORFF8000;{//斜线}
IF(Q5<Q4,DRAWLINE(XX,L,XX2,H,0),DRAWNULL),COLORFF8080,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期A2)+1,C31,VARCAT('C1C=',VAR2STR(C31,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期A2)+1,C32,VARCAT('C2C=',VAR2STR(C32,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期A2)+1,C33,VARCAT('(D、A-)C3C=',VAR2STR(C33,2))),COLORWHITE;
{两点买入,A,B}
周期A:=BARSLAST(XX=1 AND Q0>Q1);
周期B:=BARSLAST(VV2=1 AND Q0>Q1);
A:=REF(L,周期A);
B:=REF(H,周期B);
XS4:=SQRT(B/A);
C41:=B/SQRT(XS4);
C42:=B/XS4;
C43:=B/(SQRT(XS4)+XS4-1);
STICKLINE(CURRBARSCOUNT=CONST(周期B)+1,B,C43,0,-1),COLORFF8000;
C1B:DRAWLINE(CURRBARSCOUNT=CONST(周期B)+1,C41,CURRBARSCOUNT=1,C41,0),DOTLINE,COLORFF8000;
C2B:DRAWLINE(CURRBARSCOUNT=CONST(周期B)+1,C42,CURRBARSCOUNT=1,C42,0),DOTLINE,COLORFF8000;
C3B:DRAWLINE(CURRBARSCOUNT=CONST(周期B)+1,C43,CURRBARSCOUNT=1,C43,0),DOTLINE,COLORFF8000;
DRAWLINE(CURRBARSCOUNT=CONST(周期B)+1,H,CONST(C43),C43,-1),DOTLINE,COLORFF8000;{//斜线}
IF(Q0>Q1,DRAWLINE(XX,L,VV2,H,0),DRAWNULL),COLORFF8800,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B)+1,C41,VARCAT('C1B=',VAR2STR(C41,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B)+1,C42,VARCAT('C2B=',VAR2STR(C42,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期B)+1,C43,VARCAT('(A、B)C3B=',VAR2STR(C43,2))),COLORWHITE;
{两点卖出,B,C}
周期C:=BARSLAST(VV=1 AND Q0>Q1);
C:=REF(L,周期C);
XS5:=SQRT(B/C);
C51:=C*SQRT(XS5);
C52:=C*XS5;
C53:=C*(SQRT(XS5)+XS5-1);
STICKLINE(CURRBARSCOUNT=CONST(周期C)+1,C,C53,0,-1),COLORMAGENTA;
C1A:DRAWLINE(CURRBARSCOUNT=CONST(周期C)+1,C51,CURRBARSCOUNT=CONST(周期C)-1,C51,0),DOTLINE,COLORFF00FF;
C2A:DRAWLINE(CURRBARSCOUNT=CONST(周期C)+1,C52,CURRBARSCOUNT=CONST(周期C)-2,C52,0),DOTLINE,COLORFF00FF;
C3A:DRAWLINE(CURRBARSCOUNT=CONST(周期C)+1,C53,CURRBARSCOUNT=CONST(周期C)-3,C53,0),DOTLINE,COLORFF00FF;
DRAWLINE(CURRBARSCOUNT=CONST(周期C)+1,L,CURRBARSCOUNT=CONST(周期C)-3,C53,0),DOTLINE,COLORFF00FF;{//斜线}
IF(Q0>Q1,DRAWLINE(VV2,H,VV,L,0),DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C)+1,C51,VARCAT('C1A=',VAR2STR(C51,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C)+1,C52,VARCAT('C2A=',VAR2STR(C52,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C)+1,C53,VARCAT('(B、C)C3A=',VAR2STR(C53,2))),COLORYELLOW;
{三点卖出,A,B,C,创新高}
B3:=IFC(A<C,B,DRAWNULL);
VARV3:=SQRT(B3/A);
VARV4:=SQRT(VARV3);
N4:=B3/VARV4;
N5:=B3/VARV3;
N6:=B3/(VARV3+VARV4-1);
D21:=2*B3-A-(N5-N6),COLORRED,NODRAW;
D22:=B3+(B3-A),COLORRED,NODRAW;
D23:=2*B3-A+(N4-N5),COLORRED,NODRAW;
STICKLINE(A<C AND CURRBARSCOUNT=CONST(周期C)+1,C,D23,0,0),COLORLIRED;
D1A:DRAWLINE(A<C AND CURRBARSCOUNT=CONST(周期C)+1,D21,A<C AND CURRBARSCOUNT=1,D21,1),DOTLINE,COLORLIRED;
D2A:DRAWLINE(A<C AND CURRBARSCOUNT=CONST(周期C)+1,D22,A<C AND CURRBARSCOUNT=1,D22,1),DOTLINE,COLORLIRED;
D3A:DRAWLINE(A<C AND CURRBARSCOUNT=CONST(周期C)+1,D23,A<C AND CURRBARSCOUNT=1,D23,1),DOTLINE,COLORLIRED;
DRAWLINE(A<C AND CURRBARSCOUNT=CONST(周期C)+1,L,A<C AND CONST(D23),D23,-1),DOTLINE,COLORLIRED;{//斜线}
IF(Q0>Q1,DRAWLINE(XX,L,VV2,H,0),DRAWNULL),COLORFF8080,LINETHICK2;
IF(Q0>Q1,DRAWLINE(VV2,H,VV,L,0),DRAWNULL),COLORLIRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C)+1,D21,VARCAT('(A、B、C)D1A=',VAR2STR(D21,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C)+1,D22,VARCAT('D2A=',VAR2STR(D22,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C)+1,D23,VARCAT('D3A=',VAR2STR(D23,2))),COLORWHITE;
{两点买入,B-,C-}
XS6:=SQRT(C2/B2);
C61:=C2/SQRT(XS6);
C62:=C2/XS6;
C63:=C2/(SQRT(XS6)+XS6-1);
STICKLINE(CURRBARSCOUNT=CONST(周期C2)+1,C2,C63,0,-1),COLORFF8000;
C1:DRAWLINE(CURRBARSCOUNT=CONST(周期C2)+1,C61,ISLASTBAR,C61,0),DOTLINE,COLORFF8000;
C2:DRAWLINE(CURRBARSCOUNT=CONST(周期C2)+1,C62,ISLASTBAR,C62,0),DOTLINE,COLORFF8000;
C3:DRAWLINE(CURRBARSCOUNT=CONST(周期C2)+1,C63,ISLASTBAR,C63,0),DOTLINE,COLORFF8000;
DRAWLINE(CURRBARSCOUNT=CONST(周期C2)+1,H,CURRBARSCOUNT=1,C63,0),DOTLINE,COLORFF8000;{//斜线}
IF(Q0<Q1,DRAWLINE(VV,L,XX2,H,0),DRAWNULL),COLORFF8080,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C2)+1,C61,VARCAT('C1=',VAR2STR(C61,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C2)+1,C62,VARCAT('C2=',VAR2STR(C62,2))),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C2)+1,C63,VARCAT('(B-、C-)C3=',VAR2STR(C63,2))),COLORWHITE;
{双三提示}
C1切入:=(L<=C61 AND C>C61) OR (REF(L<=C61 AND H>C61,1) AND C>=C61*1.03);
C2切入:=(L<=C62 AND C>C62) OR (REF(L<=C62 AND H>C62,1) AND C>=C62*1.03);
C3切入:=(L<=C63 AND C>C63) OR (REF(L<=C63 AND H>C63,1) AND C>=C63*1.03);
X_66:=BARSLAST(C1切入 OR C2切入 OR C3切入),NODRAW;
提示:STICKLINE(周期C2>X_66 AND (C1切入 OR C2切入 OR C3切入),REF(O,X_66),REF(C,X_66),3,0),COLORFF0080;
{触及目标价后上涨3%}
DRAWTEXT(CURRBARSCOUNT=3,C61*1.03,VARCAT('双三C1----',VAR2STR(C61*1.03,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=3,C62*1.03,VARCAT('双三C2----',VAR2STR(C62*1.03,2))),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=3,C63*1.03,VARCAT('双三C3----',VAR2STR(C63*1.03,2))),COLORYELLOW;
{三点买入,A-,B-,C-}
B4:=IFC(A2>C2,B2,DRAWNULL);
XS7:=SQRT(A2/B4);
D31:=B4/SQRT(XS7);
D32:=B4/XS7;
D33:=B4/(SQRT(XS7)+XS7-1);
STICKLINE(A2>C2 AND CURRBARSCOUNT=CONST(周期C2)+1,C2,D33,0,0),COLORFF8080;
D1:DRAWLINE(A2>C2 AND CURRBARSCOUNT=CONST(周期C2)+1,D31,A2>C2 AND CURRBARSCOUNT=1,D31,0),DOTLINE,COLORFF8080;
D2:DRAWLINE(A2>C2 AND CURRBARSCOUNT=CONST(周期C2)+1,D32,A2>C2 AND CURRBARSCOUNT=1,D32,0),DOTLINE,COLORFF8080;
D3:DRAWLINE(A2>C2 AND CURRBARSCOUNT=CONST(周期C2)+1,D33,A2>C2 AND CURRBARSCOUNT=1,D33,0),DOTLINE,COLORFF8080;
DRAWLINE(A2>C2 AND CURRBARSCOUNT=CONST(周期C2)+1,H,A2>C2 AND CONST(D33),D33,-1),DOTLINE,COLORFF8080;{//斜线}
IF(Q0<Q1,DRAWLINE(VV,L,VV2,H,0),DRAWNULL),COLORFF8080,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C2)+1,D31,VARCAT('(A-、B-、C-)D1=',VAR2STR(D31,2))),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C2)+1,D32,VARCAT('D2:=',VAR2STR(D32,2))),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=CONST(周期C2)+1,D33,VARCAT('D3:=',VAR2STR(D33,2))),COLORGREEN;
副图1
ZT:=C=ZTPRICE(REF(C,1),0.1);
DT:=C=DTPRICE(REF(CLOSE,1),0.1);
MYDT:=COUNT(DT,5)<1;
LXZT:=COUNT(ZT,2)=2;
AB:=REF(COUNT(LXZT,9)>=1,1);
AC:=C>=MA(C,10) AND L<=MA(C,10);
AD:=L<=EMA(C,10) AND C>=EMA(C,10);
XG:=AB AND AC AND C>O AND MYDT;
FILTER(XG,5) ;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,0,0.5,2,0),COLORRED;
DRAWTEXT(涨停,0.5,'涨停'),COLORYELLOW;
跌停:=IF(REF(C,1)*0.901-C>0.01 ,1,0);
STICKLINE(跌停,0,0.5,2,0),COLORGREEN;
DRAWTEXT(跌停,0.5,'跌停'),COLORBLUE;
副图2
XB_1:=IF(DATE<=1211231,1,1);
XB_2:=EMA(CLOSE,3);
XB_3:=EMA(CLOSE,20);
XB_4:=EMA(CLOSE,60);
XB_5:=ATAN((XB_4-REF(XB_4,1))/XB_4*10)/3.142*180;
XB_6:=EMA(CLOSE,120);
XB_7:=EMA(CLOSE,250);
XB_8:=REF(LOW,1);
XB_9:=SMA(ABS(LOW-XB_8),3,1)/SMA(MAX(LOW-XB_8,0),3,1)*100;
XB_10:=EMA(XB_9*10,3);
XB_11:=LLV(LOW,13);
XB_12:=HHV(XB_10,13);
XB_13:=EMA(IF(LOW<=XB_11,(XB_10+XB_12*2)/2,0),3)/618;
XB_14:=IF(XB_13>500,500,XB_13);
XB_15:=XB_1 AND CLOSE>XB_4 AND XB_4>XB_6 AND XB_6>XB_7;
XB_16:=XB_1 AND XB_15 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2) AND ABS(LOW-XB_4)/XB_4<0.08 AND CLOSE>REF(CLOSE,1);
XB_17:=1;
(-0.5),DOTLINE,COLORBLACK;
STICKLINE(CLOSE>MA(CLOSE,60),0,0.2,1,0),COLORRED;
STICKLINE(CLOSE>MA(CLOSE,20),0.2,0.4,1,0),COLORGREEN;
STICKLINE(XB_5>0,0.4,0.6,1,0),COLORMAGENTA;
STICKLINE(XB_16,0.6,0.8,1,0),COLORBLUE;
STICKLINE(XB_14>1,0.8,1,1,0),COLORYELLOW;
DRAWICON(XB_1 AND XB_15 AND CLOSE>MA(CLOSE,20) AND XB_14>1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2) AND ABS(LOW-XB_4)/XB_4<0.08
AND XB_5>0 AND CLOSE>REF(CLOSE,1),(-0.1),5) AND XB_17;