比系数:=1.3;
金线:=1;
临界点:=0;
ma5:=ma(c,5);
ma10:=ma(c,10);
ma20:=ma(c,20);
均线:=ma5>ref(ma5,1) and ma10<ref(ma10,1) and ma20<ref(ma20,1);
rv1:=ref(v,1);
rv2:=ref(v,2);
rv3:=ref(v,3);
rc1:=ref(c,1);
rc2:=ref(c,2);
rc3:=ref(c,3);
rc4:=ref(c,4);
ro1:=ref(o,1);
ro2:=ref(o,2);
ro3:=ref(o,3);
ro4:=ref(o,4);
不破价顶:=c>=rc3 and rc1>=rc3 and rc2>=rc3;
不破价底:=l>ro3 and ref(l,1)>ro3 and ref(l,2)>ro3;
均价1:=amount/vol/100;
rj1:=ref(均价1,1);
rj2:=ref(均价1,2);
阳柱:=c>=o or (c<o and 均价1>rc1);
三日二阳:=count(阳柱,3)>=2;
基价柱阳:=rc3>ro3;
价渐升:=(均价1>=rj1 or c>rc1) and (rj1>=rj2 or rc1>=rc2);
均价升:=(c+rc1+rc2)/3>rc3;
量渐升:=v>rv1 and rv1>rv2 ;
量渐减:=v<=rv1 and rv1<=rv2 ;
均量减:=(v+rv1+rv2)/3<=rv3 and not(量渐升);
日价量比:=c/v;{}
日价量比升:=日价量比>=ref(日价量比,1) and ref(日价量比,1)>=ref(日价量比,2);
均价升幅:=(c+rc1+rc2)/3/rc3;
均量升幅:=(v+rv1+rv2)/3/rv3;
价量比:=比系数*均价升幅/均量升幅>1;
基前跳空:=ro3>rc4 and rc4>ro4;
黄金柱1t:=基价柱阳 and 价渐升 and 量渐减 and 不破价顶 and 不破价底 and 基前跳空;
backset101t:=backset(黄金柱1t,5);
filter101t:=filter(backset101t,4);
黄金柱1:=基价柱阳 and 价渐升 and 量渐减 and 不破价顶 and 不破价底 ;
backset101:=backset(黄金柱1,4);
filter101:=filter(backset101,3);
黄金柱11:=黄金柱1 and ref(黄金柱1,1);
backset1011:=backset(黄金柱11,4);
filter1011:=filter(backset1011,3);
黄金柱12:=黄金柱1 and ref(黄金柱1,2);
backset1012:=backset(黄金柱12,4);
filter1012:=filter(backset1012,3);
黄金柱13:=黄金柱1 and ref(黄金柱1,3);
backset1013:=backset(黄金柱13,4);
filter1013:=filter(backset1013,3);
黄金柱2t:=基价柱阳 and 价渐升 and 均量减 and not(量渐升) and 不破价顶 and 不破价底 and 基前跳空 and not(黄金柱1) and not(黄金柱1t);
backset201t:=backset(黄金柱2t,5);
filter201t:=filter(backset201t,4);
黄金柱2:=基价柱阳 and 价渐升 and 均量减 and not(量渐升) and 不破价顶 and 不破价底 and not(黄金柱1) and not(黄金柱1t);
backset201:=backset(黄金柱2,4);
filter201:=filter(backset201,3);
黄金柱21:=黄金柱2 and ref(黄金柱2,1);
backset2011:=backset(黄金柱21,4);
filter2011:=filter(backset2011,3);
黄金柱22:=黄金柱2 and ref(黄金柱2,2);
backset2012:=backset(黄金柱22,4);
filter2012:=filter(backset2012,3);
黄金柱23:=黄金柱2 and ref(黄金柱2,3);
backset2013:=backset(黄金柱23,4);
filter2013:=filter(backset2013,3);
黄金柱3t:=基价柱阳 and 均价升 and 量渐减 and 不破价顶 and 不破价底 and 基前跳空 and not(黄金柱1) and not(黄金柱2) and not(黄金柱1t) and not(黄金柱2t);
backset301t:=backset(黄金柱3t,5);
filter301t:=filter(backset301t,4);
黄金柱3:=基价柱阳 and 均价升 and 量渐减 and 不破价顶 and 不破价底 and not(黄金柱1) and not(黄金柱2) and not(黄金柱1t) and not(黄金柱2t);
backset301:=backset(黄金柱3,4);
filter301:=filter(backset301,3);
黄金柱31:=黄金柱3 and ref(黄金柱3,1);
backset3011:=backset(黄金柱31,4);
filter3011:=filter(backset3011,3);
黄金柱32:=黄金柱3 and ref(黄金柱3,2);
backset3012:=backset(黄金柱32,4);
filter3012:=filter(backset3012,3);
黄金柱33:=黄金柱3 and ref(黄金柱3,3);
backset3013:=backset(黄金柱33,4);
filter3013:=filter(backset3013,3);
黄金柱4t:=基价柱阳 and 均价升 and 均量减 and 不破价顶 and 不破价底 and 基前跳空 and not(黄金柱1) and not(黄金柱1t) and not(黄金柱2) and not(黄金柱2t) and not(黄金柱3) and not(黄金柱3t);
backset401t:=backset(黄金柱4t,5);
filter401t:=filter(backset401t,4);
黄金柱4:=基价柱阳 and 均价升 and 均量减 and 不破价顶 and 不破价底 and not(黄金柱1) and not(黄金柱2) and not(黄金柱3) and not(黄金柱1t) and not(黄金柱2t) and not(黄金柱3t);
backset401:=backset(黄金柱4,4);
filter401:=filter(backset401,3);
黄金柱41:=黄金柱4 and ref(黄金柱4,1);
backset4011:=backset(黄金柱41,4);
filter4011:=filter(backset4011,3);
黄金柱42:=黄金柱4 and ref(黄金柱4,2);
backset4012:=backset(黄金柱42,4);
filter4012:=filter(backset4012,3);
黄金柱43:=黄金柱4 and ref(黄金柱4,3);
backset4013:=backset(黄金柱43,4);
filter4013:=filter(backset4013,3);
黄金柱5t:=基价柱阳 and 均价升 and 价量比 and 不破价顶 and 不破价底 and 基前跳空 and not(黄金柱1) and not(黄金柱2) and not(黄金柱3) and not(黄金柱4) and not(黄金柱1t) and not(黄金柱2t) and not(黄金柱3t) and not(黄金柱4t);
backset501t:=backset(黄金柱5t,5);
filter501t:=filter(backset501t,4);
黄金柱5:=基价柱阳 and 均价升 and 价量比 and 不破价顶 and 不破价底 and not(黄金柱1) and not(黄金柱2) and not(黄金柱3) and not(黄金柱4) and not(黄金柱1t) and not(黄金柱2t) and not(黄金柱3t) and not(黄金柱4t);
backset501:=backset(黄金柱5,4);
filter501:=filter(backset501,3);
黄金柱51:=黄金柱5 and ref(黄金柱5,1);
backset5011:=backset(黄金柱51,4);
filter5011:=filter(backset5011,3);
黄金柱52:=黄金柱5 and ref(黄金柱5,2);
backset5012:=backset(黄金柱52,4);
filter5012:=filter(backset5012,3);
黄金柱53:=黄金柱5 and ref(黄金柱5,3);
backset5013:=backset(黄金柱53,4);
filter5013:=filter(backset5013,3);
黄金柱6t:=基价柱阳 and 均价升 and 日价量比升 and 不破价顶 and 不破价底 and 基前跳空 and not(黄金柱1) and not(黄金柱2) and not(黄金柱3) and not(黄金柱4) and not(黄金柱5) and not(黄金柱1t) and not(黄金柱2t) and not(黄金柱3t) and not(黄金柱4t) and not(黄金柱5t);
backset601t:=backset(黄金柱6t,5);
filter601t:=filter(backset601t,4);
黄金柱6:=基价柱阳 and 均价升 and 日价量比升 and 不破价顶 and 不破价底 and not(黄金柱1) and not(黄金柱2) and not(黄金柱3) and not(黄金柱4) and not(黄金柱5) and not(黄金柱1t) and not(黄金柱2t) and not(黄金柱3t) and not(黄金柱4t) and not(黄金柱5t);
backset601:=backset(黄金柱6,4);
filter601:=filter(backset601,3);
黄金柱61:=黄金柱6 and ref(黄金柱6,1);
backset6011:=backset(黄金柱61,4);
filter6011:=filter(backset6011,3);
黄金柱62:=黄金柱6 and ref(黄金柱6,2);
backset6012:=backset(黄金柱62,4);
filter6012:=filter(backset6012,3);
黄金柱63:=黄金柱6 and ref(黄金柱6,3);
backset6013:=backset(黄金柱63,4);
filter6013:=filter(backset6013,3);
fil1:=(filter101 and not(ref(filter101,4))) or (filter1011 and not(ref(filter1011,4))) or (filter1012 and not(ref(filter1012,4))) or (filter1013 and not(ref(filter1013,4)));
fil2:=(filter201 and not(ref(filter201,4))) or (filter2011 and not(ref(filter2011,4))) or (filter2012 and not(ref(filter2012,4))) or (filter2013 and not(ref(filter2013,4)));
fil3:=(filter301 and not(ref(filter301,4))) or (filter3011 and not(ref(filter3011,4))) or (filter3012 and not(ref(filter3012,4))) or (filter3013 and not(ref(filter3013,4)));
fil4:=(filter401 and not(ref(filter401,4))) or (filter4011 and not(ref(filter4011,4))) or (filter4012 and not(ref(filter4012,4))) or (filter4013 and not(ref(filter4013,4)));
fil5:=(filter501 and not(ref(filter501,4))) or (filter5011 and not(ref(filter5011,4))) or (filter5012 and not(ref(filter5012,4))) or (filter5013 and not(ref(filter5013,4)));
fil6:=(filter601 and not(ref(filter601,4))) or (filter6011 and not(ref(filter6011,4))) or (filter6012 and not(ref(filter6012,4))) or (filter6013 and not(ref(filter6013,4)));
fil:=fil1 or fil2 or fil3 or fil4 or fil5 or fil6;
stickline(fil and not(ref(fil,4)),open,close,2,0),color0099ff;
k1:=sumbars(fil,1);
fil1t:=(filter101t and not(ref(filter101t,5)));
fil2t:=(filter201t and not(ref(filter201t,5)));
fil3t:=(filter301t and not(ref(filter301t,5)));
fil4t:=(filter401t and not(ref(filter401t,5)));
fil5t:=(filter501t and not(ref(filter501t,5)));
fil6t:=(filter601t and not(ref(filter601t,5)));
filt:=fil1t or fil2t or fil3t or fil4t or fil5t or fil6t;
stickline(filt and not(ref(filt,5)),open,close,2,0),color0000ff;
k2:=sumbars(filt,1);
黄金柱lj:=(黄金柱1 or 黄金柱2 or 黄金柱3 or 黄金柱4 or 黄金柱5 or 黄金柱6 ) and 均线 and 临界点;
backset10lj:=backset(黄金柱lj ,4);
filter10lj:=filter(backset10lj,3);
stickline(filter10lj and not(ref(filter10lj,4)),open,close,2,0),color0099ff;
黄金柱ljt:=(黄金柱1t or 黄金柱2t or 黄金柱3t or 黄金柱4t or 黄金柱5t or 黄金柱6t) and 均线 and 临界点 ;
backset10ljt:=backset(黄金柱ljt ,5);
filter10ljt:=filter(backset10ljt,5);
stickline(filter10ljt and not(ref(filter10ljt,4)),open,close,2,0),color0099ff;
{涨跌停价格显示};
aa:=(c-ref(c,1))/ref(c,1)*100;
zs:=(namelike('st') or namelike('*st') or namelike('s')) and aa>=4.945;
ds:=(namelike('st') or namelike('*st') or namelike('s')) and aa<=-4.945;
涨停价:if(zs,ref(c,1)*1.05,ref(c,1)*1.1),nodraw,colorred;
跌停价:if(ds,ref(c,1)*0.95,ref(c,1)*0.9),nodraw,colorgreen;
周期:=currbarscount,nodraw,colormagenta;
ldm2001:=refx(hhv(max(open,close),100),周期-1);
ldm2002:=refx(llv(low,100),周期-1);
ldm2003:=close/ref(close,1)<=1-3/100 and open>close ;
ldm2004:=if(n12=1,0.5,if(n12=2,1,if(n12=3,(-1),if(n12=4,3,4))));
ldm2005:=0;
ldm2006:=refx(ref(open,barslast( ldm2003 and open< ldm2001)),周期-1);
ldm2007:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2006)),周期-1);
ldm2008:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2007)),周期-1);
ldm2009:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2008)),周期-1);
ldm2010:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2009)),周期-1);
ldm2011:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2010)),周期-1);
ldm2012:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2011)),周期-1);
ldm2013:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2012)),周期-1);
ldm2014:=refx(ref(open,barslast( ldm2003 and open< ldm2001 and open> ldm2013)),周期-1);
ldm2015:=refx(barslast( ldm2003 and open< ldm2001),周期-1)+1;
ldm2016:=refx(barslast( ldm2003 and open< ldm2001 and open> ldm2006),周期-1)+1;
ldm2017:=refx(barslast( ldm2003 and open< ldm2001 and open> ldm2007),周期-1)+1;
ldm2018:=refx(barslast(ldm2003 and open<ldm2001 and open> ldm2008),周期-1)+1;
ldm2019:=refx(barslast(ldm2003 and open<ldm2001 and open> ldm2009),周期-1)+1;
ldm2020:=refx(barslast(ldm2003 and open<ldm2001 and open>ldm2010),周期-1)+1;
ldm2021:=refx(barslast(ldm2003 and open<ldm2001 and open>ldm2011),周期-1)+1;
ldm2022:=refx(barslast(ldm2003 and open<ldm2001 and open>ldm2012),周期-1)+1;
ldm2023:=refx(barslast(ldm2003 and open<ldm2001 and open>ldm2013),周期-1)+1;
ldm2024:=if(n3=1,1,count(max(open,close)>ldm2006,ldm2015-周期)=0);
ldm2025:=if(n3=1,1,count(max(open,close)>ldm2007,ldm2016-周期)=0);
ldm2026:=if(n3=1,1,count(max(open,close)>ldm2008,ldm2017-周期)=0);
ldm2027:=if(n3=1,1,count(max(open,close)>ldm2009,ldm2018-周期)=0);
ldm2028:=if(n3=1,1,count(max(open,close)>ldm2010,ldm2019-周期)=0);
ldm2029:=if(n3=1,1,count(max(open,close)>ldm2011,ldm2020-周期)=0);
ldm2030:=if(n3=1,1,count(max(open,close)>ldm2012,ldm2021-周期)=0);
ldm2031:=if(n3=1,1,count(max(open,close)>ldm2013,ldm2022-周期)=0);
ldm2032:=if(n3=1,1,count(max(open,close)>ldm2014,ldm2023-周期)=0);
stickline(周期<ldm2015 and ldm2024,ldm2006,ldm2006,ldm2004,ldm2005),colorligreen;
stickline(周期<ldm2016 and ldm2025,ldm2007,ldm2007,ldm2004,ldm2005),colormagenta;
stickline(周期<ldm2017 and ldm2026,ldm2008,ldm2008,ldm2004,ldm2005),colorligreen;
stickline(周期<ldm2018 and ldm2027,ldm2009,ldm2009,ldm2004,ldm2005),colormagenta;
stickline(周期<ldm2019 and ldm2028,ldm2010,ldm2010,ldm2004,ldm2005),colorligreen;
stickline(周期<ldm2020 and ldm2029,ldm2011,ldm2011,ldm2004,ldm2005),colormagenta;
stickline(周期<ldm2021 and ldm2030,ldm2012,ldm2012,ldm2004,ldm2005),colorligreen;
stickline(周期<ldm2022 and ldm2031,ldm2013,ldm2013,ldm2004,ldm2005),colormagenta;
stickline(周期<ldm2023 and ldm2032,ldm2014,ldm2014,ldm2004,ldm2005),colorligreen;
ldm2033:=low*0.98;
if( ldm2006=open and ldm2003,ldm2033,drawnull),stick,colorligreen;
if( ldm2007=open and ldm2003,ldm2033,drawnull),stick,colormagenta;
if( ldm2008=open and ldm2003,ldm2033,drawnull),stick,colorligreen;
if( ldm2009=open and ldm2003,ldm2033,drawnull),stick,colormagenta;
if( ldm2010=open and ldm2003,ldm2033,drawnull),stick,colorligreen;
if( ldm2011=open and ldm2003,ldm2033,drawnull),stick,colormagenta;
if( ldm2012=open and ldm2003,ldm2033,drawnull),stick,colorligreen;
if(ldm2013=open and ldm2003,ldm2033,drawnull),stick,colormagenta;
if( ldm2014=open and ldm2003,ldm2033,drawnull),stick,colorligreen;
stickline(周期<ldm2023,ldm2002,ldm2002,ldm2004,ldm2005),colorligreen;
{1}
hh:=hhv(h,60);
ll:=llv(l,60);
上涨:=barssince(backset(islastbar,barslast(l=ll)+1)),color0000ff,nodraw;
下跌:=barssince(backset(islastbar,barslast(h=hh)+1)),color00ff00,nodraw;
天线:refdate(hh,date),pointdot,linethick3,colormagenta;
地线:refdate(ll,date),pointdot,linethick3,color00ff00;
中线:refdate((天线-地线)*0.5+地线,date),pointdot,linethick3,colorred;
stickline(上涨=0,天线,地线,0,-1),colorred;
stickline(下跌=0,天线,地线,0,-1),colormagenta;
drawtext(islastbar,天线,var2str(天线,2)),colorlired;
drawtext(islastbar,地线,var2str(地线,2)),colorlired;
{2}
高:=天线;
低:=地线;
h2:=高-(高-低)*0.333;
h3:=高-(高-低)*0.5;
h4:=高-(高-低)*0.666;
drawtext(上涨=0,天线,'-最高'),color0000ff;
drawtext(上涨=0,低,'-最低'),colorred;
drawtext(下跌=0,高,'-高'),colorgreen;
drawtext(下跌=0,地线,'-低'),color00ff00;
drawtext(下跌=0,h2,'-0.666'),colorgray;
drawtext(下跌=0,h3,'-中'),colorbrown;
drawtext(下跌=0,h4,'-0.333'),colorlired;
drawtext(上涨=0,h2,'-上三一位'),colorgray;
drawtext(上涨=0,h3,'-中'),colorbrown;
drawtext(上涨=0,h4,'-下三一位'),colorlired;
上三一位:h2,nodraw,colorlired;
二一位:h3,nodraw,colorbrown;
下三一位:h4,nodraw,,colormagenta;
{假阳真阴}
均价:=amount/vol/100;
假阳:=c>o and ref(c,1)>均价 and c>均价 and c<300 ;
stickline(假阳,o,c,1,0)colorlicyan;
标志阴:=ref(c,1)/c>1.04;
stickline(标志阴,o,c,1,0)colorwhite;
{假阴真阳}
假阴:=o>c and 均价>ref(c,1) and c>ma(c,5);
stickline(假阴,o,c,1,0),colorred;
{画3条线}
ldm130:=1;
ldm90:=close>500;
ldm100:=max(close,open);
ldm110:=min(close,open);
ldm149:=if(ldm90,high,ldm100);
ldm150:=if(ldm90,low,ldm110);
ldm160:=if(close>open,if(ldm130=0,low,ldm150),if(ldm130=0,high,ldm149));
ldm138:=ldm149-(ldm149-ldm150)/3;
ldm139:=ldm150+(ldm149-ldm150)/3;
ldm140:=ldm150+(ldm149-ldm150)/2;
ldm141:=1+if(ldm90,2,4.92)/100;
ldm142:=ldm149/ldm150>=ldm141 or close/ref(close,1)>=ldm141;
stickline(ldm142,ldm138,ldm138 ,2,0),colorbrown;
stickline(ldm142,ldm140,ldm140,2,0),colorbrown;
stickline(ldm142,ldm139,ldm139,2,0),colorbrown;
上榜:=signals_user(300, 0), nodraw; {上榜金额>1,则表示上榜了,这个是上榜总金额}
净买入:=signals_user(299, 0), nodraw;
drawicon(上榜>=1 and 净买入>=0 and 显示龙虎标志=1,l*0.995,38);
drawicon(上榜>=1 and 净买入<0 and 显示龙虎标志=1 ,l*0.995,39);
name_299 := '↖ 龙';
outtext_299:=varcat(varcat(name_299, ' '), var2str(净买入, 0)), nodraw;
drawtext((上榜>=1) and 显示龙虎=1,-low*0.01+low,outtext_299),colorlired;
{涨跌停k线标识};
st:=namelike('st')=1 or namelike('*st')=1 or namelike('sst')=1
or namelike('s*st')=1 or namelike('s st')=1;
涨停:=c=ztprice(ref(close,1),0.1) or (c/ref(c,1)>1.0495 and st);
跌停:=ref(c,1)/c>1.0995 or (ref(c,1)/c>1.0495 and st);
stickline(涨停,c,o,3,0),colormagenta;
stickline(跌停,c,o,3,0),colorgreen;
drawicon(h=ztprice(ref(close,1),0.1) and c!=h,l*0.965,15);
{}
区间:=计算周期;
误差值:=千分误差/1000;
柱底价格:=if(柱底位置=1,o,l);
高量柱00:=if(显示高量梯=1,vol=hhv(vol,10) and (close>=ref(close,1) or close>=open),0);
ht_z_cc1:=count(高量柱00,currbarscount-区间);
ht_z_cc2:=if(ht_z_cc1>0 and currbarscount<区间,ht_z_cc1,drawnull);
ht_z_cch:=hhv(ht_z_cc2,barscount(c));
ht_z_ccl:=llv(ht_z_cc2,barscount(c) and (ht_z_cc2 != drawnull));
ht_z_区间:=backset(islastbar,区间);
计算柱数量:=if(islastbar,hhv(ht_z_cc2,barscount(c))-llv(ht_z_cc2,barscount(c)-区间),0),colorwhite,nodraw;
柱数量总数:=refx(hhv(计算柱数量,区间),currbarscount-1);
千分误差幅度:=千分误差;
计算周期天数:=计算周期;
柱标识:=if(currbarscount<=区间 and 高量柱00,1,0) { 柱标识 };
柱编号:=柱数量总数-sum(柱标识,0)+1; {柱编号 递减 };
id01:=1;
ht_z_io01:=if(柱编号=id01,currbarscount,0),colorwhite,nodraw;
ht_z_no01:=hhv(ht_z_io01,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价03:if(islastbar,llv(min(o,c),ht_z_no03),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数01:=hhv(ht_z_io01,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低01:=if(refx(llv(min(o,c),周期数01-1),周期数01-1)>0,refx(llv(min(o,c),周期数01-1),周期数01-1),0),colorwhite,nodraw;
有效柱01:=if( 柱编号=id01 and 柱底价格<右侧低01 and 右侧低01>0 ,1,0),coloryellow,nodraw;
柱右低y01:=ref(右侧低01*(1+误差值), 周期数01-currbarscount),colorwhite,nodraw;
柱基价x01:=ref( 柱底价格 , 周期数01-currbarscount),coloryellow,nodraw;
ht_z_if01:=if(有效柱01=1 and 柱基价x01<柱右低y01,1,0);
stickline( ht_z_if01 ,ref(柱底价格,周期数01-currbarscount) ,ref(柱底价格,周期数01-currbarscount) ,5,0),colorgreen;
id02:=2;
ht_z_io02:=if(柱编号=id02,currbarscount,0),colorwhite,nodraw;
ht_z_no02:=hhv(ht_z_io02,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
周期数02:=hhv(ht_z_io02,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低02:=if(refx(llv(min(o,c),周期数02-1),周期数02-1)>0,refx(llv(min(o,c),周期数02-1),周期数02-1),0),colorwhite,nodraw;
有效柱02:=if( 柱编号=id02 and 柱底价格<右侧低02 and 右侧低02>0 ,1,0),coloryellow,nodraw;
柱右低y02:=ref(右侧低02*(1+误差值), 周期数02-currbarscount),colorwhite,nodraw;
柱基价x02:=ref( 柱底价格 , 周期数02-currbarscount),coloryellow,nodraw;
ht_z_if02:=if(有效柱02=1 and 柱基价x02<柱右低y02,1,0);
stickline( ht_z_if02 ,ref(柱底价格,周期数02-currbarscount) ,ref(柱底价格,周期数02-currbarscount) ,5,0),colorgreen;
id03:=3;
ht_z_io03:=if(柱编号=id03,currbarscount,0),colorwhite,nodraw;
ht_z_no03:=hhv(ht_z_io03,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价03:if(islastbar,llv(min(o,c),ht_z_no03),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数03:=hhv(ht_z_io03,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低03:=if(refx(llv(min(o,c),周期数03-1),周期数03-1)>0,refx(llv(min(o,c),周期数03-1),周期数03-1),0),colorwhite,nodraw;
有效柱03:=if( 柱编号=id03 and 柱底价格<右侧低03 and 右侧低03>0 ,1,0),coloryellow,nodraw;
柱右低y03:=ref(右侧低03*(1+误差值), 周期数03-currbarscount),colorwhite,nodraw;
柱基价x03:=ref( 柱底价格 , 周期数03-currbarscount),coloryellow,nodraw;
ht_z_if03:=if(有效柱03=1 and 柱基价x03<柱右低y03,1,0);
stickline( ht_z_if03 ,ref(柱底价格,周期数03-currbarscount) ,ref(柱底价格,周期数03-currbarscount) ,5,0),colorgreen;
id04:=4;
ht_z_io04:=if(柱编号=id04,currbarscount,0),colorwhite,nodraw;
ht_z_no04:=hhv(ht_z_io04,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价04:if(islastbar,llv(min(o,c),ht_z_no04),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数04:=hhv(ht_z_io04,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低04:=if(refx(llv(min(o,c),周期数04-1),周期数04-1)>0,refx(llv(min(o,c),周期数04-1),周期数04-1),0),colorwhite,nodraw;
有效柱04:=if( 柱编号=id04 and 柱底价格<右侧低04 and 右侧低04>0 ,1,0),coloryellow,nodraw;
柱右低y04:=ref(右侧低04*(1+误差值), 周期数04-currbarscount),colorwhite,nodraw;
柱基价x04:=ref( 柱底价格 , 周期数04-currbarscount),coloryellow,nodraw;
ht_z_if04:=if(有效柱04=1 and 柱基价x04<柱右低y04,1,0);
stickline( ht_z_if04 ,ref(柱底价格,周期数04-currbarscount) ,ref(柱底价格,周期数04-currbarscount) ,5,0),colorgreen;
id05:=5;{}
ht_z_io05:=if(柱编号=id05,currbarscount,0),colorwhite,nodraw;
ht_z_no05:=hhv(ht_z_io05,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价05:if(islastbar,llv(min(o,c),ht_z_no05),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数05:=hhv(ht_z_io05,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低05:=if(refx(llv(min(o,c),周期数05-1),周期数05-1)>0,refx(llv(min(o,c),周期数05-1),周期数05-1),0),colorwhite,nodraw;
有效柱05:=if( 柱编号=id05 and 柱底价格<右侧低05 and 右侧低05>0 ,1,0),coloryellow,nodraw;
柱右低y05:=ref(右侧低05*(1+误差值), 周期数05-currbarscount),colorwhite,nodraw;
柱基价x05:=ref( 柱底价格 , 周期数05-currbarscount),coloryellow,nodraw;
ht_z_if05:=if(有效柱05=1 and 柱基价x05<柱右低y05,1,0);
stickline( ht_z_if05 ,ref(柱底价格,周期数05-currbarscount) ,ref(柱底价格,周期数05-currbarscount) ,5,0),colorgreen;
id06:=6;
ht_z_io06:=if(柱编号=id06,currbarscount,0),colorwhite,nodraw;
ht_z_no06:=hhv(ht_z_io06,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价06:if(islastbar,llv(min(o,c),ht_z_no06),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数06:=hhv(ht_z_io06,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低06:=if(refx(llv(min(o,c),周期数06-1),周期数06-1)>0,refx(llv(min(o,c),周期数06-1),周期数06-1),0),colorwhite,nodraw;
有效柱06:=if( 柱编号=id06 and 柱底价格<右侧低06 and 右侧低06>0 ,1,0),coloryellow,nodraw;
柱右低y06:=ref(右侧低06*(1+误差值), 周期数06-currbarscount),colorwhite,nodraw;
柱基价x06:=ref( 柱底价格 , 周期数06-currbarscount),coloryellow,nodraw;
ht_z_if06:=if(有效柱06=1 and 柱基价x06<柱右低y06,1,0);
stickline( ht_z_if06 ,ref(柱底价格,周期数06-currbarscount) ,ref(柱底价格,周期数06-currbarscount) ,5,0),colorgreen;
id07:=7;
ht_z_io07:=if(柱编号=id07,currbarscount,0),colorwhite,nodraw;
ht_z_no07:=hhv(ht_z_io07,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价07:if(islastbar,llv(min(o,c),ht_z_no07),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数07:=hhv(ht_z_io07,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低07:=if(refx(llv(min(o,c),周期数07-1),周期数07-1)>0,refx(llv(min(o,c),周期数07-1),周期数07-1),0),colorwhite,nodraw;
有效柱07:=if( 柱编号=id07 and 柱底价格<右侧低07 and 右侧低07>0 ,1,0),coloryellow,nodraw;
柱右低y07:=ref(右侧低07*(1+误差值), 周期数07-currbarscount),colorwhite,nodraw;
柱基价x07:=ref( 柱底价格 , 周期数07-currbarscount),coloryellow,nodraw;
ht_z_if07:=if(有效柱07=1 and 柱基价x07<柱右低y07,1,0);
stickline( ht_z_if07 ,ref(柱底价格,周期数07-currbarscount) ,ref(柱底价格,周期数07-currbarscount) ,5,0),colorgreen;
id08:=8;
ht_z_io08:=if(柱编号=id08,currbarscount,0),colorwhite,nodraw;
ht_z_no08:=hhv(ht_z_io08,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价08:if(islastbar,llv(min(o,c),ht_z_no08),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数08:=hhv(ht_z_io08,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低08:=if(refx(llv(min(o,c),周期数08-1),周期数08-1)>0,refx(llv(min(o,c),周期数08-1),周期数08-1),0),colorwhite,nodraw;
有效柱08:=if( 柱编号=id08 and 柱底价格<右侧低08 and 右侧低08>0 ,1,0),coloryellow,nodraw;
柱右低y08:=ref(右侧低08*(1+误差值), 周期数08-currbarscount),colorwhite,nodraw;
柱基价x08:=ref( 柱底价格 , 周期数08-currbarscount),coloryellow,nodraw;
ht_z_if08:=if(有效柱08=1 and 柱基价x08<柱右低y08,1,0);
stickline( ht_z_if08 ,ref(柱底价格,周期数08-currbarscount) ,ref(柱底价格,周期数08-currbarscount) ,5,0),colorgreen;
id09:=9;
ht_z_io09:=if(柱编号=id09,currbarscount,0),colorwhite,nodraw;
ht_z_no09:=hhv(ht_z_io09,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价09:if(islastbar,llv(min(o,c),ht_z_no09),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数09:=hhv(ht_z_io09,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低09:=if(refx(llv(min(o,c),周期数09-1),周期数09-1)>0,refx(llv(min(o,c),周期数09-1),周期数09-1),0),colorwhite,nodraw;
有效柱09:=if( 柱编号=id09 and 柱底价格<右侧低09 and 右侧低09>0 ,1,0),coloryellow,nodraw;
柱右低y09:=ref(右侧低09*(1+误差值), 周期数09-currbarscount),colorwhite,nodraw;
柱基价x09:=ref( 柱底价格 , 周期数09-currbarscount),coloryellow,nodraw;
ht_z_if09:=if(有效柱09=1 and 柱基价x09<柱右低y09,1,0);
stickline( ht_z_if09 ,ref(柱底价格,周期数09-currbarscount) ,ref(柱底价格,周期数09-currbarscount) ,5,0),colorgreen;
id10:=10;
ht_z_io10:=if(柱编号=id10,currbarscount,0),colorwhite,nodraw;
ht_z_no10:=hhv(ht_z_io10,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价10:if(islastbar,llv(min(o,c),ht_z_no10),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数10:=hhv(ht_z_io10,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低10:=if(refx(llv(min(o,c),周期数10-1),周期数10-1)>0,refx(llv(min(o,c),周期数10-1),周期数10-1),0),colorwhite,nodraw;
有效柱10:=if( 柱编号=id10 and 柱底价格<右侧低10 and 右侧低10>0 ,1,0),coloryellow,nodraw;
柱右低y10:=ref(右侧低10*(1+误差值), 周期数10-currbarscount),colorwhite,nodraw;
柱基价x10:=ref( 柱底价格 , 周期数10-currbarscount),coloryellow,nodraw;
ht_z_if10:=if(有效柱10=1 and 柱基价x10<柱右低y10,1,0);
stickline( ht_z_if10 ,ref(柱底价格,周期数10-currbarscount) ,ref(柱底价格,周期数10-currbarscount) ,5,0),colorgreen;
id11:=11;
ht_z_io11:=if(柱编号=id11,currbarscount,0),colorwhite,nodraw;
ht_z_no11:=hhv(ht_z_io11,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价11:if(islastbar,llv(min(o,c),ht_z_no11),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数11:=hhv(ht_z_io11,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低11:=if(refx(llv(min(o,c),周期数11-1),周期数11-1)>0,refx(llv(min(o,c),周期数11-1),周期数11-1),0),colorwhite,nodraw;
有效柱11:=if( 柱编号=id11 and 柱底价格<右侧低11 and 右侧低11>0 ,1,0),coloryellow,nodraw;
柱右低y11:=ref(右侧低11*(1+误差值), 周期数11-currbarscount),colorwhite,nodraw;
柱基价x11:=ref( 柱底价格 , 周期数11-currbarscount),coloryellow,nodraw;
ht_z_if11:=if(有效柱11=1 and 柱基价x11<柱右低y11,1,0);
stickline( ht_z_if11 ,ref(柱底价格,周期数11-currbarscount) ,ref(柱底价格,周期数11-currbarscount) ,5,0),colorgreen;
id12:=12;
ht_z_io12:=if(柱编号=id12,currbarscount,0),colorwhite,nodraw;
ht_z_no12:=hhv(ht_z_io12,barscount(c)),coloryellow,nodraw;{取该柱位置周期数};
{柱基价12:if(islastbar,llv(min(o,c),ht_z_no12),0),colorwhite,nodraw};{最后1天,取该柱核准基价};
周期数12:=hhv(ht_z_io12,barscount(c)),coloryellow,nodraw;{柱-右侧固定柱周期数}
右侧低12:=if(refx(llv(min(o,c),周期数12-1),周期数12-1)>0,refx(llv(min(o,c),周期数12-1),周期数12-1),0),colorwhite,nodraw;
有效柱12:=if( 柱编号=id12 and 柱底价格<右侧低12 and 右侧低12>0 ,1,0),coloryellow,nodraw;
柱右低y12:=ref(右侧低12*(1+误差值), 周期数12-currbarscount),colorwhite,nodraw;
柱基价x12:=ref( 柱底价格 , 周期数12-currbarscount),coloryellow,nodraw;
ht_z_if12:=if(有效柱12=1 and 柱基价x12<柱右低y12,1,0);
stickline( ht_z_if12 ,ref(柱底价格,周期数12-currbarscount) ,ref(柱底价格,周期数12-currbarscount) ,5,0),colorgreen;
有效柱梯子数:if(dynainfo(4)>0,if(有效柱01=drawnull,0, if(ht_z_if01=drawnull,0,ht_z_if01))+
if(有效柱02=drawnull,0, if(ht_z_if02=drawnull,0,ht_z_if02))+
if(有效柱03=drawnull,0, if(ht_z_if03=drawnull,0,ht_z_if03))+
if(有效柱04=drawnull,0, if(ht_z_if04=drawnull,0,ht_z_if04))+
if(有效柱05=drawnull,0, if(ht_z_if05=drawnull,0,ht_z_if05))+
if(有效柱06=drawnull,0, if(ht_z_if06=drawnull,0,ht_z_if06))+
if(有效柱07=drawnull,0, if(ht_z_if07=drawnull,0,ht_z_if07))+
if(有效柱08=drawnull,0, if(ht_z_if08=drawnull,0,ht_z_if08))+
if(有效柱09=drawnull,0, if(ht_z_if09=drawnull,0,ht_z_if09))+
if(有效柱10=drawnull,0, if(ht_z_if10=drawnull,0,ht_z_if10))+
if(有效柱11=drawnull,0, if(ht_z_if11=drawnull,0,ht_z_if11))+
if(有效柱12=drawnull,0, if(ht_z_if12=drawnull,0,ht_z_if12)),0),coloryellow,nodraw;
stickline(c/ref(c,1)>=1.04 or c/ref(c,1)<=0.96,(c+o)/2,(c+o)/2,2,1),colorliblue;{中分线};
stickline(c/ref(c,1)>=1.04 or c/ref(c,1)<=0.96,(max(o,c)-min(o,c))*2/3+min(o,c),(max(o,c)-min(o,c))*2/3+min(o,c),2,1),colorliblue;{上三一线};
stickline(c/ref(c,1)>=1.04 or c/ref(c,1)<=0.96,(max(o,c)-min(o,c))/3+min(o,c),(max(o,c)-min(o,c))/3+min(o,c),2,1),colorliblue;{下三一线};
上一指标公式:薛斯抄底介入 通达信抄底
下一指标公式:老喻中线 通达信中线
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文四维看盘 荆州量学金融终端主图四 通达信看盘终端仅供学习研究。