德顺二所 发表于 2024-7-6 14:33:16

大智慧直观显示跳空缺口主图指标公式

    <div class="stock-fc-code-box">


<p>INPUT:N1(5,1,300),N2(10,1,300),N3(30,1,300);<br>
d:=BACKSET(BARSTATUS=2,BARSLAST(llv(l,0)=l)+1);<br>
LS:=if(BARSTATUS=2,llv(l,250),9999);;<br>
d1:=BACKSET(BARSTATUS=2,BARSLAST(llv(l,250)=l or BARSTATUS=1));<br>
LD:=llVALL(LS);<br>
qkg:=(l&gt;ref(h,1))*d;;<br>
gqk:=if(d=1 and qkg*ref(h,1)&lt;LD,qkg,if(d1,qkg,0));<br>
gqks:=sum(gqk,0);<br>
g:=BACKSET(BARSTATUS=2,BARSLAST(hhv(h,0)=h)+1);<br>
hS:=hhv(h,250);<br>
g1:=BACKSET(BARSTATUS=2,BARSLAST(hS=h)+1);<br>
HG:=HHVALL(g1*hS);<br>
qkd:=(H&lt;ref(L,1))*g;<br>
dqk:=if(g=1 and qkd*ref(l,1)&gt;HG,qkd,if(g1,qkd,0));<br>
dqks:=sum(dqk,0);<br>
qkZ:=l&gt;ref(h,1) or h&lt;ref(l,1);<br>
QKS1:=SUM(QKZ,0);<br>
qks:=gqks+dqks;<br>
qklx:=if(h&lt;ref(l,1),1,if(l&gt;ref(h,1),2,0));<br>
s:=HHVALL(qks)+1;<br>
ds:s-qks,LINETHICK0;<br>
ll:=L;<br>
hh:=h;<br>
t1:=BARSSINCE(dS=1)+1;<br>
l1:=ref(l,T1);<br>
h1:=ref(H,t1);<br>
s1:=Any(H1&gt;=ll,t1);<br>
x1:=Any(l1&lt;=hh,t1);<br>
t2:=BARSSINCE(dS=2)+1;<br>
l2:=ref(l,T2);<br>
h2:=ref(H,t2);<br>
s2:=Any(H2&gt;=ll,t2);<br>
x2:=Any(l2&lt;=hh,t2);<br>
t3:=BARSSINCE(dS=3)+1;<br>
l3:=ref(l,T3);<br>
h3:=ref(H,t3);<br>
s3:=Any(H3&gt;=ll,t3);<br>
x3:=Any(l3&lt;=hh,t3);<br>
t4:=BARSSINCE(dS=4)+1;<br>
l4:=ref(l,T4);<br>
h4:=ref(H,t4);<br>
s4:=Any(H4&gt;=ll,t4);<br>
x4:=Any(l4&lt;=hh,t4);<br>
t5:=BARSSINCE(dS=5)+1;<br>
l5:=ref(l,T5);<br>
h5:=ref(H,t5);<br>
s5:=Any(H5&gt;=ll,t5);<br>
x5:=Any(l5&lt;=hh,t5);<br>
t6:=BARSSINCE(dS=6)+1;<br>
l6:=ref(l,T6);<br>
h6:=ref(H,t6);<br>
s6:=Any(H6&gt;=ll,t6);<br>
x6:=Any(l6&lt;=hh,t6);<br>
t7:=BARSSINCE(dS=7)+1;<br>
l7:=ref(l,T7);<br>
h7:=ref(H,t7);<br>
s7:=Any(H7&gt;=ll,t7);<br>
x7:=Any(l7&lt;=hh,t7);<br>
t8:=BARSSINCE(dS=8)+1;<br>
l8:=ref(l,T8);<br>
h8:=ref(H,t8);<br>
s8:=Any(H8&gt;=ll,t8);<br>
x8:=Any(l8&lt;=hh,t8);<br>
t9:=BARSSINCE(dS=9)+1;<br>
l9:=ref(l,T9);<br>
h9:=ref(H,t9);<br>
s9:=Any(H9&gt;=ll,t9);<br>
x9:=Any(l9&lt;=hh,t9);<br>
t10:=BARSSINCE(dS=10)+1;<br>
l10:=ref(l,T10);<br>
h10:=ref(H,t10);<br>
s10:=Any(H10&gt;=ll,t10);<br>
x10:=Any(l10&lt;=hh,t10);<br>
t11:=BARSSINCE(dS=11)+1;<br>
l11:=ref(l,T11);<br>
h11:=ref(H,t11);<br>
s11:=Any(H11&gt;=ll,t11);<br>
x11:=Any(l11&lt;=hh,t11);<br>
t12:=BARSSINCE(dS=12)+1;<br>
l12:=ref(l,T12);<br>
h12:=ref(H,t12);<br>
s12:=Any(H12&gt;=ll,t12);<br>
x12:=Any(l12&lt;=hh,t12);<br>
t13:=BARSSINCE(dS=13)+1;<br>
l13:=ref(l,T13);<br>
h13:=ref(H,t13);<br>
s13:=Any(H13&gt;=ll,t13);<br>
x13:=Any(l13&lt;=hh,t13);<br>
t14:=BARSSINCE(dS=14)+1;<br>
l14:=ref(l,T14);<br>
h14:=ref(H,t14);<br>
s14:=Any(H14&gt;=ll,t14);<br>
x14:=Any(l14&lt;=hh,t14);<br>
t15:=BARSSINCE(dS=15)+1;<br>
l15:=ref(l,T15);<br>
h15:=ref(H,t15);<br>
s15:=Any(H15&gt;=ll,t15);<br>
x15:=Any(l15&lt;=hh,t15);<br>
t16:=BARSSINCE(dS=16)+1;<br>
l16:=ref(l,T16);<br>
h16:=ref(H,t16);<br>
s16:=Any(H16&gt;=ll,t16);<br>
x16:=Any(l16&lt;=hh,t16);<br>
t17:=BARSSINCE(dS=17)+1;<br>
l17:=ref(l,T17);<br>
h17:=ref(H,t17);<br>
s17:=Any(H17&gt;=ll,t17);<br>
x17:=Any(l17&lt;=hh,t17);<br>
t18:=BARSSINCE(dS=18)+1;<br>
l18:=ref(l,T18);<br>
h18:=ref(H,t18);<br>
s18:=Any(H18&gt;=ll,t18);<br>
x18:=Any(l18&lt;=hh,t18);<br>
t19:=BARSSINCE(dS=19)+1;<br>
l19:=ref(l,T19);<br>
h19:=ref(H,t19);<br>
s19:=Any(H19&gt;=ll,t19);<br>
x19:=Any(l19&lt;=hh,t19);<br>
t20:=BARSSINCE(dS=20)+1;<br>
l20:=ref(l,T20);<br>
h20:=ref(H,t20);<br>
s20:=Any(H20&gt;=ll,t20);<br>
x20:=Any(l20&lt;=hh,t20);<br>
t21:=BARSSINCE(dS=21)+1;<br>
l21:=ref(l,T21);<br>
h21:=ref(H,t21);<br>
s21:=Any(H21&gt;=ll,t21);<br>
x21:=Any(l21&lt;=hh,t21);<br>
t22:=BARSSINCE(dS=22)+1;<br>
l22:=ref(l,T22);<br>
h22:=ref(H,t22);<br>
s22:=Any(H22&gt;=ll,t22);<br>
x22:=Any(l22&lt;=hh,t22);<br>
t23:=BARSSINCE(dS=23)+1;<br>
l23:=ref(l,T23);<br>
h23:=ref(H,t23);<br>
s23:=Any(H23&gt;=ll,t23);<br>
x23:=Any(l23&lt;=hh,t23);<br>
t24:=BARSSINCE(dS=24)+1;<br>
l24:=ref(l,T24);<br>
h24:=ref(H,t24);<br>
s24:=Any(H24&gt;=ll,t24);<br>
x24:=Any(l24&lt;=hh,t24);<br>
t25:=BARSSINCE(dS=25)+1;<br>
l25:=ref(l,T25);<br>
h25:=ref(H,t25);<br>
s25:=Any(H25&gt;=ll,t25);<br>
x25:=Any(l25&lt;=hh,t25);<br>
t26:=BARSSINCE(dS=26)+1;<br>
l26:=ref(l,T26);<br>
h26:=ref(H,t26);<br>
s26:=Any(H26&gt;=ll,t26);<br>
x26:=Any(l26&lt;=hh,t26);<br>
t27:=BARSSINCE(dS=27)+1;<br>
l27:=ref(l,T27);<br>
h27:=ref(H,t27);<br>
s27:=Any(H27&gt;=ll,t27);<br>
x27:=Any(l27&lt;=hh,t27);<br>
t28:=BARSSINCE(dS=28)+1;<br>
l28:=ref(l,T28);<br>
h28:=ref(H,t28);<br>
s28:=Any(H28&gt;=ll,t28);<br>
x28:=Any(l28&lt;=hh,t28);<br>
t29:=BARSSINCE(dS=29)+1;<br>
l29:=ref(l,T29);<br>
h29:=ref(H,t29);<br>
s29:=Any(H29&gt;=ll,t29);<br>
x29:=Any(l29&lt;=hh,t29);<br>
t30:=BARSSINCE(dS=30)+1;<br>
l30:=ref(l,T30);<br>
h30:=ref(H,t30);<br>
s30:=Any(H30&gt;=ll,t30);<br>
x30:=Any(l30&lt;=hh,t30);<br>
t31:=BARSSINCE(dS=31)+1;<br>
l31:=ref(l,T31);<br>
h31:=ref(H,t31);<br>
s31:=Any(H31&gt;=ll,t31);<br>
x31:=Any(l31&lt;=hh,t31);<br>
t32:=BARSSINCE(dS=32)+1;<br>
l32:=ref(l,T32);<br>
h32:=ref(H,t32);<br>
s32:=Any(H32&gt;=ll,t32);<br>
x32:=Any(l32&lt;=hh,t32);<br>
t33:=BARSSINCE(dS=33)+1;<br>
l33:=ref(l,T33);<br>
h33:=ref(H,t33);<br>
s33:=Any(H33&gt;=ll,t33);<br>
x33:=Any(l33&lt;=hh,t33);<br>
t34:=BARSSINCE(dS=34)+1;<br>
l34:=ref(l,T34);<br>
h34:=ref(H,t34);<br>
s34:=Any(H34&gt;=ll,t34);<br>
x34:=Any(l34&lt;=hh,t34);<br>
t35:=BARSSINCE(dS=35)+1;<br>
l35:=ref(l,T35);<br>
h35:=ref(H,t35);<br>
s35:=Any(H35&gt;=ll,t35);<br>
x35:=Any(l35&lt;=hh,t35);<br>
t36:=BARSSINCE(dS=36)+1;<br>
l36:=ref(l,T36);<br>
h36:=ref(H,t36);<br>
s36:=Any(H36&gt;=ll,t36);<br>
x36:=Any(l36&lt;=hh,t36);<br>
t37:=BARSSINCE(dS=37)+1;<br>
l37:=ref(l,T37);<br>
h37:=ref(H,t37);<br>
s37:=Any(H37&gt;=ll,t37);<br>
x37:=Any(l37&lt;=hh,t37);<br>
t38:=BARSSINCE(dS=38)+1;<br>
l38:=ref(l,T38);<br>
h38:=ref(H,t38);<br>
s38:=Any(H38&gt;=ll,t38);<br>
x38:=Any(l38&lt;=hh,t38);<br>
t39:=BARSSINCE(dS=39)+1;<br>
l39:=ref(l,T39);<br>
h39:=ref(H,t39);<br>
s39:=Any(H39&gt;=ll,t39);<br>
x39:=Any(l39&lt;=hh,t39);<br>
t40:=BARSSINCE(dS=40)+1;<br>
l40:=ref(l,T40);<br>
h40:=ref(H,t40);<br>
s40:=Any(H40&gt;=ll,t40);<br>
x40:=Any(l40&lt;=hh,t40);<br>
t41:=BARSSINCE(dS=41)+1;<br>
l41:=ref(l,T41);<br>
h41:=ref(H,t41);<br>
s41:=Any(H41&gt;=ll,t41);<br>
x41:=Any(l41&lt;=hh,t41);<br>
t42:=BARSSINCE(dS=42)+1;<br>
l42:=ref(l,T42);<br>
h42:=ref(H,t42);<br>
s42:=Any(H42&gt;=ll,t42);<br>
x42:=Any(l42&lt;=hh,t42);<br>
t43:=BARSSINCE(dS=43)+1;<br>
l43:=ref(l,T43);<br>
h43:=ref(H,t43);<br>
s43:=Any(H43&gt;=ll,t43);<br>
x43:=Any(l43&lt;=hh,t43);<br>
t44:=BARSSINCE(dS=44)+1;<br>
l44:=ref(l,T44);<br>
h44:=ref(H,t44);<br>
s44:=Any(H44&gt;=ll,t44);<br>
x44:=Any(l44&lt;=hh,t44);<br>
t45:=BARSSINCE(dS=45)+1;<br>
l45:=ref(l,T45);<br>
h45:=ref(H,t45);<br>
s45:=Any(H45&gt;=ll,t45);<br>
x45:=Any(l45&lt;=hh,t45);<br>
t46:=BARSSINCE(dS=46)+1;<br>
l46:=ref(l,T46);<br>
h46:=ref(H,t46);<br>
s46:=Any(H46&gt;=ll,t46);<br>
x46:=Any(l46&lt;=hh,t46);<br>
t47:=BARSSINCE(dS=47)+1;<br>
l47:=ref(l,T47);<br>
h47:=ref(H,t47);<br>
s47:=Any(H47&gt;=ll,t47);<br>
x47:=Any(l47&lt;=hh,t47);<br>
t48:=BARSSINCE(dS=48)+1;<br>
l48:=ref(l,T48);<br>
h48:=ref(H,t48);<br>
s48:=Any(H48&gt;=ll,t48);<br>
x48:=Any(l48&lt;=hh,t48);<br>
t49:=BARSSINCE(dS=49)+1;<br>
l49:=ref(l,T49);<br>
h49:=ref(H,t49);<br>
s49:=Any(H49&gt;=ll,t49);<br>
x49:=Any(l49&lt;=hh,t49);<br>
t50:=BARSSINCE(dS=50)+1;<br>
l50:=ref(l,T50);<br>
h50:=ref(H,t50);<br>
s50:=Any(H50&gt;=ll,t50);<br>
x50:=Any(l50&lt;=hh,t50);<br>
t51:=BARSSINCE(dS=51)+1;<br>
l51:=ref(l,T51);<br>
h51:=ref(H,t51);<br>
s51:=Any(H51&gt;=ll,t51);<br>
x51:=Any(l51&lt;=hh,t51);<br>
t52:=BARSSINCE(dS=52)+1;<br>
l52:=ref(l,T52);<br>
h52:=ref(H,t52);<br>
s52:=Any(H52&gt;=ll,t52);<br>
x52:=Any(l52&lt;=hh,t52);<br>
t53:=BARSSINCE(dS=53)+1;<br>
l53:=ref(l,T53);<br>
h53:=ref(H,t53);<br>
s53:=Any(H53&gt;=ll,t53);<br>
x53:=Any(l53&lt;=hh,t53);<br>
t54:=BARSSINCE(dS=54)+1;<br>
l54:=ref(l,T54);<br>
h54:=ref(H,t54);<br>
s54:=Any(H54&gt;=ll,t54);<br>
x54:=Any(l54&lt;=hh,t54);<br>
t55:=BARSSINCE(dS=55)+1;<br>
l55:=ref(l,T55);<br>
h55:=ref(H,t55);<br>
s55:=Any(H55&gt;=ll,t55);<br>
x55:=Any(l55&lt;=hh,t55);<br>
t56:=BARSSINCE(dS=56)+1;<br>
l56:=ref(l,T56);<br>
h56:=ref(H,t56);<br>
s56:=Any(H56&gt;=ll,t56);<br>
x56:=Any(l56&lt;=hh,t56);<br>
t57:=BARSSINCE(dS=57)+1;<br>
l57:=ref(l,T57);<br>
h57:=ref(H,t57);<br>
s57:=Any(H57&gt;=ll,t57);<br>
x57:=Any(l57&lt;=hh,t57);<br>
t58:=BARSSINCE(dS=58)+1;<br>
l58:=ref(l,T58);<br>
h58:=ref(H,t58);<br>
s58:=Any(H58&gt;=ll,t58);<br>
x58:=Any(l58&lt;=hh,t58);<br>
t59:=BARSSINCE(dS=59)+1;<br>
l59:=ref(l,T59);<br>
h59:=ref(H,t59);<br>
s59:=Any(H59&gt;=ll,t59);<br>
x59:=Any(l59&lt;=hh,t59);<br>
t60:=BARSSINCE(dS=60)+1;<br>
l60:=ref(l,T60);<br>
h60:=ref(H,t60);<br>
s60:=Any(H60&gt;=ll,t60);<br>
x60:=Any(l60&lt;=hh,t60);<br>
t61:=BARSSINCE(qkS=0)+1;<br>
l61:=ref(l,T61);<br>
h61:=ref(H,t61);<br>
s61:=Any(H61&gt;=ll,t61);<br>
x61:=Any(l61&lt;=hh,t61);<br>
w1:=BARSTATUS=2 and x1=0 or s1=0;<br>
ww1:=if(w1*t1,w1*t1,9999);<br>
w2:=BARSTATUS=2 and x2=0 or s2=0;<br>
ww2:=if(w2*t2,w2*t2,9999);<br>
w3:=BARSTATUS=2 and x3=0 or s3=0;<br>
ww3:=if(w3*t3,w3*t3,9999);<br>
w4:=BARSTATUS=2 and x4=0 or s4=0;<br>
ww4:=if(w4*t4,w4*t4,9999);<br>
w5:=BARSTATUS=2 and x5=0 or s5=0;<br>
ww5:=if(w5*t5,w5*t5,9999);<br>
w6:=BARSTATUS=2 and x6=0 or s6=0;<br>
ww6:=if(w6*t6,w6*t6,9999);<br>
w7:=BARSTATUS=2 and x7=0 or s7=0;<br>
ww7:=if(w7*t7,w7*t7,9999);<br>
w8:=BARSTATUS=2 and x8=0 or s8=0;<br>
ww8:=if(w8*t8,w8*t8,9999);<br>
w9:=BARSTATUS=2 and x9=0 or s9=0;<br>
ww9:=if(w9*t9,w9*t9,9999);<br>
w10:=BARSTATUS=2 and x10=0 or s10=0;<br>
ww10:=if(w10*t10,w10*t10,9999);<br>
w11:=BARSTATUS=2 and x11=0 or s11=0;<br>
ww11:=if(w11*t11,w11*t11,9999);<br>
w12:=BARSTATUS=2 and x12=0 or s12=0;<br>
ww12:=if(w12*t12,w12*t12,9999);<br>
w13:=BARSTATUS=2 and x13=0 or s13=0;<br>
ww13:=if(w13*t13,w13*t13,9999);<br>
w14:=BARSTATUS=2 and x14=0 or s14=0;<br>
ww14:=if(w14*t14,w14*t14,9999);<br>
w15:=BARSTATUS=2 and x15=0 or s15=0;<br>
ww15:=if(w15*t15,w15*t15,9999);<br>
w16:=BARSTATUS=2 and x16=0 or s16=0;<br>
ww16:=if(w16*t16,w16*t16,9999);<br>
w17:=BARSTATUS=2 and x17=0 or s17=0;<br>
ww17:=if(w17*t17,w17*t17,9999);<br>
w18:=BARSTATUS=2 and x18=0 or s18=0;<br>
ww18:=if(w18*t18,w18*t18,9999);<br>
w19:=BARSTATUS=2 and x19=0 or s19=0;<br>
ww19:=if(w19*t19,w19*t19,9999);<br>
w20:=BARSTATUS=2 and x20=0 or s20=0;<br>
ww20:=if(w20*t20,w20*t20,9999);<br>
w21:=BARSTATUS=2 and x21=0 or s21=0;<br>
ww21:=if(w21*t21,w21*t21,9999);<br>
w22:=BARSTATUS=2 and x22=0 or s22=0;<br>
ww22:=if(w22*t22,w22*t22,9999);<br>
w23:=BARSTATUS=2 and x23=0 or s23=0;<br>
ww23:=if(w23*t23,w23*t23,9999);<br>
w24:=BARSTATUS=2 and x24=0 or s24=0;<br>
ww24:=if(w24*t24,w24*t24,9999);<br>
w25:=BARSTATUS=2 and x25=0 or s25=0;<br>
ww25:=if(w25*t25,w25*t25,9999);<br>
w26:=BARSTATUS=2 and x26=0 or s26=0;<br>
ww26:=if(w26*t26,w26*t26,9999);<br>
w27:=BARSTATUS=2 and x27=0 or s27=0;<br>
ww27:=if(w27*t27,w27*t27,9999);<br>
w28:=BARSTATUS=2 and x28=0 or s28=0;<br>
ww28:=if(w28*t28,w28*t28,9999);<br>
w29:=BARSTATUS=2 and x29=0 or s29=0;<br>
ww29:=if(w29*t29,w29*t29,9999);<br>
w30:=BARSTATUS=2 and x30=0 or s30=0;<br>
ww30:=if(w30*t30,w30*t30,9999);<br>
w31:=BARSTATUS=2 and x31=0 or s31=0;<br>
ww31:=if(w31*t31,w31*t31,9999);<br>
w32:=BARSTATUS=2 and x32=0 or s32=0;<br>
ww32:=if(w32*t32,w32*t32,9999);<br>
w33:=BARSTATUS=2 and x33=0 or s33=0;<br>
ww33:=if(w33*t33,w33*t33,9999);<br>
w34:=BARSTATUS=2 and x34=0 or s34=0;<br>
ww34:=if(w34*t34,w34*t34,9999);<br>
w35:=BARSTATUS=2 and x35=0 or s35=0;<br>
ww35:=if(w35*t35,w35*t35,9999);<br>
w36:=BARSTATUS=2 and x36=0 or s36=0;<br>
ww36:=if(w36*t36,w36*t36,9999);<br>
w37:=BARSTATUS=32 and x37=0 or s37=0;<br>
ww37:=if(w37*t37,w37*t37,9999);<br>
w38:=BARSTATUS=2 and x38=0 or s38=0;<br>
ww38:=if(w38*t38,w38*t38,9999);<br>
w39:=BARSTATUS=2 and x39=0 or s39=0;<br>
ww39:=if(w39*t39,w39*t39,9999);<br>
w40:=BARSTATUS=2 and x40=0 or s40=0;<br>
ww40:=if(w40*t40,w40*t40,9999);<br>
w41:=BARSTATUS=2 and x41=0 or s41=0;<br>
ww41:=if(w41*t41,w41*t41,9999);<br>
w42:=BARSTATUS=2 and x42=0 or s42=0;<br>
ww42:=if(w42*t42,w42*t42,9999);<br>
w43:=BARSTATUS=2 and x43=0 or s43=0;<br>
ww43:=if(w43*t43,w43*t43,9999);<br>
w44:=BARSTATUS=2 and x44=0 or s44=0;<br>
ww44:=if(w44*t44,w44*t44,9999);<br>
w45:=BARSTATUS=2 and x45=0 or s45=0;<br>
ww45:=if(w45*t45,w45*t45,9999);<br>
w46:=BARSTATUS=2 and x46=0 or s46=0;<br>
ww46:=if(w46*t46,w46*t46,9999);<br>
w47:=BARSTATUS=2 and x47=0 or s47=0;<br>
ww47:=if(w47*t47,w47*t47,9999);<br>
w48:=BARSTATUS=2 and x48=0 or s48=0;<br>
ww48:=if(w48*t48,w48*t48,9999);<br>
w49:=BARSTATUS=2 and x49=0 or s49=0;<br>
ww49:=if(w49*t49,w49*t49,9999);<br>
w50:=BARSTATUS=2 and x50=0 or s50=0;<br>
ww50:=if(w50*t50,w50*t50,9999);<br>
w51:=BARSTATUS=2 and x51=0 or s51=0;<br>
ww51:=if(w51*t51,w51*t51,9999);<br>
w52:=BARSTATUS=2 and x52=0 or s52=0;<br>
ww52:=if(w52*t52,w52*t52,9999);<br>
w53:=BARSTATUS=2 and x53=0 or s53=0;<br>
ww53:=if(w53*t53,w53*t53,9999);<br>
w54:=BARSTATUS=2 and x54=0 or s54=0;<br>
ww54:=if(w54*t54,w54*t54,9999);<br>
w55:=BARSTATUS=2 and x55=0 or s55=0;<br>
ww55:=if(w55*t55,w55*t55,9999);<br>
w56:=BARSTATUS=2 and x56=0 or s56=0;<br>
ww56:=if(w56*t56,w56*t56,9999);<br>
w57:=BARSTATUS=2 and x57=0 or s57=0;<br>
ww57:=if(w57*t57,w57*t57,9999);<br>
w58:=BARSTATUS=2 and x58=0 or s58=0;<br>
ww58:=if(w58*t58,w58*t58,9999);<br>
w59:=BARSTATUS=2 and x59=0 or s59=0;<br>
ww59:=if(w59*t59,w59*t59,9999);<br>
w60:=BARSTATUS=2 and x60=0 or s60=0;<br>
ww60:=if(w60*t60,w60*t60,9999);<br>
w61:=BARSTATUS=2 and x61=0 or s61=0;<br>
ww61:=if(w61*t61,w61*t61,9999);<br>
min1:=min(ww1,ww2,ww3,ww4,ww5,ww6,ww7,ww8,ww9,ww10,ww11,ww12,ww13,ww14,ww15,ww16);<br>
min2:=min(ww17,ww18,ww19,ww20,ww21,ww22,ww23,ww24,ww25,ww26,ww27,ww28,ww29,ww30,ww31,ww32);<br>
min3:=min(ww33,ww34,ww35,ww36,ww37,ww38,ww39,ww40,ww41,ww42,ww43,ww44,ww45,ww46,ww47,ww48);<br>
min4:=min(ww49,ww50,ww51,ww52,ww53,ww54,ww55,ww56,ww57,ww58,ww59,ww60,ww61,min1,min2,min3);<br>
min5a:=if(min4&gt;=9999,0,min4);<br>
min5:=if(BARSTATUS=2,min4,0);<br>
w:=BACKSET(BARSTATUS=2,min5);<br>
tx:=BARSSINCE(w);<br>
qklx1:=ref(qklx,tx);<br>
qkh:=ref(H,tx+1);<br>
qkl:=ref(l,tx+1);<br>
qkhl:=if(qklx1=2,qkh,if(qklx1=1,qkl,0));<br>
wl:=LLv(L,tx+1);<br>
wh:=hhv(h,tx+1);<br>
wl1:=LLVALL(wl);<br>
wh1:=hhVALL(wh);<br>
whl:=if(qklx1=2,wl1,if(qklx1=1,wh1,0));<br>
DRAWTEXT(tx=0 and qklx=1,qkl,''+NUMTOSTRN(wh1,2)+'-'+NUMTOSTRN(qkl,2)),VALIGN2,colorwhite;<br>
DRAWTEXT(tx=0 and qklx=2,qkh,''+NUMTOSTRN(qkh,2)+'-'+NUMTOSTRN(wl1,2)),VALIGN0,colorwhite;<br>
STICKLINE(w,qkhl,whl,13,0),COLORGRAY,LAYER0;<br>
ma5:ma(c,n1),COLORWHITE,LAYER0;<br>
ma10:ma(c,n2),COLORYELLOW,LAYER0;<br>
ma30:ma(c,n3),COLORMAGENTA,LAYER0;<br/>DRAWTEXTABS(1,10,'~☆~更多精选指标请访问:995168.cn'),COLORRED;</p><p><br></p><p><br></p><p><br></p>
<p></p>
</div>
页: [1]
查看完整版本: 大智慧直观显示跳空缺口主图指标公式