fz压力支撑
drawgbk(close>0,colorrgb(180,180,180),colorrgb(89,1,1),1);
yc_0:=barscount(close);
yc_2:=sysparam(2);
yc_3:=sysparam(3);
yc_4:=sysparam(4);
yc_5:=sysparam(5);
yc_nn0:=(yc_3 - yc_2);
yc_nn:=(yc_0 - yc_2);
yc_hh1:=((yc_4 - yc_5) / 22);
yc_hh2:=(yc_hh1 / 4);
yc_ll1:=llv(low,yc_nn0);
yc_ll2:=yc_ll1[yc_3];
yc_y0:=(yc_0 >= yc_2);
yc_vv0:=if(((yc_y0 = 1) and (sysparam(1) >= yc_0)),vol,0);
yc_c1:=if(between(close,(yc_4 - (0 * yc_hh1)),(yc_4 - (1 * yc_hh1))),yc_vv0,0);
yc_c2:=if(between(close,(yc_4 - (1 * yc_hh1)),(yc_4 - (2 * yc_hh1))),yc_vv0,0);
yc_c3:=if(between(close,(yc_4 - (2 * yc_hh1)),(yc_4 - (3 * yc_hh1))),yc_vv0,0);
yc_c4:=if(between(close,(yc_4 - (3 * yc_hh1)),(yc_4 - (4 * yc_hh1))),yc_vv0,0);
yc_c5:=if(between(close,(yc_4 - (4 * yc_hh1)),(yc_4 - (5 * yc_hh1))),yc_vv0,0);
yc_c6:=if(between(close,(yc_4 - (5 * yc_hh1)),(yc_4 - (6 * yc_hh1))),yc_vv0,0);
yc_c7:=if(between(close,(yc_4 - (6 * yc_hh1)),(yc_4 - (7 * yc_hh1))),yc_vv0,0);
yc_c8:=if(between(close,(yc_4 - (7 * yc_hh1)),(yc_4 - (8 * yc_hh1))),yc_vv0,0);
yc_c9:=if(between(close,(yc_4 - (8 * yc_hh1)),(yc_4 - (9 * yc_hh1))),yc_vv0,0);
yc_c10:=if(between(close,(yc_4 - (9 * yc_hh1)),(yc_4 - (10 * yc_hh1))),yc_vv0,0);
yc_c11:=if(between(close,(yc_4 - (10 * yc_hh1)),(yc_4 - (11 * yc_hh1))),yc_vv0,0);
yc_c12:=if(between(close,(yc_4 - (11 * yc_hh1)),(yc_4 - (12 * yc_hh1))),yc_vv0,0);
yc_c13:=if(between(close,(yc_4 - (12 * yc_hh1)),(yc_4 - (13 * yc_hh1))),yc_vv0,0);
yc_c14:=if(between(close,(yc_4 - (13 * yc_hh1)),(yc_4 - (14 * yc_hh1))),yc_vv0,0);
yc_c15:=if(between(close,(yc_4 - (14 * yc_hh1)),(yc_4 - (15 * yc_hh1))),yc_vv0,0);
yc_c16:=if(between(close,(yc_4 - (15 * yc_hh1)),(yc_4 - (16 * yc_hh1))),yc_vv0,0);
yc_c17:=if(between(close,(yc_4 - (16 * yc_hh1)),(yc_4 - (17 * yc_hh1))),yc_vv0,0);
yc_c18:=if(between(close,(yc_4 - (17 * yc_hh1)),(yc_4 - (18 * yc_hh1))),yc_vv0,0);
yc_c19:=if(between(close,(yc_4 - (18 * yc_hh1)),(yc_4 - (19 * yc_hh1))),yc_vv0,0);
yc_c20:=if(between(close,(yc_4 - (19 * yc_hh1)),(yc_4 - (20 * yc_hh1))),yc_vv0,0);
yc_c21:=if(between(close,(yc_4 - (20 * yc_hh1)),(yc_4 - (21 * yc_hh1))),yc_vv0,0);
yc_c22:=if(between(close,(yc_4 - (19 * yc_hh1)),(yc_4 - (22 * yc_hh1))),yc_vv0,0);
yc_c23:=if(between(close,(yc_4 - (20 * yc_hh1)),(yc_4 - (23 * yc_hh1))),yc_vv0,0);
yc_y1:=strtonum(numtostr(if(islastbar,sum(yc_c1,yc_nn0),0),2));
yc_y2:=strtonum(numtostr(if(islastbar,sum(yc_c2,yc_nn0),0),2));
yc_y3:=strtonum(numtostr(if(islastbar,sum(yc_c3,yc_nn0),0),2));
yc_y4:=strtonum(numtostr(if(islastbar,sum(yc_c4,yc_nn0),0),2));
yc_y5:=strtonum(numtostr(if(islastbar,sum(yc_c5,yc_nn0),0),2));
yc_y6:=strtonum(numtostr(if(islastbar,sum(yc_c6,yc_nn0),0),2));
yc_y7:=strtonum(numtostr(if(islastbar,sum(yc_c7,yc_nn0),0),2));
yc_y8:=strtonum(numtostr(if(islastbar,sum(yc_c8,yc_nn0),0),2));
yc_y9:=strtonum(numtostr(if(islastbar,sum(yc_c9,yc_nn0),0),2));
yc_y10:=strtonum(numtostr(if(islastbar,sum(yc_c10,yc_nn0),0),2));
yc_y11:=strtonum(numtostr(if(islastbar,sum(yc_c11,yc_nn0),0),2));
yc_y12:=strtonum(numtostr(if(islastbar,sum(yc_c12,yc_nn0),0),2));
yc_y13:=strtonum(numtostr(if(islastbar,sum(yc_c13,yc_nn0),0),2));
yc_y14:=strtonum(numtostr(if(islastbar,sum(yc_c14,yc_nn0),0),2));
yc_y15:=strtonum(numtostr(if(islastbar,sum(yc_c15,yc_nn0),0),2));
yc_y16:=strtonum(numtostr(if(islastbar,sum(yc_c16,yc_nn0),0),2));
yc_y17:=strtonum(numtostr(if(islastbar,sum(yc_c17,yc_nn0),0),2));
yc_y18:=strtonum(numtostr(if(islastbar,sum(yc_c18,yc_nn0),0),2));
yc_y19:=strtonum(numtostr(if(islastbar,sum(yc_c19,yc_nn0),0),2));
yc_y20:=strtonum(numtostr(if(islastbar,sum(yc_c20,yc_nn0),0),2));
yc_y21:=strtonum(numtostr(if(islastbar,sum(yc_c21,yc_nn0),0),2));
yc_y22:=strtonum(numtostr(if(islastbar,sum(yc_c22,yc_nn0),0),2));
yc_y23:=strtonum(numtostr(if(islastbar,sum(yc_c23,yc_nn0),0),2));
yc_ay0:=max(yc_y1,max(yc_y2,max(yc_y3,max(yc_y4,max(yc_y5,max(yc_y6,max(yc_y7,max(yc_y8,max(yc_y9,max(yc_y10,max(yc_y11,max(yc_y12,max(yc_y13,max(yc_y13,max(yc_y14,max(yc_y15,max(yc_y16,max(yc_y17,max(yc_y18,max(yc_y19,max(yc_y20,max(yc_y21,yc_y22))))))))))))))))))))));
yc_x1:=(((yc_y1 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x3:=(((yc_y3 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x5:=(((yc_y5 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x7:=(((yc_y7 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x9:=(((yc_y9 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x11:=(((yc_y11 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x13:=(((yc_y13 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x15:=(((yc_y15 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x17:=(((yc_y17 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x19:=(((yc_y19 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x21:=(((yc_y21 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
yc_x23:=(((yc_y23 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0));
fillrgn((((yc_y1 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (0 * yc_hh1)),((yc_4 - (1 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y2 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (1 * yc_hh1)),((yc_4 - (2 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y3 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (2 * yc_hh1)),((yc_4 - (3 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y4 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (3 * yc_hh1)),((yc_4 - (4 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y5 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (4 * yc_hh1)),((yc_4 - (5 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y6 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (5 * yc_hh1)),((yc_4 - (6 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y7 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (6 * yc_hh1)),((yc_4 - (7 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y8 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (7 * yc_hh1)),((yc_4 - (8 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y9 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (8 * yc_hh1)),((yc_4 - (9 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y10 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (9 * yc_hh1)),((yc_4 - (10 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y11 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (10 * yc_hh1)),((yc_4 - (11 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y12 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (11 * yc_hh1)),((yc_4 - (12 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y13 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (12 * yc_hh1)),((yc_4 - (13 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y14 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (13 * yc_hh1)),((yc_4 - (14 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y15 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (14 * yc_hh1)),((yc_4 - (15 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y16 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (15 * yc_hh1)),((yc_4 - (16 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y17 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (16 * yc_hh1)),((yc_4 - (17 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y18 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (17 * yc_hh1)),((yc_4 - (18 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y19 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (18 * yc_hh1)),((yc_4 - (19 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y20 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (19 * yc_hh1)),((yc_4 - (20 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y21 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (20 * yc_hh1)),((yc_4 - (21 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y22 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (21 * yc_hh1)),((yc_4 - (22 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
fillrgn((((yc_y23 / yc_ay0) >= (yc_nn / yc_nn0)) and (yc_nn >= 0)),(yc_4 - (22 * yc_hh1)),((yc_4 - (23 * yc_hh1)) + (yc_hh1 * 0.1))),colorff9900;
stickline((close >= open),close,open,8,0),colorbc;
stickline((close >= open),close,open,5,0),colorff;
stickline((close >= open),close,open,3,0),color90ff;
stickline((close >= open),close,open,1,0),colorffff;
stickline((close >= open),high,close,0.8,0),colorffff;
stickline((close >= open),open,low,0.8,0),colorffff;
stickline((close <= open),close,open,8,0),colorff0000;
stickline((close <= open),close,open,5,0),colorff00a6;
stickline((close <= open),close,open,3,0),colorff00ff;
stickline((close <= open),close,open,1,0),colorffffff;
stickline((close <= open),high,open,0.8,0),colorffffff;
stickline((close <= open),close,low,0.8,0),colorffffff;
ssl:=close;
上限:=yc_4;
间距:=yc_hh1;
drawnumber(filter((refx((yc_x1 < ref(yc_x1,1)),6) and (yc_y1 > 0)),10),(yc_4 - ((0.6 * 1) * yc_hh2)),(yc_4 - (0 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x3 < ref(yc_x3,1)),6) and (yc_y3 > 0)),10),(yc_4 - ((2.8 * 3) * yc_hh2)),(yc_4 - (2 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x5 < ref(yc_x5,1)),6) and (yc_y5 > 0)),10),(yc_4 - ((3.3 * 5) * yc_hh2)),(yc_4 - (4 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x7 < ref(yc_x7,1)),6) and (yc_y7 > 0)),10),(yc_4 - ((3.5 * 7) * yc_hh2)),(yc_4 - (6 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x9 < ref(yc_x9,1)),6) and (yc_y9 > 0)),10),(yc_4 - ((3.62 * 9) * yc_hh2)),(yc_4 - (8 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x11 < ref(yc_x11,1)),6) and (yc_y11 > 0)),10),(yc_4 - ((3.7 * 11) * yc_hh2)),(yc_4 - (10 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x13 < ref(yc_x13,1)),6) and (yc_y13 > 0)),10),(yc_4 - ((3.72 * 13) * yc_hh2)),(yc_4 - (12 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x15 < ref(yc_x15,1)),6) and (yc_y15 > 0)),10),(yc_4 - ((3.76 * 15) * yc_hh2)),(yc_4 - (14 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x17 < ref(yc_x17,1)),6) and (yc_y17 > 0)),10),(yc_4 - ((3.8 * 17) * yc_hh2)),(yc_4 - (16 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x19 < ref(yc_x19,1)),6) and (yc_y19 > 0)),10),(yc_4 - ((3.82 * 19) * yc_hh2)),(yc_4 - (18 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x21 < ref(yc_x21,1)),6) and (yc_y21 > 0)),10),(yc_4 - ((3.84 * 21) * yc_hh2)),(yc_4 - (20 * yc_hh1)),2),colorffff00;
drawnumber(filter((refx((yc_x23 < ref(yc_x23,1)),6) and (yc_y23 > 0)),10),(yc_4 - ((3.86 * 23) * yc_hh2)),(yc_4 - (22 * yc_hh1)),2),colorffff00;
check1:=checkuser(1);
stickline(close>=open,close,open,7,0),coloraa;
stickline(close>=open,close,open,6,0),colorbb;
stickline(close>=open,close,open,5,0),colorcc;
stickline(close>=open,close,open,4,0),colordd;
stickline(close>=open,close,open,3,0),coloree;
stickline(close>=open,close,open,2,0),colorff;
stickline(close>=open,close,open,1,0),colorff;
stickline(close>=open,high,low,0,0),colorff;
stickline(close<=open,close,open,7,0),coloraaaa00;
stickline(close<=open,close,open,6,0),colorbbbb00;
stickline(close<=open,close,open,5,0),colorcccc00;
stickline(close<=open,close,open,4,0),colordddd00;
stickline(close<=open,close,open,3,0),coloreeee00;
stickline(close<=open,close,open,2,0),colorffff00;
stickline(close<=open,close,open,1,0),colorffff00;
stickline(close<=open,high,low,0,0),colorffff00;
stickline(close/ref(close,1)>1.04,(close+open)/2,close,7,0),coloraaaa;
stickline(close/ref(close,1)>1.04,(close+open)/2,close,5,0),colorcccc;
stickline(close/ref(close,1)>1.04,(close+open)/2,close,3,0),coloreeee;
stickline(close/ref(close,1)>1.04,(close+open)/2,close,1,0),colorffff;
dh:=(close-ref(close,1))/ref(close,1)*100;
stickline(dh<=-4,(close+open)/2,close,7,0),coloraa0000;
stickline(dh<=-4,(close+open)/2,close,5,0),colorcc0000;
stickline(dh<=-4,(close+open)/2,close,3,0),coloree0000;
stickline(dh<=-4,(close+open)/2,close,1,0),colorff0000;
zg:=ref(high,1);
zd:=ref(low,1);
gg:hhv(zg,25),colorffb0ff;
dd:llv(zd,25),colorc1f81f;
<%
vh=ffl.vardata("gg")
vl=ffl.vardata("dd")
vn=ffl.vardata("25")
last=ubound(vh)
if vn>last then vn=last+1
for i=last to last-vn+1 step-1
vh(i)=vh(last)
vl(i)=vl(last)
next
ffl.vardata("gg")=vh
ffl.vardata("dd")=vl
ffl.varstartindex("gg")=last-vn+1
ffl.varstartindex("dd")=last-vn+1
%>
drawtext(barpos=sysparam(3),gg,' 【最高价:'+numtostr(gg,2)+'】'),align2,pxdn3,colorffb0ff;
drawtext(barpos=sysparam(3),dd,' 【最低价:'+numtostr(dd,2)+'】'),align2,pxdn3,colorff00;
ggs:=barscount(close);
yy:=barpos=sysparam(1);
if m=1 then begin
fz:=peaka(gg,25,1);
gz:=trougha(dd,25,1);
fz1:=strtonum(numtostr(ggs-barssince(fz),0));
gz1:=strtonum(numtostr(ggs-barssince(gz),0));
wf:=ggs<fz1;
wfs:=count(wf,0)>0;
wg:=ggs<gz1;
wgs:=count(wg,0)>0;
高:if(wf=0 and wfs=0 or wf and wfs,hhv(gg,0),fz),linethick0;
低:if(wg=0 and wgs=0 or wg and wgs,llv(dd,0),gz),linethick0;
fx:=if(wf=0 and wfs=0 or wf and wfs,barscount(gg)-1,peakbarsa(gg,25,1));
gx:=if(wg=0 and wgs=0 or wg and wgs,1,troughbarsa(dd,25,1));
drawsl(fx>0 and yy,ref(高,fx),0,max(fx,gx),1),colorff00ff;
drawsl(fx>0 and yy,ref(低,gx),0,max(gx,fx),1),colorff00;
g1:(高-低)*0.03+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g1,'﹉'),align0,pxdn2,colorff00;
drawnumber(yy,g1,g1,2),align0,shift2,colorff00ff;
g2:(高-低)*0.08+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g2,'﹉'),align0,pxdn2,colorff00;
drawnumber(yy,g2,g2,2),align0,shift2,colorff00ff;
g3:(高-低)*0.125+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g3,'﹉'),align0,pxdn2,colorff00ff;
drawtext(fx>0 and yy,g3,'112.5% '+numtostr(g3,2)),align0,pxdn2,colorff00;
g4:(高-低)*0.236+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g4,'﹉'),align0,pxdn2,colorff00ff;
drawtext(fx>0 and yy,g4,'123.6% '+numtostr(g4,2)),align0,pxdn2,colorff00;
g5:(高-低)*0.333+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g5,'﹉'),align0,pxdn2,colorff00ff;
drawtext(fx>0 and yy,g5,'133.3% '+numtostr(g5,2)),align0,pxdn2,colorff00;
g6:(高-低)*0.28+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g6,'﹉'),align0,pxdn2,colorff00ff;
drawtext(fx>0 and yy,g6,'128% '+numtostr(g6,2)),align0,pxdn2,colorff00;
g7:(高-低)*0.191+高,linethick0,colorff00ff;
drawtext(fx>0 and yy,g7,'﹉'),align0,pxdn2,colorff00ff;
drawtext(fx>0 and yy,g7,'119.1% '+numtostr(g7,2)),align0,pxdn2,colorff00;
g8:(高-低)*0.382+高,linethick0,colorff00ff;
drawsl(fx>0 and yy,ref(g8,gx),0,max(gx,fx),1),pointdot,colorff00ff;
drawtext(fx>0 and yy,g8,'138.2% '+numtostr(g8,2)),align0,pxdn2,colorff00;
f1:(高-低)*0.236+低,linethick0,colorff00ff;
drawsl(fx>0 and yy,ref(f1,gx),0,max(gx,fx),1),pointdot,colorff00ff;
drawnumber(yy,f1,f1,2),align0,shift2,colorff00ff;
f2:(高-低)*0.382+低,linethick0,colorffff;
drawsl(fx>0 and yy,ref(f2,gx),0,max(gx,fx),1),pointdot,colorffff;
drawnumber(yy,f2,f2,2),align0,shift2,colorffff;
f3:(高-低)*0.5+低,linethick0,colorffffff;
drawsl(fx>0 and yy,ref(f3,gx),0,max(gx,fx),1),pointdot,colorffffff;
drawnumber(yy,f3,f3,2),align0,shift2,colorffffff;
f4:(高-低)*0.618+低,linethick0,colorffff;
drawsl(fx>0 and yy,ref(f4,gx),0,max(gx,fx),1),pointdot,colorffff;
drawnumber(yy,f4,f4,2),align0,shift2,colorffff;
f5:(高-低)*0.764+低,linethick0,colorff00ff;
drawsl(fx>0 and yy,ref(f5,gx),0,max(gx,fx),1),pointdot,colorff00ff;
drawnumber(yy,f5,f5,2),align0,shift2,colorff00ff;
f6:(高-低)*0.55+低,linethick0,colorffffff;
drawtext(fx>0 and yy,f6,'﹉'),align0,pxdn2,colorff00;
drawnumber(yy,f6,f6,2),align0,shift2,colorffffff;
f7:(高-低)*0.45+低,linethick0,colorffffff;
drawtext(fx>0 and yy,f7,'﹉'),align0,pxdn2,colorff00;
drawnumber(yy,f7,f7,2),align0,shift2,colorffffff;
f8:(高-低)*0.875+低,linethick0,colorffffff;
drawtext(fx>0 and yy,f8,'*'),align0,pxup10,colorff00;
drawnumber(yy,f8,f8,2),align0,shift2,colorff00;
f9:(高-低)*0.125+低,linethick0,colorffffff;
drawtext(fx>0 and yy,f9,'*'),align0,pxup10,colorff00;
drawnumber(yy,f9,f9,2),align0,shift2,colorff00;
f10:(高-低)*0.667+低,linethick0,colorffffff;
drawtext(fx>0 and yy,f10,'*'),align0,pxup10,colorff00;
drawnumber(yy,f10,f10,2),align0,shift2,colorff00;
f11:(高-低)*0.333+低,linethick0,colorffffff;
drawtext(fx>0 and yy,f11,'*'),align0,pxup10,colorff00;
drawnumber(yy,f11,f11,2),align0,shift2,colorff00;
end;
指导线:ema((ema(close,4)+ema(close,6)+ema(close,12)+ema(close,24))/4,2),linedot,linethick0,colorffff;
界:ma(close,21),linethick0,colorfebaf5;
上限:界+3*std(close,20),linethick0,colorffff;
卖:界+2*std(close,20),linethick0,colorff00ff;
买:界-2*std(close,20),linethick0,colorf0ff00;
下限:界-2.9*std(close,20),linethick0,colorff00;
drawicon(high>=上限,high,10),align0,pxup15;
drawicon(cross(high,上限),high,12),align0;
drawtext(cross(high,上限),high,' ̄'),align0,colorffff;
drawicon(cross(上限,high),high,9),align0;
drawtext(cross(上限,high),high,' ̄'),align0,colorffff;
drawicon(cross(high,卖),high,7),align0;
drawtext(cross(high,卖),high,' ̄'),align0,colorff00ff;
drawtext(cross(close,卖),high,' ̄'),align0,colorff0000;
drawicon(cross(close,卖),high,5),align0;
drawtext(cross(下限,low),low,'限'),align0,colorff00;
drawtext(cross(下限,low),low,' ̄'),align0,colorff00;
drawtext(cross(买,low),low,'△'),align0,colorffff00;
drawtext(cross(买,low),low,' ̄'),align0,colorffff00;
drawtext(cross(买,close),low,'▲'),align0,colorffff00;
drawtext(cross(买,close),low,' ̄'),align0,colorffff00;
n:=45;
fh:=high;
fl:=low;
sell:=0*fh;
buy:=sell;
signal:=sell;
boxh:sell,linethick0;
boxl:sell,linethick0;
variable:hc=0,lc=0,bt=fh[1],bb=fh[1];
for i=1 to datacount do begin
if hc>1 then begin
if lc>2 and bt<=fh[i] then begin
buy[i]:=1;
for j=i-1 downto i-hc do begin
boxh[j]:=fh[i-hc],linethick0;
boxl[j]:=fl[i-lc],linethick0;
end;
hc:=0;
lc:=0;
end;
if bt>fh[i] then begin
if lc>2 then begin
if bb>=fl[i] then begin
sell[i]:=1;
for j=i-1 downto i-hc do begin
boxh[j]:=fh[i-hc],linethick0;
boxl[j]:=fl[i-lc],linethick0;
end;
hc:=-1;
lc:=0;
end;else begin
boxh[i]:=fh[i-hc],linethick0;
boxl[i]:=fl[i-lc],linethick0;
end;
end;
hc:=hc+1;
if lc>1 then begin
if bb<fl[i] then begin
lc:=lc+1;
if lc=3 then begin
signal[i-hc+1]:=1;
for j=i downto i-hc+1 do begin
boxh[j]:=fh[i-hc+1],linethick0;
boxl[j]:=fl[i-lc+1],linethick0;
end;
end;
end;else
lc:=0;
end;else
if lc=1 then begin
if bb<fl[i] then begin
lc:=lc+1;
end;else
lc:=0;
end;
if lc=0 and hc>1 then begin
bb:=fl[i];
lc:=lc+1;
end;
end;else begin
hc:=0;
lc:=0;
end;
end;else
if hc=1 then begin
if bt>fh[i] then
hc:=hc+1;else begin
hc:=0;
lc:=0;
end;
end;
if hc=0 then begin
bt:=fh[i];
hc:=hc+1;
end;
end;
partline(boxh and boxh=ref(boxh,1),boxh),pointdot,colorffff;
partline(boxl and boxl=ref(boxl,1),boxl),pointdot,colorffff;
partline(boxl and boxl=ref(boxl,1),(boxl+boxh)/2),pointdot,colorffff;
stickline((signal or refx(buy or sell,1)) and boxh,boxh,boxl,0.1,0),pointdot,colorffff;
drawicon(buy,low*0.98,4);
drawicon(sell,high*1.02,5);
boxhl:=(boxl+boxh)/2;
hac:=close;
variable:ha=1;
for i=2 to datacount do begin
if boxh[i-1]=0 and boxh[i]>0 and (boxh[i]<>boxh[i-1] or boxl[i]<>boxl[i-1]) then
hac[i]:=0;
if boxh[i-1]>0 and boxh[i]>0 and (boxh[i]<>boxh[i-1] or boxl[i]<>boxl[i-1]) then
hac[i]:=0;
if boxh[i-1]>0 and boxh[i]>0 and boxh[i]=boxh[i-1] and boxl[i]<>boxl[i-1] then
hac[i]:=0;
if boxh[i-1]>0 and boxh[i]>0 and boxh[i]=boxh[i-1] and boxl[i]=boxl[i-1] then
hac[i]:=ha;
if boxh[i-1]>0 and boxh[i]>0 and boxh[i]=boxh[i-1] and boxl[i]<>boxl[i-1] then
hac[i]:=ha;
if boxh[i-1]>0 and boxh[i]>0 and boxh[i]=boxh[i-1] and boxh[i-2]=boxh[i-1] then
hac[i]:=hac[i-1]+ha;
if boxh[i-1]>0 and boxh[i]=0 then
hac[i]:=0;
if boxh[i-1]=0 and boxh[i]=0 then
hac[i]:=0;
end;
nv:=hac;
kk:=hac[1];
ll:=hac[1];
llt:=hac[1];
mm:=hac[1];
mmt:=hac[1];
for i=2 to datacount do begin
if hac[i-1]=0 and hac[i]>0 then
kk:=i-1;
if hac[i-1]>0 and hac[i]>0 then
llt:=i-1;
if hac[i-1]>0 and hac[i]>0 then
for j=kk to llt do begin
nv[j]:=hac[i]+1;
end;
if hac[i-1]>0 and hac[i]=0 then
ll:=i-1;
if hac[i-1]>0 and hac[i]=0 then
for j=kk to ll do begin
nv[j]:=hac[i-1]+1;
end;
end;
xx:=nv;
bb25:=(boxh-boxl)/(nv-1)*if(islastbar,hac-1,hac)*(tan(-26.5659*3.14159/180))+boxh;
partline(ref(bb25,1)<>0 and boxh=ref(boxh,1) and bb25>0 and bb25>boxl-boxl*0.05,bb25),pointdot,linethick1,colorff00ff;
drawline(bb25>0 and bb25=boxh and barscount(close)>datacount-45,bb25,bb25>0 and
bb25-boxhl<1 and barscount(close)>datacount-45,bb25,1),colorff00ff;
bb45:=(boxh-boxl)/(nv-1)*if(islastbar,hac-1,hac)*(tan(-45*3.14159/180))+boxh;
partline(ref(bb45,1)<>0 and boxh=ref(boxh,1) and bb45>0 and bb45>boxl-boxl*0.05,bb45),linethick1,colorff00ff;
drawline(bb45>0 and bb45=boxh and barscount(close)>datacount-45,bb45,bb45>0 and
bb45=boxl and barscount(close)>datacount-45,bb45,1),colorff00ff;
bb66:=(boxh-boxl)/(nv-1)*if(islastbar,hac-1,hac)*(tan(-63.435*3.14159/180))+boxh;
partline(ref(bb66,1)<>0 and boxh=ref(boxh,1) and bb66>0 and bb66>boxl-boxl*0.025,bb66),pointdot,linethick1,colorff00ff;
xbb23:=(boxh-boxl)/(nv-1)*if(islastbar,hac-1,hac)*(tan(26.5659*3.14159/180))+boxl;
partline(xbb23>0 and xbb23>boxl and xbb23<boxh+boxh*0.05,xbb23),pointdot,linethick1,colorff00;
drawline(xbb23>0 and xbb23=boxl and barscount(close)>datacount-45,xbb23,xbb23>0
and boxhl-xbb23<1 and barscount(close)>datacount-45,xbb23,1),colorff00;
xbb45:=(boxh-boxl)/(nv-1)*if(islastbar,hac-1,hac)*(tan(45*3.14159/180))+boxl;
partline(xbb45>0 and xbb45>boxl and xbb45<boxh+boxh*0.05,xbb45),linethick1,colorff00;
drawline(xbb45>0 and xbb45=boxl and barscount(close)>datacount-45,xbb45,xbb45>0
and xbb45=boxh and barscount(close)>datacount-45,xbb45,1),colorff00;
xbb66:=(boxh-boxl)/(nv-1)*if(islastbar,hac-1,hac)*(tan(63.435*3.14159/180))+boxl;
partline(xbb66>0 and xbb66>boxl and xbb66<boxh+boxh*0.025,xbb66),pointdot,linethick1,colorff00;
上一指标公式:主力拉升的主升浪公式下载 飞狐主力主升浪指标 源码
下一指标公式:预测明天K线走势N2解盘公式下载 飞狐N2指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文FZ压力支撑(主图指标)公式下载 飞狐压力FZ指标 源码仅供学习研究。