最强选股战法推荐:
通达信缠论主神主图未加密选股指标公式源码
源码正文:
布林:=1{XG51};
均线:=1{XG51};
三k线:=1{XG51};
峰谷:=1{XG51};
M1:=5{XG51};
M2:=10{XG51};
M3:=20{XG51};
W00:=COst(1){XG51};
W10:=COST(10){XG51};
W20:=COST(20){XG51};
W30:=COST(30){XG51};
W40:=COST(40){XG51};
W50:=COST(50){XG51};
W60:=COST(60){XG51};
W70:=COST(70){XG51};
W80:=COST(80){XG51};
W90:=COST(90){XG51};
W100:=COST(99){XG51};
W5:=COST(5){XG51};
W15:=COST(15){XG51};
W25:=COST(25){XG51};
W35:=COST(35){XG51};
W45:=COST(45){XG51};
W55:=COST(55){XG51};
W65:=COST(65){XG51};
W75:=COST(75){XG51};
W85:=COST(85){XG51};
W95:=COST(95){XG51};
C5:=W5-W00{XG51};
C10:=W10-W5{XG51};
C15:=W15-W10{XG51};
C20:=W20-W15{XG51};
C25:=W25-W20{XG51};
C30:=W30-W25{XG51};
C35:=W35-W30{XG51};
C40:=W40-W35{XG51};
C45:=W45-W40{XG51};
C50:=W50-W45{XG51};
C55:=W55-W50{XG51};
C60:=W60-W55{XG51};
C65:=W65-W60{XG51};
C70:=W70-W65{XG51};
C75:=W75-W70{XG51};
C80:=W80-W75{XG51};
C85:=W85-W80{XG51};
C90:=W90-W85{XG51};
C95:=W95-W90{XG51};
C100:=W100-W95{XG51};
X1:=MIN(C60,MIN(C65,MIN(C70,MIN(C75,MIN(C80,MIN(C85,MIN(C90,MIN(C95,C100)))))))){XG51};
ZX:=MIN(C5,MIN(C10,MIN(C15,MIN(C20,MIN(C25,MIN(C30,MIN(C35,MIN(C40,MIN(C45,MIN(C50,MIN(C55,X1))))))))))){XG51};
STICKLINE(ZX=C5,(W00+W5)/2,(W00+W5)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C10,(W10+W5)/2,(W10+W5)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C15,(W10+W15)/2,(W10+W15)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C20,(W20+W15)/2,(W20+W15)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C25,(W20+W25)/2,(W20+W25)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C30,(W30+W25)/2,(W30+W25)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C35,(W30+W35)/2,(W30+W35)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C40,(W40+W35)/2,(W40+W35)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C45,(W40+W45)/2,(W40+W45)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C50,(W50+W45)/2,(W50+W45)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C55,(W50+W55)/2,(W50+W55)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C60,(W60+W55)/2,(W60+W55)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C65,(W60+W65)/2,(W60+W65)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C70,(W70+W65)/2,(W70+W65)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C75,(W70+W75)/2,(W70+W75)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C80,(W80+W75)/2,(W80+W75)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C85,(W80+W85)/2,(W80+W85)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C90,(W90+W85)/2,(W90+W85)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C95,(W90+W95)/2,(W90+W95)/2,10,0),COLOR555500{XG51};
STICKLINE(ZX=C100,(W100+W95)/2,(W100+W95)/2,10,0),COLOR555500{XG51};
筹宽:=W100-W00{XG51};
JZD:=(COST(85)-COST(15))/(COST(85)+COST(15))*100{XG51};
JJ90:=W90-W70{XG51};
JJ80:=W80-W60{XG51};
JJ70:=W70-W50{XG51};
JJ60:=W60-W40{XG51};
JJ50:=W50-W30{XG51};
JJ40:=W40-W20{XG51};
JJ30:=W30-W10{XG51};
STICKLINE(JJ90/筹宽<0.08 AND JZD<8,(W90+W70)/2,(W70+W90)/2,10,0),COLORFF00FF{XG51};
STICKLINE(JJ80/筹宽<0.08 AND JZD<8,(W80+W60)/2,(W80+W60)/2,10,0),COLORFF00FF{XG51};
STICKLINE(JJ70/筹宽<0.08 AND JZD<8,(W70+W50)/2,(W70+W50)/2,10,0),COLORFF00FF{XG51};
STICKLINE(JJ60/筹宽<0.08 AND JZD<8,(W40+W60)/2,(W60+W40)/2,10,0),COLORFF00FF{XG51};
STICKLINE(JJ50/筹宽<0.08 AND JZD<8,(W50+W30)/2,(W50+W30)/2,10,0),COLORFF00FF{XG51};
STICKLINE(JJ40/筹宽<0.08 AND JZD<8,(W40+W20)/2,(W40+W20)/2,10,0),COLORFF00FF{XG51};
STICKLINE(JJ30/筹宽<0.08 AND JZD<8,(W30+W10)/2,(W10+W30)/2,10,0),COLORFF00FF{XG51};
TC1S:=IF(H=HHV(H,48),H,DRAWNULL){XG51};
TC2S:=CONST(BArslAST(TC1S=H))+1{XG51};
UPPERS:=CONST(IF(TC2S=1,H,REF(H,TC2S-1))){XG51};
BC1S:=IF(L=LLV(L,48),L,DRAWNULL){XG51};
BC2S:=CONST(BARSLAST(BC1S=L))+1{XG51};
LOWERS:=CONST(IF(BC2S=1,L,REF(L,BC2S-1))){XG51};
LPS:=CURRBARSCOUNT<=BC2S AND L=LOWERS{XG51};
HPS:=CURRBARSCOUNT<=TC2S AND H=UPPERS{XG51};
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){XG51};
中轨:=((上轨)+(下轨))/2;
YXHX:=DATE>=REF(DATE,BARSLAST(IF(BC2S>TC2S,LPS,HPS))){XG51};
上沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,上轨,上轨),COLOR555555,LINETHICK2{XG51};
中枢:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,中轨,中轨),COLOR555555,LINETHICK2{XG51};
下沿:IF(AB1S>0 AND AB1S-BA1S<=0 AND YXHX,下轨,下轨),COLOR555555,LINETHICK2{XG51};
DG:=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3)){XG51};
GD:=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3)){XG51};
AA11:=(DG+GD)/2{XG51};
A11:=AA11>REFX(L,3) AND REFX(L,2)< AA11 AND REFX(L,1) <AA11 {XG51};
A21:=FILTER(A11,BARSLAST(A11)+2){XG51};
A41:=A11 AND A21{XG51};
A51:=IF(REF(A41,1),H,0),NODRAW{XG51};
STICKLINE(三K线=1 && REF(A41,2),REF(GD,2),REF(DG,2),13,-1),COLORLIMAGENTA{XG51};
DRAWKLINE(H,O,L,C){XG51};
PA:=10{XG51};
PB:=REF(HIGH,PA)=HHV(HIGH,2*PA+1){XG51};
PC:=FILTER(PB,PA){XG51};
PD:=BacKSET(PC,PA+1){XG51};
PE:=FILTER(PD,PA){XG51};
峰线:(REF(HIGH,BARSLAST(PE)))*峰谷,COLORWHITE,POINTDOT,LINETHICK2{XG51};
AA21:=REF(LOW,PA)=LLV(LOW,2*PA+1){XG51};
BB21:=FILTER(AA21,PA){XG51};
CC21:=BACKSET(BB21,PA+1){XG51};
DD21:=FILTER(CC21,PA){XG51};
谷线:(REF(LOW,BARSLAST(DD21)))*峰谷,COLORCYAN,POINTDOT,LINETHICK2{XG51};
时间:=4{XG51};
A:=H=HHV(H,时间*5) AND HHV(H,时间*5)>REF(HHV(H,时间*5),1){XG51};
B:=L=LLV(L,时间*5) AND LLV(L,时间*5)<REF(LLV(L,时间*5),1){XG51};
CCA:DRAWLINE(A,H,B,L,0),COLORCYAN,LINETHICK2{XG51};
CCB:DRAWLINE(B,L,A,H,0),COLORWHITE,LINETHICK2{XG51};
N:=(0,1,1){XG51};
局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4){XG51};
局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2){XG51};
局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0){XG51};
局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4){XG51};
局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2){XG51};
局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0){XG51};
缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0)){XG51};
距前高天:=BARSLAST(局部高点预选C=1){XG51};
距前低天:=BARSLAST(局部低点预选C=-1){XG51};
小值周期:=LOwrANGE(L){XG51};
大值周期:=topRANGE(H){XG51};
低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0){XG51};
低保留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){XG51};
低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0){XG51};
预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0){XG51};
判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0){XG51};
高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0){XG51};
高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0){XG51};
高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0){XG51};
预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0){XG51};
判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0){XG51};
低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0){XG51};
低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0){XG51};
低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0){XG51};
距前高天A:=BARSLAST(高保留=1){XG51};
距前低天A:=BARSLAST(低保留=-1){XG51};
预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0){XG51};
判断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){XG51};
高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0){XG51};
高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0){XG51};
高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0){XG51};
预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0){XG51};
判断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){XG51};
低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0){XG51};
低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0){XG51};
低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0){XG51};
距前高天YA:=BARSLAST(高保留X=1){XG51};
距前低天YA:=BARSLAST(低保留X=-1){XG51};
预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0){XG51};
判断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){XG51};
高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0){XG51};
高保留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){XG51};
高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0){XG51};
预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0){XG51};
判断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){XG51};
低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0){XG51};
低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0){XG51};
低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0){XG51};
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)){XG51};
极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD){XG51};
局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORMAGENTA{XG51};
C1:DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORLIMAGENTA{XG51};
C2:DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORRED{XG51};
DRAWTEXT(极点保留=1,局部极点,'卖'),COLORCYAN{XG51};
DRAWTEXT(极点保留=-1,局部极点,'买'),LINETHICK2,COLORWHITE{XG51};
MA1:EMA(C,M1),COLORWHITE{XG51};
MA2:EMA(C,M2),COLORBLUE{XG51};
MA3:EMA(C,M3),COLORYELLOW{XG51};
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6{XG51};
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,LINETHICK2,COLORBLUE{XG51};
HHJSJDC:MA(HHJSJDB,5),LINETHICK2,COLORWHITE{XG51};
AA:=MA(CLOSE, 250){XG51};
BB:=C>=REF(O AND C,1){XG51};
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6{XG51};
牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORWHITE{XG51};
DRAWICON(crOSS(C,牛线) AND C/O>1.04 AND C/O<1.07 AND C>=AA AND BB,L,3){X?G-5=1?C?N?{};
通达信股市起点未加密选股指标公式源码
源码正文:
N:=14{XG51};
M:=6{XG51};
MTR:=SUM(maX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N){XG51};
HDZ :=HIGH-REF(HIGH,1){XG51};
LDZ :=REF(LOW,1)-LOW{XG51};
DMPZ:=SUM(IF(HDZ>0&&HDZ>LDZ,HDZ,0),N){XG51};
DMMZ:=SUM(IF(LDZ>0&&LDZ>HDZ,LDZ,0),N){XG51};
pdi: DMPZ*100/MTR,COLORWHITE,LINETHICK2{XG51};
mdi: DMMZ*100/MTR{XG51};
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M){XG51};
ADXR:(ADX+REF(ADX,M))/2{XG51};
TT:=EXPMema(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N){XG51};
HD :=HIGH-REF(HIGH,1){XG51};
LD :=REF(LOW,1)-LOW{XG51};
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N){XG51};
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N){XG51};
PDIZ:=DMP*100/TT{XG51};
MDIZ:=DMM*100/TT{XG51};
ADXZ:=EXPMEMA(ABS(MDIZ-PDIZ)/(MDIZ+PDIZ)*100,M){XG51};
ADXRZ:=EXPMEMA(ADXZ,M){XG51};
ZT:=PDIZ< MDIZ AND PDIZ< ADXZ AND PDIZ< ADXRZ{XG51};
A:crOSS(PDIZ, MDIZ) AND CROSS(PDIZ, ADXZ) AND CROSS(PDIZ, ADXRZ) AND C/REF(C,1)>=1.05 AND vol>=HHV(V,13) AND LAst (ZT,7,1){XG51};
DRAWICON(A,LOW,34){XG51};
STICKLINE( A,0,80,1,0 )COLORWHITE{X!G^5~1!C!N!{};
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
选股无忧网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,请勿以此为依据进行股票交易。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 选股无忧网桂ICP备18001383号-7