HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
Y2:DRAWICON(CC,Y1*1.1,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(Y1,DDD),Y1);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
下穿绿是顶1:DRAWLINE(CURRBARSCOUNT=GDCS2,Y1,ISLASTBAR,REF(Y1,GDCS2-1),1),COLORGREEN;
下穿绿是顶2:DRAWLINE(CURRBARSCOUNT=GDCS1,Y1,ISLASTBAR,REF(Y1,GDCS1-1),1),COLORGREEN;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,Y1*0.9,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(Y1,DD1),Y1);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
上穿红是底1:DRAWLINE(CURRBARSCOUNT=DDCS1,Y1,ISLASTBAR,REF(Y1,DDCS1-1),1),COLORRED;
上穿红是底2:DRAWLINE(CURRBARSCOUNT=DDCS2,Y1,ISLASTBAR,REF(Y1,DDCS2-1),1),COLORRED;
718488389.jpg
|