AA8:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA8,HIGHN+1);
CC8:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC8,H*1.03,2);{示卖}
DD8:=BARSLAST(CC8);
GDTS:=IF(CC8,CURRBARSCOUNT,0);
DINGBU:=IF(DD8,REF(H,DD8),H);{顶部}
DINGBUTS:=IF(DD8,REF(GDTS,DD8),GDTS);
DINGBU1:=REF(DINGBU,DD8+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DD8+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DD8+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力RAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORAA0066,LINETHICK2;
AA9:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA9,LOWN+1);
CC9:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC9,L*0.97,1);{示买}
DD9:=BARSLAST(CC9);
DDTS:=IF(CC9,CURRBARSCOUNT,0);
YDB:=IF(DD9,REF(L,DD9),L);
DDTS1:=IF(DD9,REF(DDTS,DD9),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD9+1);
DDTS2:=REF(DDTS1,DD9+1);
DDCS2:=CONST(DDTS2);
低点支撑RAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORAA0066,LINETHICK2;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
高低点中轨RAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORGREEN,LINETHICK2;
|