HLC:=REF(MA((HIGH+LOW+CLOSE)/3,5),1);
HV:=EMA(HHV(HIGH,5),3);
LV:=EMA(LLV(LOW,5),3);
P1:EMA(HLC*2-LV,3);
P2:EMA(HLC+HV-LV,3);
P3:EMA(2*HV-LV,3);
S1:EMA(HLC*2-HV,3);
S2:EMA(HLC-HV+LV,3);
S3:EMA(2*LV-HV,3);
DRAWBAND(P3,RGB(106,90,205),P2,RGB(106,90,205));
DRAWBAND(P2,RGB(25,46,150),P1,RGB(25,46,150));
DRAWBAND(S1,RGB(0,0,255),S2,RGB(0,0,255));
DRAWBAND(S2,RGB(25,25,112),S3,RGB(25,25,112));
{红}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0000DD;
STICKLINE(CLOSE>OPEN,H,L,0,0),COLOR0000FF;
{绿}
STICKLINE(CLOSE<OPEN,OPEN,CLOSE,3,0),COLOR009900;
STICKLINE(CLOSE<OPEN,OPEN,CLOSE,2,0),COLOR00BB00;
STICKLINE(CLOSE<OPEN,OPEN,CLOSE,1,0),COLOR00DD00;
STICKLINE(CLOSE<OPEN,H,L,0,0),COLOR00FF00;
A1:=REF(H,N)=HHV(H,2*N+1);
B1:=BACKSET(A1,N+1);
C1:=FILTER(B1,N) AND H=HHV(H,N+1);
DRAWICON(C1,H*1.02,2);
D1:=BARSLAST(C1);
E1:=IF(C1,CURRBARSCOUNT,0);
F1:=IF(D1,REF(E1,D1),E1);
GDCS1:=CONST(F1);
GDCS2:=CONST(REF(F1,D1+1));
压力1:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORFF00FF,LINETHICK2;
AA1:=REF(L,N)=LLV(L,2*N+1);
BB1:=BACKSET(AA1,N+1);
CC1:=FILTER(BB1,N) AND L=LLV(L,N+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
EE1:=IF(CC1,CURRBARSCOUNT,0);
FF1:=IF(DD1,REF(EE1,DD1),EE1);
DDCS1:=CONST(FF1);
DDCS2:=CONST(REF(FF1,DD1+1));
支撑1:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORFF00FF,LINETHICK2;
M:=INTPART(3*N/5);
A2:=REF(H,M)=HHV(H,2*M+1);
B2:=BACKSET(A2,M+1);
C2:=FILTER(B2,M) AND H=HHV(H,M+1);
DRAWICON(C2,H*1.02,2);
D2:=BARSLAST(C2);
E2:=IF(C2,CURRBARSCOUNT,0);
F2:=IF(D2,REF(E2,D2),E2);
DCS1:=CONST(F2);
DCS2:=CONST(REF(F2,D2+1));
压力2:DRAWLINE(CURRBARSCOUNT=DCS2,H,CURRBARSCOUNT=DCS1,H,1),COLORYELLOW,LINETHICK2;
AA2:=REF(L,M)=LLV(L,2*M+1);
BB2:=BACKSET(AA2,M+1);
CC2:=FILTER(BB2,M) AND L=LLV(L,M+1);
DRAWICON(CC2,L*0.98,1);
DD2:=BARSLAST(CC2);
EE2:=IF(CC2,CURRBARSCOUNT,0);
FF2:=IF(DD2,REF(EE2,DD2),EE2);
DDC1:=CONST(FF2);
DDC2:=CONST(REF(FF2,DD2+1));
支撑2:DRAWLINE(CURRBARSCOUNT=DDC2,L,CURRBARSCOUNT=DDC1,L,1),COLORYELLOW,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=DCS1,H,ISLASTBAR,REF(H,DCS1-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=DCS2,H,ISLASTBAR,REF(H,DCS2-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=DDC1,L,ISLASTBAR,REF(L,DDC1-1),1),COLORWHITE,POINTDOT,LINETHICK3;
DRAWLINE(CURRBARSCOUNT=DDC2,L,ISLASTBAR,REF(L,DDC2-1),1),COLORWHITE,POINTDOT,LINETHICK3;
|