推荐回答:
ab:=ema(((2*c+h+l)/4-llv(low,25))/(hhv(high,25)-llv(low,25))*100,8);ba:=ema(ab,5);a15{高}:=refdate(ref(hhv(h,89),5),date);b1{低}:=refdate(ref(llv(l,89),5),date);dy{中}:=((a15)+(b1))/2;箱顶:=if(ab>0 and ab-ba<=0,a15,a15),linethick1,color00ffff;箱腰:=if(ab>0 and ab-ba<=0,dy,dy),linethick1,color00ffff;箱低:=if(ab>0 and ab-ba<=0,b1,b1),linethick1,color00ffff;高1:=if(ab>0 and ab-ba>0,a15,draw**),linethick1,colorcdcdc1;中1:=if(ab>0 and ab-ba>0,dy,draw**),linethick1,colorcdcdc1;低1:=if(ab>0 and ab-ba>0,b1,draw**),linethick1,colorcdcdc1;顶周期:=toprange(h);底周期:=lowrange(l);上内:=llvbars(h,顶周期);上外:=llvbars(l,顶周期);下内:=hhvbars(l,底周期);下外:=hhvbars(h,底周期);上力度:=hhv(l,上内+1)>llv(h,上内+1);下力度:=hhv(l,下内+1)>llv(h,下内+1);上包含:=count(l>=ref(l,1),上外)>2 and count(h>=ref(h,1),上内)>2;下包含:=count(h<=ref(h,1),下外)>2 and count(l<=ref(l,1),下内)>2; 顶0:=顶周期 and 上力度 and 上包含 and 上外>3;底0:=底周期 and 下力度 and 下包含 and 下外>3;顶分天数:=barslast(顶0);底分天数:=barslast(底0);含中间k线:=if(顶分天数=0,底分天数,顶分天数)>=3;顶:=顶0 and 含中间k线 and h=hhv(h,barslast(底0));底:=底0 and 含中间k线 and l=llv(l,barslast(顶0));notext上笔划线:drawline(底,l,顶,h,0),colorlired,linethick1;notext下笔划线:drawline(顶,h,底,l,0),colorligreen,linethick1;分界点:=notext上笔划线 and notext下笔划线;位置调整:=if(period=11,0.02,{年}if(period=10,0.02,{季}if(period=9,0.02, {多日}if(period=8,0.001,{多分钟}if(period=7,0.02, {月}if(period=6,0.01, {周}if(period=5,0.005, {日}if(period=4,0.002,{60f}if(period=3,0.001,{30f}if(period=2,0.001,{15f}if(period=1,0.0003,{5f}if(period=0,0.0002,{1f}0))))))))))));drawnumber(分界点 and 顶,h+h*位置调整,h),colorligreen;drawnumber(分界点 and 底,l,l),colorlimagenta;这是我用的最顺的指标。
广告合作商务QQ: 6391-670-971
2023年最新贷款计算器,采用2023年最新房贷基准利率,房贷利率表,提供贷款、商业贷款、公积金买房、个人按揭月供购房等银行房贷利率计算公式在线使用,2023年最好用的房贷计算器,房贷利息计算专家。