INPUT:N1(5,1,300),N2(10,1,300),N3(30,1,300);
d:=BACKSET(BARSTATUS=2,BARSLAST(llv(l,0)=l)+1);
LS:=if(BARSTATUS=2,llv(l,250),9999);;
d1:=BACKSET(BARSTATUS=2,BARSLAST(llv(l,250)=l or BARSTATUS=1));
LD:=llVALL(LS);
qkg:=(l>ref(h,1))*d;;
gqk:=if(d=1 and qkg*ref(h,1)ref(h,1) or h=ll,t1);
x1:=Any(l1=ll,t2);
x2:=Any(l2=ll,t3);
x3:=Any(l3=ll,t4);
x4:=Any(l4=ll,t5);
x5:=Any(l5=ll,t6);
x6:=Any(l6=ll,t7);
x7:=Any(l7=ll,t8);
x8:=Any(l8=ll,t9);
x9:=Any(l9=ll,t10);
x10:=Any(l10=ll,t11);
x11:=Any(l11=ll,t12);
x12:=Any(l12=ll,t13);
x13:=Any(l13=ll,t14);
x14:=Any(l14=ll,t15);
x15:=Any(l15=ll,t16);
x16:=Any(l16=ll,t17);
x17:=Any(l17=ll,t18);
x18:=Any(l18=ll,t19);
x19:=Any(l19=ll,t20);
x20:=Any(l20=ll,t21);
x21:=Any(l21=ll,t22);
x22:=Any(l22=ll,t23);
x23:=Any(l23=ll,t24);
x24:=Any(l24=ll,t25);
x25:=Any(l25=ll,t26);
x26:=Any(l26=ll,t27);
x27:=Any(l27=ll,t28);
x28:=Any(l28=ll,t29);
x29:=Any(l29=ll,t30);
x30:=Any(l30=ll,t31);
x31:=Any(l31=ll,t32);
x32:=Any(l32=ll,t33);
x33:=Any(l33=ll,t34);
x34:=Any(l34=ll,t35);
x35:=Any(l35=ll,t36);
x36:=Any(l36=ll,t37);
x37:=Any(l37=ll,t38);
x38:=Any(l38=ll,t39);
x39:=Any(l39=ll,t40);
x40:=Any(l40=ll,t41);
x41:=Any(l41=ll,t42);
x42:=Any(l42=ll,t43);
x43:=Any(l43=ll,t44);
x44:=Any(l44=ll,t45);
x45:=Any(l45=ll,t46);
x46:=Any(l46=ll,t47);
x47:=Any(l47=ll,t48);
x48:=Any(l48=ll,t49);
x49:=Any(l49=ll,t50);
x50:=Any(l50=ll,t51);
x51:=Any(l51=ll,t52);
x52:=Any(l52=ll,t53);
x53:=Any(l53=ll,t54);
x54:=Any(l54=ll,t55);
x55:=Any(l55=ll,t56);
x56:=Any(l56=ll,t57);
x57:=Any(l57=ll,t58);
x58:=Any(l58=ll,t59);
x59:=Any(l59=ll,t60);
x60:=Any(l60=ll,t61);
x61:=Any(l61=9999,0,min4);
min5:=if(BARSTATUS=2,min4,0);
w:=BACKSET(BARSTATUS=2,min5);
连w:=last(w>0);
WWTT:=BARSLAST(DISPSTATUS=1);
wTTT:=w*(WWTT>连w);
tx:=BARSSINCE(w);
qklx1:=ref(qklx,tx);
qkh:=ref(H,tx+1);
qkl:=ref(l,tx+1);
qkhl:=if(qklx1=2,qkh,if(qklx1=1,qkl,0));
wl:=LLv(L,tx+1);
wh:=hhv(h,tx+1);
wl1:=LLVALL(wl);
wh1:=hhVALL(wh);
whl:=if(qklx1=2,wl1,if(qklx1=1,wh1,0));
DRAWTEXT(tx=0 and qklx=1,qkl,”+NUMTOSTRN(wh1,2)+’-‘+NUMTOSTRN(qkl,2)),VALIGN2,colorwhite;
DRAWTEXT(tx=0 and qklx=2,qkh,”+NUMTOSTRN(qkh,2)+’-‘+NUMTOSTRN(wl1,2)),VALIGN0,colorwhite;
STICKLINE(wTTT,qkhl,whl,13,0),COLORGRAY,LAYER0;
ma5:ma(c,n1),COLORWHITE,LAYER0;
ma10:ma(c,n2),COLORYELLOW,LAYER0;
ma30:ma(c,n3),COLORMAGENTA,LAYER0;
【股票入门基础知识】【大智慧】缺口主图指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。