m:=120;//参数(1,555,120)调节低点周期
n:=250;//参数(1,555,250)调节高点周期
DRAWGBKLAST(CLOSE>0,STRIP(RGB(150,70,70),RGB(80,100,50),1));
bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
PARTLINE(BBI,BBI>REF(BBI,1),RGB(255,0,0),BBI
V2:=IF(ISNULL(REFX(&CLOSE,1)),vol*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
//{ _同花顺指标公式}
STICKLINE(V2>=1,O,C,8,0),color007777;
STICKLINE(V2>=1,O,C,7,0),color009999;
STICKLINE(V2>=1,O,C,6,0),color00aaaa;
STICKLINE(V2>=1,O,C,5,0),color00bbbb;
STICKLINE(V2>=1,O,C,4,0),color00cccc;
STICKLINE(V2>=1,O,C,3,0),color00dddd;
STICKLINE(V2>=1,O,C,2,0),color00eeee;
STICKLINE(V2>=1,O,C,1,0),color00ffff;
t1:=BArslAST(H=HHV(H,n));
t2:=BARSLAST(L=LLV(L,m));
高:=REF(HHV(H,N),1);
低:=REF(LLV(L,m),1);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
HORLINE(ISNULL(REFX(&CLOSE,1)),高,2,1);
HORLINE(ISNULL(REFX(&CLOSE,1)),H19,2,1);
HORLINE(ISNULL(REFX(&CLOSE,1)),H38,2,1);
HORLINE(ISNULL(REFX(&CLOSE,1)),H61,2,1);
HORLINE(ISNULL(REFX(&CLOSE,1)),H中,2,1);
HORLINE(ISNULL(REFX(&CLOSE,1)),H80,2,1);
HORLINE(ISNULL(REFX(&CLOSE,1)),低,2,1);
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),高,'高:'+TOSTRING(高,2)),COLOR009fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),H19,'0.809位:'+TOSTRING(H19,2)),COLOR009fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),H38,'0.618位:'+TOSTRING(H38,2)),COLOR009fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),H中,'中位:'+TOSTRING(H中,2)),COLOR009fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),H61,'0.382位:'+TOSTRING(H61,2)),COLOR009fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),H80,'0.191位:'+TOSTRING(H80,2)),COLOR009fff;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),低,'低位:'+TOSTRING(低,2)),COLOR009fff;
DRAWTEXT(crOSS(ISNULL(REFX(&CLOSE,60)),0.5),高*0.95,'提示:线上阳线买,线下阴线卖'),color00ffff;
水平面:MA(CLOSE,89),COLORFFA2FF,LINETHICK2;
DRAWTEXT(水平面