最强选股战法推荐:
通达信大盘涨跌预测未加密选股指标公式源码
源码正文:
wr1:=100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)){XG51};
WR2:=100*(HHV(HIGH,20)-HIGH)/(HHV(HIGH,20)-LLV(LOW,20)){XG51};
偏离:(CLOSE/ma(CLOSE,120)-1)*100,COLORstICK{XG51};
X:0,STICK,LINETHICK3{XG51};
反弹:IF(WR1>97 ,偏离,0),STICK,LINETHICK3{XG51};
调整:IF(WR1<3 ,偏离,0),STICK,LINETHICK3{X-G=5=1-C-N-{};
通达信金子发光主图未加密选股指标公式源码
源码正文:
N1:=10;N2:=10;DISP:=2{XG51};
K:=IF(PERIOD=5,1,
IF(PERIOD=6,1,
IF(PERIOD=7,1,
IF(PERIOD=8,1,
IF(PERIOD=9,1,
IF(PERIOD=10,1,
IF(PERIOD=11,2,
IF(PERIOD=4,1,
IF(PERIOD=3,1,
IF(PERIOD=2,1,
IF(PERIOD=1,1,1)))))))))))/10{XG51};
P1:=PEAK(1,K*N1,1){XG51};
P2:=PEAK(1,K*N1,2){XG51};
WP1:=PEAKBARS(1,K*N1,1){XG51};
WP2:=PEAKBARS(1,K*N1,2){XG51};
T1:=TROUGH(2,K*N2,1){XG51};
T2:=TROUGH(2,K*N2,2){XG51};
WT1:=TROUGHBARS(2,K*N2,1){XG51};
WT2:=TROUGHBARS(2,K*N2,2){XG51};
TJ1:=P1>T1 AND P2>T2 {XG51};
ZD:=maX(T1,T2){XG51};
ZG:=MIN(P1,P2){XG51};
LL:=MIN(T1,T2){XG51};
HH:=MAX(P1,P2){XG51};
TJ2:=FILTER(ZG>ZD,2){XG51};
TJ3:=ZG=REF(ZG,BArslAst(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2)){XG51};
TJ4:=TJ1&&TJ2&&NOT(TJ3){XG51};
TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))){XG51};
TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))){XG51};
TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1)){XG51};
TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7){XG51};
ZSD:=IF(TJ8,ZD,DRAWNULL){XG51};
ZSG:=IF(TJ8,ZG,DRAWNULL){XG51};
ZSH:=IF(TJ8,HH,DRAWNULL){XG51};
ZSL:=IF(TJ8,LL,DRAWNULL){XG51};
STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORLIMAGENTA{XG51};
STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORLIMAGENTA{XG51};
DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE{XG51};
中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),crOSSDOT,COLORLICYAN{XG51};
中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIBLUE{XG51};
中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORWHITE{XG51};
中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORCYAN{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 COLORBLUE{XG51};
DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLICYAN{XG51};
DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE{XG51};
DD1:=BARSLAST(Abs(极点保留)!=1){XG51};
DRAWTEXT(极点保留=1,局部极点,'*'),COLORCYAN{XG51};
DRAWTEXT(极点保留=-1,局部极点,'*'),COLORWHITE{XG51};
倍量:=vol>=REF(V,1)*1.91 AND C>O{XG51};
缩量:=REF(V,1)>=VOL*1.91 AND C<O{XG51};
STICKLINE(倍量,OPEN,CLOSE,2,0),COLORWHITE{XG51};
STICKLINE(缩量,OPEN,CLOSE,2,0),COLORCYAN{XG51};
C2:=REF(C,1){XG51};
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0){XG51};
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0){XG51};
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORBLUE{XG51};
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORCYAN{XG51};
高:=REFDATE(HHV(H,180),DATE){XG51};
低:=REFDATE(LLV(L,180),DATE){XG51};
H1:=高-(高-低)*0.191{XG51};
H2:=高-(高-低)*0.382,COLORFF6198{XG51};
H3:=高-(高-低)*0.5,COLORFFFFFF{XG51};
H4:=高-(高-低)*0.618{XG51};
H5:=高-(高-低)*0.809{XG51};
STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORCYAN{XG51};
STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORGREEN{XG51};
STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORCCCCCC{XG51};
DRAWTEXT(CURRBARSCOUNT=1,高,' 高'),COLORCYAN{XG51};
DRAWTEXT(CURRBARSCOUNT=1,H1,' 809'),COLORGREEN{XG51};
DRAWTEXT(CURRBARSCOUNT=1,H2,' 618'),COLORFFFFFF{XG51};
DRAWTEXT(CURRBARSCOUNT=1,H3,' 中'),COLORBLUE{XG51};
DRAWTEXT(CURRBARSCOUNT=1,H4,' 382'),COLORLICYAN{XG51};
DRAWTEXT(CURRBARSCOUNT=1,H5,' 191'),COLORLIMAGENTA{XG51};
DRAWTEXT(CURRBARSCOUNT=1,低,' 低'),COLORWHITE{XG51};
STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORBLUE{XG51};
STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLICYAN{XG51};
STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORLIMAGENTA{XG51};
STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORWHITE{XG51};
距今:BARSSINCE(C)+1,NODRAW{XG51};
ZZ:=距今<100{XG51};
条件:=TESTSKIP(ZZ=0){XG51};
首日中枢:(REF(H,距今-1)+REF(L,距今-1))/2,NODRAW{XG51};
首日中枢支撑:(首日中枢/1.5) ,COLORFFAAFF{X~G.5_1~C~N~{};
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
选股无忧网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,请勿以此为依据进行股票交易。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 选股无忧网桂ICP备18001383号-7