//参数 n(1,500,130) 调整计算区间--竖线
DRAWGBKLAST(CLOSE>0,STRIP(RGB(100,100,100),RGB(100,100,100),1));
VERLINE(CROSS(ISNULL(REFX(&CLOSE,n)),0.5),2),COLOR00ffff;
t1:=HHVBARS(H,n);
t2:=LLVBARS(L,n);
HH:=REF(H,t1);
LL:=REF(L,t2);
kk:=(HH-LL);
HH1:=LL+KK*0.236;
HH2:=LL+KK*0.382;
HH3:=LL+KK*0.5;
HH4:=LL+KK*0.618;
HH5:=LL+KK*0.809;
//----------------------------------------------------------------
tt:=BARSCOUNT(CLOSE);
x1:BACKSET(HH,tt),COLORFFffFF;
x2:BACKSET(HH1,tt),COLORFFffFF;
x3:BACKSET(HH2,tt),COLORFFffFF;
x4:BACKSET(HH3,tt),COLORFFffFF;
x5:BACKSET(HH4,tt),COLORFFffFF;
x6:BACKSET(HH5,tt),COLORFFffFF;
x7:BACKSET(LL,tt),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH,'```'+TOSTRING(HH,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH1,'```'+TOSTRING(HH1,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH2,'```'+TOSTRING(HH2,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH3,'```'+TOSTRING(HH3,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH4,'```'+TOSTRING(HH4,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH5,'```'+TOSTRING(HH5,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),LL,'```'+TOSTRING(LL,2)),COLORFFffFF;
//------------------------------------------------------------------------------
STICKLINE(CLOSE>0 ,CLOSE,OPEN,10,0),color000000;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,9,0 ),COLOR999900;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,8,0 ),COLORbbbb00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,6,0 ),COLORcccc00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,4,0 ),COLORdddd00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,2,0 ),COLOReeee00;
STICKLINE(OPEN>CLOSE ,HIGH,LOW,2,0 ),COLORffff00;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,9,0) ,COLOR000099;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,8,0) ,COLOR0000bb;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,6,0) ,COLOR0000cc;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,4,0) ,COLOR0000dd;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,2,0) ,COLOR0000ee;
STICKLINE(CLOSE>=OPEN ,HIGH,LOW,2,0 ),COLOR000fFF;