突破左峰优化版主图 幅图 选股通达信指标公式源码
突破趋势线指标主图源码通达信指标公式源码
源码:{连结MACD相邻红绿柱区间内高低点画趋势线通达信}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);N1:=BARSLAST(CROSS(DIFF,DEA))+1;{最近一次满足条件DIFF上穿DEA的K线到当前的距离}N2:=BARSLAST(CROSS(DEA,DIFF))+1;{最近一次满足条件DIFF下穿DEA的K线到当前的距离}{当前是DIFF>DEA的状态,连结最近两个DIFF>DEA区间(不包含当前区间)内最高点的趋势线}A1:=BACKSET(ISLASTBAR &&N1<N2,REF(REF(HHVBARS(H,N1)+1,N2),N2)+REF(N2,N2)+N2);B1:=BACKSET(ISLASTBAR && N1<N2,REF(HHVBARS(H,N1),N2)+N2+1); DRAWLINE(CROSS(A1,0.5),H,CROSS(B1,0.5),H,1),COLORRED;{当前是DIFF>DEA的状态,连结最近两个DIFF<DEA区间内最低点的趋势线}A2:=BACKSET(ISLASTBAR &&N1<N2,REF(REF(LLVBARS(L,N2)+1,N1),N2)+REF(N1,N2)+N2);B2:=BACKSET(ISLASTBAR && N1<N2,REF(LLVBARS(L,N2)+1,N1)+N1);DRAWLINE(CROSS(A2,0.5),L,CROSS(B2,0.5),L,1),COLORGREEN;{当前是DIFF<DEA的状态,连结最近两个DIFF<DEA区间(不包含当前区间)内最低点的趋势线}A3:=BACKSET(ISLASTBAR &&N1>N2,REF(REF(LLVBARS(L,N2)+1,N1),N1)+REF(N1,N1)+N1);B3:=BACKSET(ISLASTBAR && N1>N2,REF(LLVBARS(L,N2),N1)+N1+1);DRAWLINE(CROSS(A3,0.5),L,CROSS(B3,0.5),L,1),COLORGREEN;{当前是DIFF<DEA的状态,连结最近两个DIFF>DEA区间内最高点的趋势线}A4:=BACKSET(ISLASTBAR &&N1>N2,REF(REF(HHVBARS(H,N1)+1,N2),N1)+REF(N2,N1)+N1);B4:=BACKSET(ISLASTBAR && N1>N2,REF(HHVBARS(H,N1)+1,N2)+N2); DRAWLINE(CROSS(A4,0.5),H,CROSS(B4,0.5),H,1),COLORRED;。
主力控盘优化版通达信指标公式源码
主力控盘优化版通达信指标公式源码按照技术分析思路编写,适合大部分股票{主力控盘优化版,简称主力PK}1、量能筛选:MA1:=MA(VOL,10);MA2:=MA(VOL,20);MA3:=MA(VOL,30);买入:IF(MA3>MA2ANDMA2>MA1ANDC>REF(C,1),1,0);2、短线快速平反LC2:=REF(C,2);LC3:=REF(C,3);LC4:=REF(C,4);LC5:=REF(C,5);LC1:=REF(C,1);PandF:IF(LC2<LC3 AND LC3<LC4 AND LC4<LC5 AND C>LC1,1,0);3、布林带突破MID:=MA(C,5);UPER:MID*1.025;LOWER:MID*0.975;XG:IF(C>UPER,1,IF(C<LOWER,-1,0));4、趋势支撑突破MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);QS:IF(MA5<MA10ANDMA10<MA20ANDMA20<MA30ANDC>MA20,1,0);5、量价配合VAR1:=EMA(VOL,3);VAR2:=EMA(VOL,6);VAR3:=EMA(VOL,12);VAR4:=EMA(VOL,24);LV:IF(VAR1>VAR2ANDVAR2>VAR3ANDVAR3>VAR4,1,0);{主力PK}买入:IF(买入AND短线快速平反AND布林带突破AND趋势支撑突破AND量价配合,1,0);提示:本公式通过将量能筛选、短线快速平反、布林带突破、趋势支撑突破、量价配合五个技术指标结合在一起,形成了主力PK操纵股价的有效技术支撑条件。
此外,本指标也可用于抓住上涨和下跌趋势的突破点,使用者可根据自身投资风格和行情变化调整买入和卖出的判断条件,从而更好地发挥主力PK技术指标的操纵股价能力。
通达信指标公式源码缠论主神优化主图指标
NAA:=10;{源码120.调整时间长短。
最底10、21;}TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-L OW));ATR:=EMA(TA,5);{筹码峰高度调整线,源码181。
参数最低21.如果抓大牛把参数加大。
}VAR81:=REF(CLOSE,NAA)-REF(ATR,1);仙界线:=HHV(VAR81,5),COLORYELLOW;{筹码峰高度调整线,最低21.源码181}上:=(1+1/100)*仙界线;下:=(1-1/100)*仙界线;{上:=(1+7/100)*仙界线;下:=(1-7/100)*仙界线;中:=(上+下)/2;}XGD:DRAWBAND(上,RGB(258,88,0),下,RGB(258,88,0));{颜色亮度};{箱体}TC1S:=IF(H=HHV(H,48),H,DRAWNULL);TC2S:=CONST(BARSLAST(TC1S=H))+1;UPPERS:=CONST(IF(TC2S=1,H,REF(H,TC2S-1)));BC1S:=IF(L=LLV(L,48),L,DRAWNULL);BC2S:=CONST(BARSLAST(BC1S=L))+1;LOWERS:=CONST(IF(BC2S=1,L,REF(L,BC2S-1)));LPS:=CURRBARSCOUNT<=BC2S AND L=LOWERS;HPS:=CURRBARSCOUNT<=TC2S AND H=UPPERS;AB1S:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);BA1S:=EMA(AB1S,5);上轨:=REFDATE(REF(HHV(MAX(C,O),96),5),DATE);下轨:=REFDATE(REF(LLV(MIN(C,O),96),5),DATE);中轨:=((上轨)+(下轨))/2;YXHX:=DATE>=REF(DATE,BARSLAST(IF(BC2S>TC2S,LPS,HPS)));上沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,上轨,上轨),COLOR555555,LINETHICK2;中枢:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,中轨,中轨),COLOR555555,LINETHICK2;下沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,下轨,下轨),COLOR555555,LINETHICK2;{三K线}三K线:=IF(三K线,1,DRAWNULL);DG:=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));GD:=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));AA11:=(DG+GD)/2;A11:=AA11>REFX(L,3) AND REFX(L,2)< AA11 AND REFX(L,1) <AA11 ;A21:=FILTER(A11,BARSLAST(A11)+2);A41:=A11 AND A21;A51:=IF(REF(A41,1),H,0),NODRAW;STICKLINE(三K线=1 &&REF(A41,2),REF(GD,2),REF(DG,2),13,-1),COLORMAGENTA; DRAWKLINE(H,O,L,C);{峰谷}峰谷:=IF(峰谷,1,DRAWNULL);PA:=10;PB:=REF(HIGH,PA)=HHV(HIGH,2*PA+1);PC:=FILTER(PB,PA);PD:=BACKSET(PC,PA+1);PE:=FILTER(PD,PA);{高点}峰线:(REF(HIGH,BARSLAST(PE)))*峰谷,COLORRED,POINTDOT,LINETHICK2; AA21:=REF(LOW,PA)=LLV(LOW,2*PA+1);BB21:=FILTER(AA21,PA);CC21:=BACKSET(BB21,PA+1);DD21:=FILTER(CC21,PA);{低点}谷线:(REF(LOW,BARSLAST(DD21)))*峰谷,COLORGREEN,POINTDOT,LINETHICK2;{三角形中枢}时间:=4;A:=H=HHV(H,时间*5) AND HHV(H,时间*5)>REF(HHV(H,时间*5),1);B:=L=LLV(L,时间*5) AND LLV(L,时间*5)<REF(LLV(L,时间*5),1);CCA:DRAWLINE(A,H,B,L,0),COLORGREEN,LINETHICK2;CCB:DRAWLINE(B,L,A,H,0),COLORRED,LINETHICK2;N:=(0,1,1);{缠论高低点}局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;C1:DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORMAGENTA;C2:DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORWHITE;DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),LINETHICK2,COLORRED;{均线}{MA1:EMA(C,M1),LINETHICK2,COLORWHITE;MA2:EMA(C,M2),LINETHICK2,COLORYELLOW;MA3:EMA(C,M3),LINETHICK2,COLORRED;}MC:=100;NN:=0.4;MIDZ:MA(CLOSE,MC),COLORWHITE,LINETHICK3;AN:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);A1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;A15D:IF(K2!=2, AN-(A1-AN*0.977),DRAWNULL),COLORBLUE,LINETHICK3; M5:=MA(C,3),COLORRED,LINETHICK3;{11、变色下插线}B55:=ATAN((A15D/REF(A15D,1)-1)*100)*180/3.1416;IF(55>30 AND A15D>REF(A15D,1),A15D,DRAWNULL),COLORCYAN,LINETHICK3;B100:=ATAN((M5/REF(M5,1)-1)*100)*180/3.1416;IF(B55<0 AND A15D<REF(A15D,1),A15D,DRAWNULL),COLORRED,LINETHICK3;{12、黄色起飞跑道};{13、飓风眼启爆,K线下方蓝色柱,股价启动信号,无函数}AHC1:=CLOSE*VOL;AHC2:=EMA((EXPMA(AHC1,2)/EXPMA(VOL,2)+EXPMA(AHC1,5)/EXPMA(VOL,5 )+EXPMA(AHC1,10)/EXPMA(VOL,10)+EXPMA(AHC1,20)/EXPMA(VOL,20))/4,10),COLOR YELLOW;风向R:=1.06*AHC2,LINETHICK2,COLORWHITE;吹:=1.13*AHC2,LINETHICK2,COLORWHITE;ZT:=REF(C,1)*1.1-C<0.01 AND H=C;飓风:=CROSS(C,风向R) AND ZT;STICKLINE(飓风,L*0.98,L*0.80,2,0),COLORBLUE;OUT1:=CROSS(M5,A15D);DRAWICON(OUT1,L*1.02,13);{红球};。
好主图的副图指标通达信指标公式源码.doc
好主图的副图指标布林轨:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORRED,LINETHICK2;倍量攻击:=V>REF(V,1)*2 AND (C>=0 OR C>REF(C Z1)),COLORRED,NODRAW;角线:=(ATAN((MA(C Z5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);角线MA:=MA(角线,5);ANA:=PLOYLINE(CROSS(角线,角线MA),角线MA),COLORRED;ANB:=PLOYLINE(CROSS(角线MA,角线),角线MA)Z COLORFFOOFF ;角买点:=CROSS(角线,角线MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角线MA<=0) OR((角线MA<=-45 OR CROSS(角线MA,・45)) AND (ANB<-60 OR LLV(“KDJ.J“,3)v=・49) ANDANB>0)),COLORGREEN;角买入:IF(角买点,1,0),COLORRED,LINETHICK2;角起涨:=COUNT(CROSS(角线,角线MA),ANAvREF(ANA,5) AND ANB>REF(ANB,5));起涨点:IF(角起涨,1,0),COLORLIRED,LINETHICK2;角卖点:=(CROSS(角线MA,角线)AND (ANB>REF(ANB,1) OR ANA<REF(ANA,1)) AND ANB>ANA{AND ANB>0} AND 角线MA>0)*l;角卖出:IF(角卖点z l,0),COLORGREEN,LINETHICK2;角始跌:=COUNT(CROSS(角线MA,角线),ANAvREF(ANA,5) AND ANB>REF(ANB,5));起跌点:IF(角始跌,1,0),COLORLIBLUE,LINETHICK2;。
通达信指标公式源码缠论主神优化主图指标
NAA:=10;{源码120.调整时间长短。
最底10、21;}TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-L OW));ATR:=EMA(TA,5);{筹码峰高度调整线,源码181。
参数最低21.如果抓大牛把参数加大。
}VAR81:=REF(CLOSE,NAA)-REF(ATR,1);仙界线:=HHV(VAR81,5),COLORYELLOW;{筹码峰高度调整线,最低21.源码181}上:=(1+1/100)*仙界线;下:=(1-1/100)*仙界线;{上:=(1+7/100)*仙界线;下:=(1-7/100)*仙界线;中:=(上+下)/2;}XGD:DRAWBAND(上,RGB(258,88,0),下,RGB(258,88,0));{颜色亮度};{箱体}TC1S:=IF(H=HHV(H,48),H,DRAWNULL);TC2S:=CONST(BARSLAST(TC1S=H))+1;UPPERS:=CONST(IF(TC2S=1,H,REF(H,TC2S-1)));BC1S:=IF(L=LLV(L,48),L,DRAWNULL);BC2S:=CONST(BARSLAST(BC1S=L))+1;LOWERS:=CONST(IF(BC2S=1,L,REF(L,BC2S-1)));LPS:=CURRBARSCOUNT<=BC2S AND L=LOWERS;HPS:=CURRBARSCOUNT<=TC2S AND H=UPPERS;AB1S:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);BA1S:=EMA(AB1S,5);上轨:=REFDATE(REF(HHV(MAX(C,O),96),5),DATE);下轨:=REFDATE(REF(LLV(MIN(C,O),96),5),DATE);中轨:=((上轨)+(下轨))/2;YXHX:=DATE>=REF(DATE,BARSLAST(IF(BC2S>TC2S,LPS,HPS)));上沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,上轨,上轨),COLOR555555,LINETHICK2;中枢:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,中轨,中轨),COLOR555555,LINETHICK2;下沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,下轨,下轨),COLOR555555,LINETHICK2;{三K线}三K线:=IF(三K线,1,DRAWNULL);DG:=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));GD:=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));AA11:=(DG+GD)/2;A11:=AA11>REFX(L,3) AND REFX(L,2)< AA11 AND REFX(L,1) <AA11 ;A21:=FILTER(A11,BARSLAST(A11)+2);A41:=A11 AND A21;A51:=IF(REF(A41,1),H,0),NODRAW;STICKLINE(三K线=1 &&REF(A41,2),REF(GD,2),REF(DG,2),13,-1),COLORMAGENTA; DRAWKLINE(H,O,L,C);{峰谷}峰谷:=IF(峰谷,1,DRAWNULL);PA:=10;PB:=REF(HIGH,PA)=HHV(HIGH,2*PA+1);PC:=FILTER(PB,PA);PD:=BACKSET(PC,PA+1);PE:=FILTER(PD,PA);{高点}峰线:(REF(HIGH,BARSLAST(PE)))*峰谷,COLORRED,POINTDOT,LINETHICK2; AA21:=REF(LOW,PA)=LLV(LOW,2*PA+1);BB21:=FILTER(AA21,PA);CC21:=BACKSET(BB21,PA+1);DD21:=FILTER(CC21,PA);{低点}谷线:(REF(LOW,BARSLAST(DD21)))*峰谷,COLORGREEN,POINTDOT,LINETHICK2;{三角形中枢}时间:=4;A:=H=HHV(H,时间*5) AND HHV(H,时间*5)>REF(HHV(H,时间*5),1);B:=L=LLV(L,时间*5) AND LLV(L,时间*5)<REF(LLV(L,时间*5),1);CCA:DRAWLINE(A,H,B,L,0),COLORGREEN,LINETHICK2;CCB:DRAWLINE(B,L,A,H,0),COLORRED,LINETHICK2;N:=(0,1,1);{缠论高低点}局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;C1:DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORMAGENTA;C2:DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORWHITE;DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),LINETHICK2,COLORRED;{均线}{MA1:EMA(C,M1),LINETHICK2,COLORWHITE;MA2:EMA(C,M2),LINETHICK2,COLORYELLOW;MA3:EMA(C,M3),LINETHICK2,COLORRED;}MC:=100;NN:=0.4;MIDZ:MA(CLOSE,MC),COLORWHITE,LINETHICK3;AN:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);A1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;A15D:IF(K2!=2, AN-(A1-AN*0.977),DRAWNULL),COLORBLUE,LINETHICK3; M5:=MA(C,3),COLORRED,LINETHICK3;{11、变色下插线}B55:=ATAN((A15D/REF(A15D,1)-1)*100)*180/3.1416;IF(55>30 AND A15D>REF(A15D,1),A15D,DRAWNULL),COLORCYAN,LINETHICK3;B100:=ATAN((M5/REF(M5,1)-1)*100)*180/3.1416;IF(B55<0 AND A15D<REF(A15D,1),A15D,DRAWNULL),COLORRED,LINETHICK3;{12、黄色起飞跑道};{13、飓风眼启爆,K线下方蓝色柱,股价启动信号,无函数}AHC1:=CLOSE*VOL;AHC2:=EMA((EXPMA(AHC1,2)/EXPMA(VOL,2)+EXPMA(AHC1,5)/EXPMA(VOL,5 )+EXPMA(AHC1,10)/EXPMA(VOL,10)+EXPMA(AHC1,20)/EXPMA(VOL,20))/4,10),COLOR YELLOW;风向R:=1.06*AHC2,LINETHICK2,COLORWHITE;吹:=1.13*AHC2,LINETHICK2,COLORWHITE;ZT:=REF(C,1)*1.1-C<0.01 AND H=C;飓风:=CROSS(C,风向R) AND ZT;STICKLINE(飓风,L*0.98,L*0.80,2,0),COLORBLUE;OUT1:=CROSS(M5,A15D);DRAWICON(OUT1,L*1.02,13);{红球};。
回调突破主图指标源码通达信指标公式源码
回调突破主图指标源码通达信指标公式源码B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);停损下限:IF(LLV(MA(B2,8),3)<b2,llv(ma(b2,8),3),b2);< p=""> IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;IF(B2<sma2,b2,drawnull),colorgreen,linethick4;< p="">SNAKEA:HHV(MA(B2,1),13),COLORYELLOW;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR2A:=MA(VAR1A,7);VAR3A:=VAR2A-MA(VAR1A,7/2)<0;VAR4A:=VAR2A-MA(VAR1A,7/2)>0;VAR5A:=BARSLAST(VAR3A);VAR6A:=0-BARSLAST(VAR4A);VAR7A:=IF(VAR3A<=0,VAR5A,VAR6A);STICKLINE(SNAKEA>B2 AND B2>SMA2,SNAKEA,B2,0,0),COLORBLUE;STICKLINE(SNAKEA>SMA2 AND B2VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34);VAR31A:=EMA(VAR21A,5);{STICKLINE((C>=O),OPEN,LOW,0,0),COLOR0726CA;STICKLINE((C>=O),CLOSE,HIGH,0,0),COLOR0726CA;STICKLINE((C<o),close,low,0,0),colorde9100;< p="">STICKLINE((C<o),open,high,0,0),colorde9100;< p="">STICKLINE((C<o),close,open,2.5,0),colorffcc00;< p="">STICKLINE((C<o),close,open,1.5,0),colorffff00;< p="">STICKLINE((C>O),CLOSE,OPEN,2,0),COLOR0754E9;STICKLINE((C>O),CLOSE,OPEN,1.5,0),COLOR076EF3;STICKLINE((C>O),CLOSE,OPEN,1,0),COLOR077BF3;}VAR2:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR3:=((REF(VAR2,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR4:=((REF(VAR3,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR5:=((REF(VAR4,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR6:=((REF(VAR5,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR7:=((REF(VAR6,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR8:=((REF(VAR7,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR9:=((REF(VAR8,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARA:=((REF(VAR9,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARB:=((REF(VARA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARC:=((REF(VARB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARD:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARE:=((CLOSE < REF(CLOSE,1)) AND(CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR10:=((REF(VARF,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR11:=((REF(VAR10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR14:=((REF(VAR13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR1B:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2); {STICKLINE(VAR1B,O,O+(C-O)/3,3,0),COLOR10D0FF;}STICKLINE(VAR1B,O,O+(C-O)/3,2,0),COLOR10FFFF;STICKLINE(VAR1B,O,O+(C-O)/3,1,0),COLOR00FFFF;AA:=(REF((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) ORVARC) OR VARD),1) AND VARE);{STICKLINE(AA,O,O+(C-O)/3,3,0),COLOR00DD00;}STICKLINE(AA,O,O+(C-O)/3,2,0),COLOR00EE00;STICKLINE(AA,O,O+(C-O)/3,1,0),COLOR00FF00;A13:=EMA(CLOSE,55);A14:=MA(CLOSE,75);A15:=EMA(A14,3);A16:=EMA(A15,3);A17:=(HIGH + LOW) / 5;A18:=(MA(A17,4)) - (MA(A17,34));A19:=CROSS(A18,0);A20:=CROSS(0,A18);A21:=BARSLAST(A19);A22:=BARSLAST(A20);A23:=REF(A19,1);A24:=REF(A20,1);A25:=BARSLAST(A23);A26:=BARSLAST(A24);A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22); A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21); A30:=A28 AND ((COUNT(A28,A21)) = 1);A31:=A29 AND ((COUNT(A29,A22)) = 1);A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));DRAWTEXT(A32,SMA2*0.99,'←═≒∝'),COLORYELLOW;AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC := MA(CLOSE,22);UPPERC:= MIDC + 2*STD(C,22);LOWERC:= MIDC - 2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);BBC:=FORCAST(BBA,3);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));{//STICKLINE(LIFENGCYC,BBC,0.5,6,0);}{/BBD:(UPPER+LOWER)/2*(C-UPPER);}STICKLINE(LIFENGCYC>0,C,O,2,0),COLOR10ABFF;{STICKLINE(LIFENGCYC>0,C,O,1.5,0),COLOR10D0FF;STICKLINE(LIFENGCYC>0,C,O,1,0),COLOR10FFFF;}DRAWTEXT(LIFENGCYC>0,LOW*0.99,'☆'),COLORDD00DD;TJ:=DYNAINFO(4)>0AND HHV(HIGH,10)/LLV(LOW,10)<1.25AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)AND CLOSE>OPENAND CLOSE>=HHV(HIGH,10);STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW; 放量突破:TJ,NODRAW,COLORRED;DRAWTEXT(TJ,L-0.3,'放量突破'),COLORRED;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));回调突破:=W4 AND COUNT(W4,5)=1;DRAWTEXT(回调突破>0,MA(L,3),'*回调突破'),COLORYELLOW; 敢死队操作线:MA(C,24),LINETHICK2,COLORLIMAGENTA;</o),close,open,1.5,0),colorffff00;<></o),close,open,2.5,0),colorffcc00;<></o),open,high,0,0),colorde9100;<></o),close,low,0,0),colorde9100;<></sma2,b2,drawnull),colorgreen,linethick4;<></b2,llv(ma(b2,8),3),b2);<>。
通达信突破锅顶回踩主图及选股指标公式
通达信突破锅顶回踩主图及选股指标公式LT:=LLVBARS(L,60);LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);HT:=FINDHIGHBARS(H,LT+1,60,1);EXT1:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLAS TBAR,REF(H,HT),0),COLORYELLOW,LINETHICK2;TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);T:=BARSLAST(CROSS(C,REF(H,TT)));GL:=C/REF(H,TT);TA:=BARSLAST(GL=HHV(GL,T+1));DF:=(C-REF(C,TA+1))/REF(C,TA+1)*100;JL:=L/REF(H,TT);XG:=DF<-8 AND JL<1.075 AND MIN(C,O)*1.005>=REF(H,TT);XGT:=BARSLAST(COUNT(XG,T+1)=1 AND XG);QF:=BACKSET(XGT=0,TA+1);QFT:=BARSLAST(CROSS(QF=1,0.5));XZF:=REFX(DF,BARSNEXT(XGT=0));DRAWICON(CROSS(XGT=0,0.5),L*0.95,1);DRAWLINE(T=0,REF(H,TT),QFT=0,REF(H,QFT),0),DOTLINE,C OLORYELLOW;DRAWLINE(QFT=0,REF(H,QFT),XGT=0,REF(H,TT),0),DOTLINE, COLORYELLOW;DRAWTEXT(TT=0,REF(H,TT)*1.05,VARCAT(VARCAT('支撑价:',VAR2STR(REF(H,TT),2)),'元'))COLORYELLOW;DRAWLINE(QFT=0,REF(H,QFT)*1.05,QFT=10,REF(H,QFT)*1.0 5,0),COLORWHITE,LINETHICK3;DRAWTEXT(QFT=0,REF(H,QFT)*1.1,VARCAT(VARCAT('信号处跌幅:',VAR2STR(XZF,2)),'%'))COLORYELLOW;{选股公式:LT:=LLVBARS(L,60);LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);HT:=FINDHIGHBARS(H,LT+1,60,1);TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);T:=BARSLAST(CROSS(C,REF(H,TT)));GL:=C/REF(H,TT);TA:=BARSLAST(GL=HHV(GL,T+1));DF:=(C-REF(C,TA+1))/REF(C,TA+1)*100;JL:=L/REF(H,TT);XG1:=DF<-8 AND JL<1.075 AND MIN(C,O)*1.005>=REF(H,TT);XG:COUNT(XG1,T+1)=1 AND XG1;}。
左峰突破最牛主图公式
左峰突破最牛主图公式一般都有段行情1.250日最低价2.筹码线.线越长在此的筹码越多3.左峰线4.粉色k线表示已突破左峰价位.带加号表示带实际大量突破左峰5.粉色k线不带加号表示已突破左峰价位.但欠量能6.由于动态行情开盘前段时间.量还少.只能用虚拟量.粉色k线顶上出现蓝在珠.表示带虚拟量突破左峰本主图带未来.是用来画左峰线的.是已过去的.不会漂移.放心使用原理解析:DA1赋值:如果130>总的周期数,返回总的周期数,否则返回130DA赋值:如果到最后交易的周期>DA1,返回0,否则返回DA1HI赋值:日期日DA日内最高价的最高值LO赋值:日期日DA日内最低价的最低值C1赋值:如果到最后交易的周期<=DA,返回收盘价,否则返回无效数GZ赋值:HI/LO的自然对数/10的指数LH1赋值:如果C1>=(HI/GZ),返回成交量(手),否则返回0的DA日累和LH2赋值:如果C1>=(HI/GZ的2乘幂)ANDC1<(HI/GZ),返回成交量(手),否则返回0的DA日累和LH3赋值:如果C1>=(HI/GZ的3乘幂)ANDC1<(HI/GZ的2乘幂),返回成交量(手),否则返回0的DA日累和LH4赋值:如果C1>=(HI/GZ的4乘幂)ANDC1<(HI/GZ的3乘幂),返回成交量(手),否则返回0的DA日累和LH5赋值:如果C1>=(HI/GZ的5乘幂)ANDC1<(HI/GZ的4乘幂),返回成交量(手),否则返回0的DA日累和LH6赋值:如果C1>=(HI/GZ的6乘幂)ANDC1<(HI/GZ的5乘幂),返回成交量(手),否则返回0的DA日累和LH7赋值:如果C1>=(HI/GZ的7乘幂)ANDC1<(HI/GZ的6乘幂),返回成交量(手),否则返回0的DA日累和LH8赋值:如果C1>=(HI/GZ的8乘幂)ANDC1<(HI/GZ的7乘幂),返回成交量(手),否则返回0的DA日累和LH9赋值:如果C1>=(LO*GZ)ANDC1<LO*GZ的2乘幂,返回成交量(手),否则返回0的DA日累和LH10赋值:如果C1>=LOANDC1<LO*GZ,返回成交量(手),否则返回0的DA 日累和L1赋值:日期日DA日内LH1的最高值,线宽为0L2赋值:日期日DA日内LH2的最高值,线宽为0L3赋值:日期日DA日内LH3的最高值,线宽为0L4赋值:日期日DA日内LH4的最高值L5赋值:日期日DA日内LH5的最高值L6赋值:日期日DA日内LH6的最高值L7赋值:日期日DA日内LH7的最高值L8赋值:日期日DA日内LH8的最高值L9赋值:日期日DA日内LH9的最高值L10赋值:日期日DA日内LH10的最高值SSS赋值:(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)当满足条件DA*L1/SSS的向上舍入*3>=到最后交易的周期时,在HI*99/100和HI/GZ位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L2/SSS的向上舍入*3>=到最后交易的周期时,在HI/GZ的1乘幂*99/100和HI/GZ的2乘幂位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L3/SSS的向上舍入*3>=到最后交易的周期时,在HI/GZ的2乘幂*99/100和HI/GZ的3乘幂位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L4/SSS的向上舍入*3>=到最后交易的周期时,在HI/GZ的3乘幂*99/100和HI/GZ的4乘幂位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L5/SSS的向上舍入*3>=到最后交易的周期时,在HI/GZ的4乘幂*99/100和HI/GZ的5乘幂位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L6/SSS的向上舍入*3>=到最后交易的周期时,在HI/GZ的5乘幂*99/100和HI/GZ的6乘幂位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L7/SSS的向上舍入*3>=到最后交易的周期时,在HI/GZ的6乘幂*99/100和HI/GZ的7乘幂位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L8/SSS的向上舍入*3>=到最后交易的周期时,在LO*GZ的2乘幂和LO*GZ的3乘幂*99/100位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L9/SSS的向上舍入*3>=到最后交易的周期时,在LO*GZ的1乘幂和LO*GZ的2乘幂*99/100位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3当满足条件DA*L10/SSS的向上舍入*3>=到最后交易的周期时,在LO和LO*GZ的1乘幂*99/100位置之间画柱状线,宽度为9,0不为0则画空心柱.COLOR3C3C3A,线宽为3K线输出MA10:收盘价的10日简单移动平均,画红色,线宽为1输出MA20:收盘价的20日简单移动平均画白色,线宽为1输出MA30:收盘价的30日简单移动平均画黄色,线宽为1输出MA60:收盘价的60日简单移动平均COLORCC3299,线宽为1VAR121赋值:收盘价6%的之字转向<1日前的收盘价6%的之字转向AND 1日前的收盘价6%的之字转向>=2日前的收盘价6%的之字转向AND 2日前的收盘价6%的之字转向>=3日前的收盘价6%的之字转向VAR141赋值:收盘价22%的之字转向<1日前的收盘价22%的之字转向AND 1日前的收盘价22%的之字转向>=2日前的收盘价22%的之字转向AND 2日前的收盘价22%的之字转向>=3日前的收盘价22%的之字转向VAR161赋值:收盘价51%的之字转向<1日前的收盘价51%的之字转向AND 1日前的收盘价51%的之字转向>=2日前的收盘价51%的之字转向AND 2日前的收盘价51%的之字转向>=3日前的收盘价51%的之字转向VAR181赋值:收盘价72%的之字转向<1日前的收盘价72%的之字转向AND 1日前的收盘价72%的之字转向>=2日前的收盘价72%的之字转向AND 2日前的收盘价72%的之字转向>=3日前的收盘价72%的之字转向卖赋值:(VAR121+VAR141+VAR161+VAR181),线宽为2输出SQ:当满足条件卖时,在最高价位置画直线起点,当满足条件上次卖距今天数>=1时,在上次卖距今天数日前的最高价位置画直线终点,1表示是否延长.,画白色,线宽为2过峰赋值:收盘价>SQ AND 1日前的收盘价<SQVVOL赋值:如果到最后交易的周期=1ANDPERIOD=5,返回成交量(手)*240/当前离开盘分钟数,否则返回无效数,NODRAW预量赋值:VVOL/1日前的成交量(手)>1.8现量赋值:成交量(手)/1日前的成交量(手)>1.5输出过峰1:当满足条件过峰时,在收盘价和开盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.COLORFF00FF输出预量1:当满足条件过峰AND预量时,在最高价*1.01位置画14号图标输出现量1:当满足条件过峰AND现量时,在(开盘价+收盘价)/2位置画23号图标输出前次低点:250日内最低价*1的最低值POINTDOT,COLORFF00FF,线宽为4过峰实量选股Q1赋值:成交量(手)/1日前的成交量(手)>1.5VAR121赋值:收盘价6%的之字转向<1日前的收盘价6%的之字转向AND 1的收盘价6%的之字转向>=3日前的收盘价6%的之字转向VAR141赋值:收盘价22%的之字转向<1日前的收盘价22%的之字转向AND 1日前的收盘价22%的之字转向>=2日前的收盘价22%的之字转向AND 2日前的收盘价22%的之字转向>=3日前的收盘价22%的之字转向VAR161赋值:收盘价51%的之字转向<1日前的收盘价51%的之字转向AND 1日前的收盘价51%的之字转向>=2日前的收盘价51%的之字转向AND 2日前的收盘价51%的之字转向>=3日前的收盘价51%的之字转向VAR181赋值:收盘价72%的之字转向<1日前的收盘价72%的之字转向AND 1日前的收盘价72%的之字转向>=2日前的收盘价72%的之字转向AND 2日前的收盘价72%的之字转向>=3日前的收盘价72%的之字转向卖赋值:(VAR121+VAR141+VAR161+VAR181),线宽为2SQ赋值:当满足条件卖时,在最高价位置画直线起点,当满足条件上次卖距今天数>=1时,在上次卖距今天数日前的最高价位置画直线终点,1表示是否延长.A赋值:收盘价>SQ AND 1日前的收盘价<SQ AND 收盘价>0输出XD:Q1 AND AL赋值:如果到最后交易的周期=1ANDPERIOD=5,返回成交量(手)*240/当前离开盘分钟数,否则返回无效数VAR121赋值:收盘价6%的之字转向<1日前的收盘价6%的之字转向AND 1日前的收盘价6%的之字转向>=2日前的收盘价6%的之字转向AND 2日前的收盘价6%的之字转向>=3日前的收盘价6%的之字转向VAR141赋值:收盘价22%的之字转向<1日前的收盘价22%的之字转向AND日前的收盘价22%的之字转向>=3日前的收盘价22%的之字转向VAR161赋值:收盘价51%的之字转向<1日前的收盘价51%的之字转向AND 1日前的收盘价51%的之字转向>=2日前的收盘价51%的之字转向AND 2日前的收盘价51%的之字转向>=3日前的收盘价51%的之字转向VAR181赋值:收盘价72%的之字转向<1日前的收盘价72%的之字转向AND 1日前的收盘价72%的之字转向>=2日前的收盘价72%的之字转向AND 2日前的收盘价72%的之字转向>=3日前的收盘价72%的之字转向卖赋值:(VAR121+VAR141+VAR161+VAR181),线宽为2SQ赋值:当满足条件卖时,在最高价位置画直线起点,当满足条件上次卖距今天数>=1时,在上次卖距今天数日前的最高价位置画直线终点,1表示是否延长.,画白色,线宽为2过峰赋值:收盘价>SQ AND 1日前的收盘价<SQ预量赋值:VVOL/1日前的成交量(手)>1.8输出预量1:过峰AND 预量源码:DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SSS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SSS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ ,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L2/SSS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*9 9/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L3/SSS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*9 9/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L4/SSS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*9 9/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L5/SSS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*9 9/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L6/SSS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*9 9/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L7/SSS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*9 9/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L8/SSS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),L O*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L9/SSS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),L O*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L10/SSS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;DRAWKLINE(H,O,L,C);MA10:MA(C,10),COLORRED ,LINETHICK1;MA20:MA(C,20)COLORWHITE ,LINETHICK1;MA30:MA(C,30)COLORYELLOW,LINETHICK1;MA60:MA(C,60)COLORCC3299,LINETHICK1 ;VAR121:=ZIG(3,6)<REF(ZIG( 3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)),1),COLORW HITE,LINETHICK2;过峰:=C>SQ AND REF(C,1)<SQ;VVOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;预量:=VVOL/REF(V,1)>1.8;现量:=V/REF(V,1)>1.5;过峰1:STICKLINE( 过峰,C,O,5,0)COLORFF00FF;预量1:DRAWICON(过峰AND 预量, H*1.01,14);现量1:DRAWICON(过峰AND 现量,(O+C)/2,23);前次低点:LLV(L*1,250)POINTDOT,COLORFF00FF,LINETHICK4;过峰实量选股Q1:=V/REF(V,1)>1.5;VAR121:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:=DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)),1);A:=C>SQ AND REF(C,1)<SQ AND C>0 ;XD:Q1 AND A ;过峰虚量选股VVOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VAR121:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:=DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)),1),COLOR WHITE,LINETHICK2;过峰:=C>SQ AND REF(C,1)<SQ;预量:=VVOL/REF(V,1)>1.8;预量1:过峰AND 预量;。
通达信龙脉突破选股指标公式源码副图编程思路
通达信龙脉突破选股指标公式源码副图编程思路编程思路:ZT赋值:收盘价/1日前的收盘价>1.0982 AND 收盘价=最高价DT赋值:收盘价/1日前的收盘价<0.913 AND 收盘价=最低价MA5赋值:收盘价的5日简单移动平均MA10赋值:收盘价的10日简单移动平均MA20赋值:收盘价的20日简单移动平均MA30赋值:收盘价的30日简单移动平均G5赋值:(收盘价-MA5)/MA5*100BB5赋值:(MA5/1日前的MA5-1)*100的反正切*180/3.1416EW赋值:(MA5-1日前的MA5)/1日前的MA5的3日指数移动平均*100的3日[1日权重]移动平均GY赋值:(EW-1日前的EW)的3日指数移动平均G3赋值:(收盘价-MA30)/MA30*100BB30赋值:(MA30/1日前的MA30-1)*100的反正切*180/3.1416 TTBV赋值:最高价-成交额(元)/成交量(手)/100的绝对值和成交额(元)/成交量(手)/100-最低价的绝对值的较大值TTYH赋值:(开盘价+收盘价)/2-成交额(元)/成交量(手)/100的绝对值MV赋值:(TTBV+TTYH)/成交额(元)*成交量(手)*100*50龙脉赋值:1日前的30日内收盘价的最高值的2日简单移动平均,画黄色,线宽为2输出A1:条件连续成立次数=1 AND 收盘价>龙脉公式说明:指标的意义在于提示主力的异动。
那么怎么才有利于我们更快更容易把握住主力脉搏呢?我们应该力求指标及时的、准确的、明确的、简洁的、直观的将主力的异动汇报给我们。
及时、准确是指标的生命线,不准确或不及时的信号都会贻误战机,这是指标的内在要求。
但是指标作为一种图形化的信息,达到人的大脑需要经过视觉系统的转化,为了更快捷的进行信息转化,势必要求指标所呈现的图形简明扼要,能让人直观的把握要领,否则,让人看得晕头转向,同样会降低决策效率和反应速度。
通达信突破王主图指标公式
通达信突破王主图指标公式R1:=(C>REF(C,1)AND C>REF(C,2));R2:=(REF(R1,1)AND C<=REF(C,1)AND C>=REF(C,2));R3:=(REF(R2,1)AND C>=REF(C,1)AND C<=REF(C,2));R4:=(REF(R3,1)AND C<=REF(C,1)AND C>=REF(C,2));R5:=(REF(R4,1)AND C>=REF(C,1)AND C<=REF(C,2));R6:=(REF(R5,1)AND C<=REF(C,1)AND C>=REF(C,2));R7:=(REF(R6,1)AND C>=REF(C,1)AND C<=REF(C,2));R8:=(REF(R7,1)AND C<=REF(C,1)AND C>=REF(C,2));R9:=(REF(R8,1)AND C>=REF(C,1)AND C<=REF(C,2));A1:=(REF(R9,1)AND C<=REF(C,1)AND C>=REF(C,2));A2:=(REF(A1,1)AND C>=REF(C,1)AND C<=REF(C,2));A3:=(REF(A2,1)AND C<=REF(C,1)AND C>=REF(C,2));A4:=(C<REF(C,1)AND C<REF(C,2));A5:=(REF(A4,1)AND C>=REF(C,1)AND C<=REF(C,2));A6:=(REF(A5,1)AND C<=REF(C,1)AND C>=REF(C,2));A7:=(REF(A6,1)AND C>=REF(C,1)AND C<=REF(C,2));A8:=(REF(A7,1)AND C<=REF(C,1)AND C>=REF(C,2));A9:=(REF(A8,1)AND C>=REF(C,1)AND C<=REF(C,2));B1:=(REF(A9,1)AND C<=REF(C,1)AND C>=REF(C,2));B2:=(REF(B1,1)AND C>=REF(C,1)AND C<=REF(C,2));B3:=(REF(B2,1)AND C<=REF(C,1)AND C>=REF(C,2));B4:=(REF(B3,1)AND C>=REF(C,1)AND C<=REF(C,2));B5:=(REF(B4,1)AND C<=REF(C,1)AND C>=REF(C,2));B6:=(REF(B5,1)AND C>=REF(C,1)AND C<=REF(C,2));B7:=REF(A4 OR A5 OR A6 OR A7 OR A8 OR A9 OR B1 OR B2 OR B3 OR B4 OR B5 OR B6,1)AND R1;B8:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR A1 OR A2 OR A3,1))AND A4);T1:=HHV(C,4);T2:=REF(C,1);T3:=REF(C,2);T4:=REF(C,3);T5:=LLV(C,4);stICKLINE(C>=OPEN,C,OPEN,3.2,0),COLOR0000AA;STICKLINE(C>=OPEN,C,OPEN,2.2,0),COLOR0000CC;STICKLINE(C>=OPEN,C,OPEN,1.0,0),COLOR0000EE;STICKLINE(C>=OPEN,C,OPEN,0.1,0),COLORAA55FF;STICKLINE(OPEN>=C,C,OPEN,3.2,0),COLOR009900;STICKLINE(OPEN>=C,C,OPEN,1.5,0),COLOR00BB00;STICKLINE(OPEN>=C,C,OPEN,0.6,0),COLOR00DD00;STICKLINE(OPEN>=C,C,OPEN,0.1,0),COLOR00FF00;Q:=C=T5 AND(T2<T3 OR T2<T4)OR T2=T5 AND C<T3 OR T3=T5 AND T2!=T1 AND C<T2 OR T4=T5 AND C<T2 AND C<T3;W:=O+C;STICKLINE(Q,C,W/2,3.1,0),COLOR999999;STICKLINE(Q,C,W/2,2,0),COLORBBBBBB;STICKLINE(Q,C,W/2,1,0),COLORDDDDDD;STICKLINE(Q,C,W/2,0.1,0),COLORFFFFFF;S:=T2=T5 AND C>=T3 OR T3=T5 AND T2<=T4 AND T3<REF(C,4)AND C>=T2;STICKLINE(S,O,W/2,3.1,0),COLOR999900;STICKLINE(S,O,W/2,2,0),COLORBBBB00;STICKLINE(S,O,W/2,1,0),COLORDDDD00;STICKLINE(S,O,W/2,0.1,0),COLORFFFF00;STICKLINE(B7,REF(C,1),REF(C,2),3.2,0),COLOR335555;STICKLINE(B7,REF(C,1),REF(C,2),2.5,0),COLOR338888;STICKLINE(B7,REF(C,1),REF(C,2),1.5,0),COLOR33AAAA;STICKLINE(B7,REF(C,1),REF(C,2),0.8,0),COLOR33CCCC;STICKLINE(B7,REF(C,1),REF(C,2),0.1,0),COLOR33EEEE;STICKLINE(B8,REF(C,1),REF(C,2),3.0,0),COLORAA0000;STICKLINE(B8,REF(C,1),REF(C,2),2.0,0),COLORCC0000;STICKLINE(B8,REF(C,1),REF(C,2),1.1,0),COLORFF4400;STICKLINE(B8,REF(C,1),REF(C,2),0.2,0),COLORFF8800;STICKLINE(B8,REF(C,1),REF(C,2),0.0,0),COLORFFCC00;四:=SUMBARS(vol,CAPITAL/4),NODRAW;二:=SUMBARS(VOL,CAPITAL/2),NODRAW;ZJ:=ma(C,二){中期成本均线};XJ:=MA(C,四){近期成本均线};T:=C>XJ;P:=XJ>ZJ;Z:=ZJ>Q;I:=MAX(O,C);STICKLINE(T AND P AND Z,I,W/2,3.1,0),COLOR880088;STICKLINE(T AND P AND Z,I,W/2,2,0),COLORBB00BB;STICKLINE(T AND P AND Z,I,W/2,1,0),COLORDD00DD;STICKLINE(T AND P AND Z,I,W/2,0.1,0),COLORFF00FF;STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),3,0),COLOR00FFFF;{当日实体幅度的1/2}AA1:=EMA(C,5);AA2:=EMA(C,10);突破:REF(AA2,1),COLORMAGENTA,DOTLINE;AA3:=AA1-突破;AA4:=((AA3)/突破*100);A:=IF(AA4>=0,REF(AA2,BArslAST(crOSS(AA4,0))+1),DRAWN ULL);B:=IF(AA4<0,REF(AA2,BARSLAST(CROSS(0,AA4))+1),DRAW NULL);STICKLINE(A,A,A,4,-1)COLORMAGENTA;STICKLINE(B,B,B,4,-1)COLORGREEN;STICKLINE(AA4>=0,A,突破,0,-1)COLORMAGENTA;STICKLINE(AA4<0,B,突破,0,-1)COLORGREEN;持币:=IF(AA4<0,突破,DRAWNULL)COLORFFCC00,DOTLINE;DRAWTEXT(ISLASTBAR AND A,A-0.1,'出击'),COLORMAGENTA;DRAWTEXT(ISLASTBAR AND B,B+0.15,'休假'),COLORGREEN;顶:HHV(H,60),COLORFF00FF,DOTLINE;底:LLV(L,60),COLORWHITE,DOTLINE;MA5:MA(C,5)COLORWHITE;MA18:MA(C,18)COLOR0080FF;MA21:MA(C,21)COLORYELLOW;MA35:MA(C,35)COLOR00FF00;MA60:MA(C,35)COLORRED;盈损线:MA(MA5,1),LINETHICK2,COLOR00FF00;IF(盈损线>=REF(盈损线,1),盈损线,DRAWNULL),COLORRED,LINETHICK2;DRAWTEXT((MA18>=REF(MA18,3)AND CROSS(C,MA18)),L-0.05,'↖跟'),COLORRED;获利%:WINNER(C)*100,NODRAW,COLORFF00FF;{涨跌停提示}XX:=REF(C,1);ZDF:=(C-XX)/XX*100;DRAWTEXT(C>=1.099*XX,C*1.01,'↙涨停'),COLORYELLOW;DRAWTEXT(ZDF<-9.9,C*1.01,'↖跌停'),COLOR00FF00;DRAWTEXT_FIX(1,0.0,0.0,0,'蓝柱-高位出货坚决'),COLOR0080FF,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.06,0,'白柱-主力洗盘'),COLORWHITE,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.12,0,'绿柱-主力深度洗盘'),COLORGREEN,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.18,0,'粉柱-主力在做高抛低吸或低吸高抛'),COLORFF00FF,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.24,0,'红柱-主力吸筹进货积极主动'),COLORRED,LINETHICK1;。
通达信突破左峰主图指标公式
通达信突破左峰主图指标公式一般都有段行情1.250日最低价2.筹码线.线越长在此的筹码越多3.左峰线4.粉色k线表示已突破左峰价位.带加号表示带实际大量突破左峰5.粉色k线不带加号表示已突破左峰价位.但欠量能6.由于动态行情开盘前段时间.量还少.只能用虚拟量.粉色k线顶上出现蓝在珠.表示带虚拟量突破左峰本主图带未来.是用来画左峰线的.是已过去的.不会漂移.放心使用DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SSS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SSS)*3>=CURRBARSCOUNT,HI*9 9/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L2/SSS)*3>=CURRBARSCOUNT,HI/P OW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L3/SSS)*3>=CURRBARSCOUNT,HI/P OW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L4/SSS)*3>=CURRBARSCOUNT,HI/P OW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L5/SSS)*3>=CURRBARSCOUNT,HI/P OW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L6/SSS)*3>=CURRBARSCOUNT,HI/P OW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L7/SSS)*3>=CURRBARSCOUNT,HI/P OW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L8/SSS)*3>=CURRBARSCOUNT,LO* POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHIC K3;STICKLINE(CEILING(DA*L9/SSS)*3>=CURRBARSCOUNT,LO* POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHIC K3;STICKLINE(CEILING(DA*L10/SSS)*3>=CURRBARSCOUNT,LO, LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;DRAWKLINE(H,O,L,C);MA10:MA(C,10),COLORRED ,LINETHICK1;MA20:MA(C,20)COLORWHITE ,LINETHICK1;MA30:MA(C,30)COLORYELLOW,LINETHICK1;MA60:MA(C,60)COLORCC3299,LINETHICK1 ;VAR121:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)), 1),COLORWHITE,LINETHICK2;过峰:=C>SQ AND REF(C,1)<SQ;V VOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;预量:=VVOL/REF(V,1)>1.8;现量:=V/REF(V,1)>1.5;过峰1:STICKLINE( 过峰,C,O,5,0)COLORFF00FF;预量1:DRAWICON(过峰 AND 预量, H*1.01,14);现量1:DRAWICON(过峰 AND 现量,(O+C)/2,23);前次低点:LLV(L*1,250)POINTDOT,COLORFF00FF,LINETHICK4;过峰实量选股Q1:=V/REF(V,1)>1.5;VAR121:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:=DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)),1);A:=C>SQ AND REF(C,1)<SQ AND C>0 ;XD:Q1 AND A ;过峰虚量选股VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VAR121:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;SQ:=DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)),1),COLORWHITE,LINETHICK2;过峰:=C>SQ AND REF(C,1)<SQ;预量:=VVOL/REF(V,1)>1.8;预量1:过峰 AND 预量;。
通达信版 左峰梯源码 量学看盘系统主图三指标公式
公式源码:{公式名称: 左峰梯公式描述: 量学看盘系统主图三无参数公式类型: 技术指标公式-其他类型画线方法: 主图叠加公式版本: 0显示小数: 缺省位数坐标线位置: 自动额外Y轴分界: 无参数精灵:无用法注释:无公式源码:}X_1:=CONST(HHV(REF(HIGH,1),240));X_2:=CONST(LLV(REF(LOW,1),240));X_3:=X_1-X_2;X_4:=LOW-X_3*0.03;X_5:=HIGH+X_3*0.03;X_6:=CLOSE>500;X_7:=MAX(CLOSE,OPEN);X_8:=MIN(CLOSE,OPEN);X_9:=0;X_10:=1;X_11:=IF(X_6,HIGH,X_7);X_12:=IF(X_6,LOW,X_8);X_13:=IF(CLOSE>OPEN,IF(X_10=0,LOW,X_12),IF(X_10=0,HIGH,X_11));X_14:=2/1000;X_15:=CURRBARSCOUNT;X_16:=120;X_17:=X_15<=X_16;X_18:=LOW;X_19:=IF(X_9=0,X_18,REF(X_9,X_9));基准价:IF(X_17,CONST(X_19),DRAWNULL),DOTLINE,COLORRED;X_20:=基准价;X_21:=X_20*X_14;X_22:=ABS(LOW-X_20)<=X_21;X_23:=ABS(OPEN-X_20)<=X_21;X_24:=ABS(CLOSE-X_20)<=X_21;X_25:=ABS(HIGH-X_20)<=X_21;X_26:=X_22 OR X_23 OR X_24 OR X_25 AND X_17 AND X_15!=1;X_27:=COUNT(X_26,X_16);精准点个数:IF(X_27>0,X_27+1,0),NODRAW,COLORRED;X_28:=AMOUNT/VOL/100;X_29:=CLOSE>OPEN AND REF(CLOSE,1)>X_28 AND CLOSE>X_28 AND CLOSE<300;STICKLINE(X_29,OPEN,CLOSE,1,0),COLORLICYAN;X_30:=OPEN>CLOSE AND CLOSE<X_28 AND X_28>REF(CLOSE,1); STICKLINE(X_30,OPEN,CLOSE,1,0),COLORRED;X_31:=VOL>REF(VOL,1)*0.95 AND VOL<REF(VOL,1)*1.05;X_32:=WINNER(CLOSE)-WINNER(OPEN)>=0.2 AND X_31;STICKLINE(X_32,OPEN,CLOSE,1,0),COLORBLUE;X_33:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;X_34:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND X_33>=4.945; X_35:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND X_33<=(-4.945);涨停价:IF(X_34,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;跌停价:IF(X_35,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN; X_36:=REF(CLOSE,1);X_37:=CLOSE=ZTPRICE(REF(CLOSE,1),0.1);STICKLINE(X_37,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(X_37,OPEN,CLOSE,1,0),COLORMAGENTA;X_38:=CLOSE=DTPRICE(REF(CLOSE,1),0.1);STICKLINE(X_38,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(X_38,HIGH,LOW,0,1),COLORGREEN;X_39:=CLOSE;X_40:=REF(X_39,10)=HHV(X_39,2*10+1);X_41:=FILTER(X_40,10);X_42:=BACKSET(X_41,10+1);X_43:=FILTER(X_42,10);X_44:=REF(X_39,10)=LLV(X_39,2*10+1);X_45:=FILTER(X_44,10);X_46:=BACKSET(X_45,10+1);X_47:=FILTER(X_46,10);X_48:=REF(CLOSE,BARSLAST(X_47));X_49:=REF(CLOSE,BARSLAST(X_43));STICKLINE(CLOSE,X_49,X_49,8,0),COLORMAGENTA;STICKLINE(CLOSE,X_48,X_48,8,0),COLORRED;STICKLINE(X_43,CLOSE,OPEN,1,0),COLORBROWN;STICKLINE(X_43,CLOSE,OPEN,1,0),COLORBROWN;STICKLINE(X_47,CLOSE,OPEN,1,0),COLORBLUE;STICKLINE(X_47,CLOSE,OPEN,1,0),COLORBLUE;X_50:=OPEN-(OPEN-CLOSE)/3;X_51:=(OPEN+CLOSE)/2;X_52:=OPEN-2*(OPEN-CLOSE)/3;STICKLINE((OPEN+CLOSE)/2 AND CLOSE/REF(CLOSE,1)>=1.035 ORREF(CLOSE,1)/CLOSE>=1.035,(OPEN+CLOSE)/2,(OPEN+CLOSE)/2,3,0),COLORBR OWN;X_53:=MAX(CLOSE,OPEN);X_54:=MIN(CLOSE,OPEN);X_55:=X_54-0.01>=REF(X_53,1);流通市值:FINANCE(40)/100000000,NODRAW;MA5角度:ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.142,NODRAW,COLOR RED;循环年位置:(CLOSE-LLV(CLOSE,225))/(HHV(CLOSE,225)-LLV(CLOSE,225))*100,NODRAW,C OLORGREEN;X_56:=HHV(VOL,10);X_57:=BARSLAST(X_56=VOL);X_58:=CROSS(REF(MAX(CLOSE,OPEN),X_57),CLOSE);STICKLINE(X_58,MAX(CLOSE,OPEN)*1.02,MIN(CLOSE,OPEN)*0.98,0,1),COLORRE D;STICKLINE(X_58,(OPEN+CLOSE)/2,(OPEN+CLOSE)/2,10,0),COLORRED; DRAWICON(OPEN>REF(MAX(CLOSE,OPEN),1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND CLOSE>MA(CLOSE,5),LOW*0.97,11);X_59:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5);X_60:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE ANDREFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3) AND REFX(CLOSE,8)<REFX(CLOSE,4);X_61:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6);X_62:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE ANDREFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3);X_63:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7);X_64:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE ANDREFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2);X_65:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) ANDREF(CLOSE,4)>REF(CLOSE,8);X_66:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE ANDREFX(CLOSE,5)<REFX(CLOSE,1);X_67:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) ANDREF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9);X_68:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE;X_69:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) ANDREF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) ANDREF(CLOSE,6)>REF(CLOSE,10);REFX(CLOSE,3)<REF(CLOSE,1);X_71:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) ANDREF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) ANDREF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11);X_72:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2);X_73:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) ANDREF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) ANDREF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) ANDREF(CLOSE,8)>REF(CLOSE,12);X_74:=REFX(CLOSE,1)<REF(CLOSE,3);X_75:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) ANDREF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) ANDREF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) ANDREF(CLOSE,8)<REF(CLOSE,12) AND REF(CLOSE,9)>REF(CLOSE,13);X_76:=IF(PERIOD<4,LOW*(1-(PERIOD+1)/10*0.01),LOW*0.98);X_77:=IF(PERIOD<4,HIGH*(1+(PERIOD+1)/10*0.01),HIGH*1.05);X_78:=CURRBARSCOUNT-1;DRAWNUMBER(X_59 AND (X_60 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68) OR (X_78=5 AND X_66) OR (X_78=6 AND X_64) OR (X_78=7 AND X_62)),X_76,1),COLORMAGENTA; DRAWNUMBER(X_61 AND (X_62 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68) OR (X_78=5 AND X_66) OR (X_78=6 AND X_64)),X_76,2),COLORMAGENTA;DRAWNUMBER(X_63 AND (X_64 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68) OR (X_78=5 ANDX_66)),X_76,3),COLORMAGENTA;DRAWNUMBER(X_65 AND (X_66 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 ANDX_68)),X_76,4),COLORMAGENTA;DRAWNUMBER(X_67 AND (X_68 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70)),X_76,5),COLORMAGENTA;DRAWNUMBER(X_69 AND (X_70 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72)),X_76,6),COLORMAGENTA;DRAWNUMBER(X_71 AND (X_72 OR X_78=0 OR (X_78=1 ANDX_74)),X_76,7),COLORMAGENTA;DRAWNUMBER(X_73 AND (X_74 OR X_78<1),X_76,8),COLORMAGENTA; DRAWNUMBER(X_75,X_76,9),COLORGREEN;X_79:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5);REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE ANDREFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3) AND REFX(CLOSE,8)>REFX(CLOSE,4);X_81:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)<REF(CLOSE,6);X_82:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE ANDREFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3);X_83:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7);X_84:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE ANDREFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2);X_85:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) ANDREF(CLOSE,4)<REF(CLOSE,8);X_86:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE ANDREFX(CLOSE,5)>REFX(CLOSE,1);X_87:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) ANDREF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9);X_88:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE;X_89:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) ANDREF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) ANDREF(CLOSE,6)<REF(CLOSE,10);X_90:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1);X_91:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) ANDREF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) ANDREF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11);X_92:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2);X_93:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) ANDREF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) ANDREF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) ANDREF(CLOSE,8)<REF(CLOSE,12);X_94:=REFX(CLOSE,1)>REF(CLOSE,3);X_95:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) ANDREF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) ANDREF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) ANDREF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) ANDREF(CLOSE,8)>REF(CLOSE,12) AND REF(CLOSE,9)<REF(CLOSE,13); DRAWNUMBER(X_79 AND (X_80 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88) OR (X_78=5 AND X_86) OR (X_78=6 AND X_84) OR (X_78=7 AND X_82)),X_77,1),COLORMAGENTA; DRAWNUMBER(X_81 AND (X_82 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88) OR (X_78=5 AND X_86) OR (X_78=6 AND X_84)),X_77,2),COLORMAGENTA;DRAWNUMBER(X_83 AND (X_84 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88) OR (X_78=5 ANDX_86)),X_77,3),COLORMAGENTA;DRAWNUMBER(X_85 AND (X_86 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 ANDX_88)),X_77,4),COLORMAGENTA;DRAWNUMBER(X_87 AND (X_88 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90)),X_77,5),COLORMAGENTA;DRAWNUMBER(X_89 AND (X_90 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92)),X_77,6),COLORMAGENTA;DRAWNUMBER(X_91 AND (X_92 OR X_78=0 OR (X_78=1 ANDX_94)),X_77,7),COLORMAGENTA;DRAWNUMBER(X_93 AND (X_94 OR X_78<1),X_77,8),COLORMAGENTA; DRAWNUMBER(X_95,X_77,9),COLORGREEN;。
突破平台通达信指标公式源码
把自己优化的一个突破平台就加仓的指标分享出来,望多多支持,偶不是原作者,在原基础上优化了一下,请勿怪突破平台主图指标源码:VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);VAR2AA:=VOL;上升价格线:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLOR0000FF;下降价格线:LLV(上升价格线,8),COLOR00FF00;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.94999998),'加仓'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.99000001),'★'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>0),34),(HIGH)*(1.02),''),COLORGREEN;VAR1:=REF(CLOSE,1);VAR2:=MA(CLOSE,5);VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5))));VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3))));VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);VARA:=IF(VAR3<VAR8 ANDREF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));VARD:=IF(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5)));VARE:=IF(VAR3>VAR9 ANDREF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));VAR11:=IF(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5)));支撑线: VAR11,COLORFF00FF ,LINETHICK2 ;压力线: VARD, COLORBLUE,LINETHICK2 ;DING:=MAX(O,C);{实顶}DI:=MIN(O,C);{实底}YANG:=(DI>=REF(DING,1)) OR (C>O AND NOT(DING<=REF(DI,1))) OR (C>REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DING,1)=C);{阳线}YIN:=NOT(YANG);{YIN:=(C<O AND NOT(DI>=REF(DING,1))) OR (C>O AND DING<=REF(DI,1)) OR(C<REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DI,1)=C);{阴线}} YANGSHENG:YANG AND C>=REF(DING,BARSLAST(YIN)) AND (V>REF(V,BARSLAST(YIN)) OR (BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V,BARSLAST(YIN))*1.05))),NODRAW; ;LIANGJIABI:V/C,NODRAW;MALIANGJIABI:MA(LIANGJIABI,3),NODRAW;LIANGJIABIXISHU:=1.5;BLZ:=V>REF(V,1)*1.5;PLZ:=BETWEEN(V,REF(V,1)*0.95,REF(V,1)*1.05) ORBETWEEN(V,REFX(V,1)*0.95,REFX(V,1)*1.05) OR(BETWEEN(V,REF(V,2)*0.95,REF(V,2)*1.05) AND V>REF(V,1)*1.2) OR (BETWEEN(V,REF(V,3)*0.95,REF(V,3)*1.05) AND V>REF(MA(V,2),1)*1.2 ANDV>REF(HHV(V,2),1)) OR(BETWEEN(V,REF(V,4)*0.95,REF(V,4)*1.05) AND V>REF(MA(V,3),1)*1.2 ANDV>REF(HHV(V,3),1)) OR(BETWEEN(V,REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(MA(V,4),1)*1.2 ANDV>REF(HHV(V,4),1)) OR(BETWEEN(V,REF(V,6)*0.95,REF(V,6)*1.05) AND V>REF(MA(V,5),1)*1.2 ANDV>REF(HHV(V,5),1)) OR(BETWEEN(V,REF(V,7)*0.95,REF(V,7)*1.05) AND V>REF(MA(V,6),1)*1.2 ANDV>REF(HHV(V,6),1)) OR(BETWEEN(V,REF(V,8)*0.95,REF(V,8)*1.05) AND V>REF(MA(V,7),1)*1.2 ANDV>REF(HHV(V,7),1)) OR(BETWEEN(V,REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(MA(V,8),1)*1.2 ANDV>REF(HHV(V,8),1)) OR(BETWEEN(V,REF(V,10)*0.95,REF(V,10)*1.05) AND V>REF(MA(V,9),1)*1.2 ANDV>REF(HHV(V,9),1)) OR(BETWEEN(V,REF(V,11)*0.95,REF(V,11)*1.05) AND V>REF(MA(V,10),1)*1.2 ANDV>REF(HHV(V,10),1)) OR(BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V>REF(MA(V,11),1)*1.2 ANDV>REF(HHV(V,11),1));GLZ:=V=HHV(V,3) AND V=REFX(HHV(V,3),2);TLZ:=(V*1.1<REFX(V,1) AND REFX(V,1)*1.1<REFX(V,2)) OR (V>REF(V,1)*1.1 ANDV*1.1<REFX(V,1)) OR (V>REF(V,1)*1.1 AND REF(V,1)>REF(V,2)*1.1);JSLS:=C<=REFX(C,1) AND REFX(C,1)<=REFX(C,2) ANDLIANGJIABI>REFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1)>REFX(LIANGJIABI,2); JZ:=BLZ OR GLZ OR PLZ OR TLZ,NODRAW;JJZ:=CURRBARSCOUNT>=4 AND YANG AND (YANGSHENG) AND JZ ANDREFX(LLV(DI,3),3)>=DI AND(REFX(MA(LIANGJIABI,3),3)<=LIANGJIABIXISHU*LIANGJIABI OR REFX(JSLS,1)) AND REFX(C,3)>=DING,NODRAW;HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)<=LIANGJIABI AND REFX(YANG,3);HJZ2:=YANG AND YANGSHENG AND JZ AND REFX(DI,1)>=DI AND REFX(JJZ,2) ANDREFX(C,2)>DING AND REFX(LIANGJIABI,1)<LIANGJIABI;HJZ3:=YANG AND YANGSHENG AND JZ AND REFX(LLV(DI,2),2)>=DI AND REFX(JJZ,3) AND REFX(C,3)>DING AND REFX(MA(LIANGJIABI,2),2)<LIANGJIABI;HJZ4:=JJZ AND REFX(LLV(DI,3),3)>=DING ANDREFX(MA(LIANGJIABI,3),3)<=LIANGJIABI AND REFX(YANG,3) AND (REFX(YANG,1) OR REFX(YANG,2));WP:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW;CONDJJZ:=JJZ AND REF(NOT(WP),1);CONDHJZ1:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP),1);STICKLINE(CONDJJZ,C,O,1,0),COLORYELLOW;STICKLINE(CONDHJZ1,C,O,1,0),COLORMAGENTA;DRAWTEXT(HJZ4 AND REF(NOT(HJZ4),1),L*0.98,'H'),COLORRED;DRAWLINE(CONDJJZ,DING,REF(CONDJJZ,1),REF(DING,1),1),COLORBROWN; DRAWLINE(CONDJJZ,DI,REF(CONDJJZ,1),REF(DI,1),1),COLORBROWN; DRAWLINE(CONDHJZ1,DING,REF(CONDHJZ1,1),REF(DING,1),1),COLORBROWN; DRAWLINE(CONDHJZ1,DI,REF(CONDHJZ1,1),REF(DI,1),1),COLORBROWN;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA20:=MA(CLOSE,20),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,14);MA2:=MA(CLOSE,25);MA3:=MA(CLOSE,99);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORRED;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) ANDMIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NO DRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),N ODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1), REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL, REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL, REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL, REF(LOW,DAY1-4))),0),NODRAW;黄金线:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NO DRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLORRED;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;加仓副图/选股公式:RSV:=((HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)))*(100);LWR1:=SMA(RSV,3,1);LWR2:=SMA(LWR1,5,1);VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);VAR2AA:=VOL;上升价格线:=(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8));下降价格线:=LLV(上升价格线,8);VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);VAR1:=REF(CLOSE,1);VAR2:=MA(CLOSE,5);VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5)))); VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3)))); VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);VARA:=IF(VAR3<VAR8 ANDREF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 ANDREF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));VARD:=IF(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC ANDVAR3<VAR5)));VARE:=IF(VAR3>VAR9 ANDREF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 ANDREF(VAR3,1)>VAR9)-1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));VAR11:=IF(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 ANDVAR3>VAR5)));压力线:= VAR11,COLORFF00FF ,LINETHICK2 ;A:=C/REF(C,1)>1.095 AND H=O AND L=H;去除ST和停牌:=NOT(NAMELIKE('S') OR NAMELIKE('*S')) AND DYNAINFO(4)>0; XG:FILTER((VAR4AA>90),34) AND 上升价格线>下降价格线AND O>=REF(C,1) AND C>REF(C,1) AND LOW>=压力线AND NOT(A) AND 去除ST和停牌;。
通达信副图指标源码【大全】
庄筹散筹(幅图)庄筹估算:EMA(WINNER(C)*70,5) COLORMAGENTA LINETHICK2;散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5) COLORGREEN LINETHICK2; CC:=FILTER( (CROSS(5,庄筹估算) AND 散筹估算<20 )*60,10 );抄底:CC,COLORYELLOW;DRAWTEXT(CC ,11 ,'抄底' ) ,COLORYELLOW;AA:= REF(庄筹估算,30)>40 OR REF(庄筹估算,20)>40;BB:=CROSS(28,庄筹估算) AND 散筹估算>40 AND AA=1 {AND LLV(L ,60 )>LLV(L ,250 )}; 洗盘:IF(BB ,30 ,60 ) COLORCY AN;DRAWTEXT(FILTER(BB,4) ,66 ,'洗盘' ) COLORCY AN;DRAWTEXT(庄筹估算>60,58,'★'),COLORRED;STICKLINE(庄筹估算<散筹估算AND 散筹估算<60,散筹估算,55,1,0),COLORGREEN; STICKLINE(庄筹估算>散筹估算,散筹估算,50,1,0),COLORRED;STICKLINE(庄筹估算<散筹估算,庄筹估算,0,0,0),COLORYELLOW;操盘频率(幅图)V AR1:=MA(CLOSE,26);持仓线: V AR1, , ;V AR2:=V AR1-0.25;空仓线: V AR2, , ;操盘频率: EMA(CLOSE,3);操盘频率是一个趋势类的指标,它由三根线条组成,分别是:操盘趋势,持仓线,空仓线组成,通常这个指标为我们明确指出了一个中期趋势的大方向机构能量线(幅图){坐标线;20.00;50.00;80.00}V AR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线: SMA(V AR1,3,1),LINETHICK2,COLORGREEN;V AR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线: SMA(V AR2,5,1)-8,LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;该指标共四根线,分别为机构做空能量线(绿色粗线)、机构做多能量线(红色粗线),这两条线代表中期趋势;能量超买线(红色细线)、能量超卖线(绿色细线),这两条线代表短期趋势。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
突破左峰优化版主图幅图选股
评测我是这么设置的时间2014.12.1---2015.4014.止损10% 止盈20%,然后将所有164张票导入开始.
主图
T:=FINDHIGHBARS(H,60,30,1);
A:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0),COLORYELLO W;
TT:=BARSLAST(C>A*1.014 AND L<A);
TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));
TJ:=VOL=HHV(VOL,T+1) AND TA>28;
TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01;
E13:=EXPMA(C,TA+1);
CJ:=(A/E13-1) *100 ;
HH:=HHV(CJ,10);
XG:=COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20;
STICKLINE(XG,H,L,0,0),COLORFF00FF;
STICKLINE(XG,C,O,3,0),COLOR990099;
STICKLINE(XG,C,O,2,0),COLORBB00BB;
STICKLINE(XG,C,O,1,0),COLORDD00DD;
STICKLINE(XG,C,O,0.3,0),COLORFF00FF;
DRAWICON(XG,L*0.93,25);
DRAWTEXT(TA=0,A*1.05,STRCAT(STRCAT('最高价:',VAR2STR(REF(A,TA),2)),'元'))COLORYELLOW;
幅图
T:=FINDHIGHBARS(H,60,30,1);
A:=DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0);
TT:=BARSLAST(C>A*1.014 AND L<A);
TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));
TJ:=VOL=HHV(VOL,T+1) AND TA>28;
TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01;
E13:=EXPMA(C,TA+1);
CJ:=(A/E13-1) *100 ;
HH:=HHV(CJ,10);
XG:=COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20;
STICKLINE(XG,0,8,3,0),COLOR990099;
STICKLINE(XG,0,8,2,0),COLORBB00BB;
STICKLINE(XG,0,8,1,0),COLORDD00DD;
STICKLINE(XG,0,8,0.3,0),COLORFF00FF;
选股
T:=FINDHIGHBARS(H,60,30,1);
A:=DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0);
TT:=BARSLAST(C>A*1.014 AND L<A);
TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5));
TJ:=VOL=HHV(VOL,T+1) AND TA>28;
TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01; E13:=EXPMA(C,TA+1);
CJ:=(A/E13-1) *100 ;
HH:=HHV(CJ,10);
XG:COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20;。