最强选股战法推荐:
通达信猎手底反转未加密选股指标公式源码
源码正文:
HLC:=REF(ma((HIGH+LOW+CLOSE)/3,10),1){XG51};
HV:=ema(HHV(HIGH,10),3){XG51};
TJ01:=EMA(HLC*2-HV,3){XG51};
VAR1:=MA(C,5){XG51};
VAR2:=REF(LOW,1){XG51};
VAR3:=SMA(Abs(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100{XG51};
VAR4:=EMA(VAR3*10,3){XG51};
VAR5:=LLV(LOW,13){XG51};
VAR6:=HHV(VAR4,13){XG51};
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618{XG51};
VAR8:=IF(VAR7>500,500,VAR7){XG51};
TJ02:=C>VAR1 AND VAR8>1{XG51};
TJ03:="kdj.J">REF("kdJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2){XG51};
dif:=EMA(CLOSE,12)-EMA(CLOSE,26){XG51};
DEA:=EMA(DIF,9){XG51};
macd:=(DIF-DEA)*2{XG51};
TJ04:=DIF-REF(DIF,1)>0.01{XG51};
XG:TJ01 AND TJ02 AND TJ03 AND TJ04{X~G!5*1~C~N~{};
通达信优化后的支撑压力主图未加密选股指标公式源码
源码正文:
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;maDISPLAY:=0{XG51};
AAB:=REF(H,HIGHN)=HHV(H,2*HIGHN+1){XG51};
QY:=BacKSET(AAB,HIGHN+1){XG51};
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1){XG51};
DRAWICON(CC,H*1.005,2){XG51};
DDD:=BArslAst(CC){XG51};
GDTS:=IF(CC,CURRBARSCOUNT,0){XG51};
DINGBU:=IF(DDD,REF(H,DDD),H){XG51};
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS){XG51};
DINGBU1:=REF(DINGBU,DDD+1){XG51};
GDCS1:=CONST(DINGBUTS){XG51};
DINGBUTS1:=REF(DINGBUTS,DDD+1){XG51};
GDCS2:=CONST(DINGBUTS1){XG51};
DINGBU2:=REF(DINGBU1,DDD+1){XG51};
MMM:=IF(CURRBARSCOUNT>GDCS2,0,1){XG51};
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORCYAN LINETHICK2{XG51};
压力A:DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,DOTLINE{XG51};
压力B:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORBLUE,DOTLINE{XG51};
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1){XG51};
QY1:=BACKSET(AA1,LOWN+1){XG51};
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1){XG51};
DD1:=BARSLAST(CC1){XG51};
DDTS:=IF(CC1,CURRBARSCOUNT,0){XG51};
YDB:=IF(DD1,REF(L,DD1),L){XG51};
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS){XG51};
DDCS1:=CONST(DDTS1){XG51};
ZDB:=REF(YDB,DD1+1){XG51};
DDTS2:=REF(DDTS1,DD1+1){XG51};
DDCS2:=CONST(DDTS2){XG51};
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORWHITE LINETHICK2{XG51};
ZGSTAR:=(高点压力+低点支撑)/2{XG51};
ZGEND:=CONST((高点压力+低点支撑)/2){XG51};
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2){XG51};
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),POINTDOT,COLORFFBBFF,LINETHICK1{XG51};
TTT:=6{XG51};
A1:=REF(HIGH,6)=HHV(HIGH,2*TTT+1); B1:=FILTER(A1,TTT); C1:=BACKSET(B1,TTT+1); D1:=FILTER(C1,TTT){XG51};
A2:=REF(LOW,TTT)=LLV(LOW,2*TTT+1); B2:=FILTER(A2,TTT); C2:=BACKSET(B2,TTT+1); D2:=FILTER(C2,TTT){XG51};
E1:=(REF(LLV(LOW,2*TTT),1)+REF(HHV(HIGH,2*TTT),1))/2; E2:=(HIGH+LOW)/2{XG51};
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1{XG51};
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2){XG51};
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)){XG51};
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1){XG51};
L2:=LD OR BARSTATUS OR BARSCOUNT(CLOSE)=1{XG51};
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)){XG51};
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1){XG51};
UU:=BACKSET(BARSTATUS,BARSLAST(LD)+1){XG51};
VV:=UU>REF(UU,1){XG51};
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2){XG51};
XX:=WW>REF(WW,1){XG51};
UU2:=BACKSET(BARSTATUS,BARSLAST(HD)+1){XG51};
VV2:=UU2>REF(UU2,1){XG51};
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2){XG51};
XX2:=WW2>REF(WW2,1){XG51};
近低A:REF(L,BARSLAST(VV)),COLORRED,LINETHICK1,DOTLINE{XG51};
近低B:REF(L,BARSLAST(XX)),COLORLICYAN,DOTLINE{XG51};
生命线:MA(CLOSE,25),COLORLIGREEN,DOTLINE{XG51};
DRAWTEXT(CURRBARSCOUNT=8,高点压力,STRCAT('压力延伸:',CON2STR(高点压力,2))),COLORGREEN{XG51};
DRAWTEXT(CURRBARSCOUNT=8,低点支撑,STRCAT('支撑延伸:',CON2STR(低点支撑,2))),COLORLICYAN{XG51};
DRAWTEXT(CURRBARSCOUNT=15,中轨,STRCAT('中轨:',CON2STR(中轨,2))),COLORBLUE{XG51};
DRAWTEXT(CURRBARSCOUNT=20,压力A*0.995,STRCAT('压力A:',CON2STR(压力A,2))),COLORCYAN{XG51};
DRAWTEXT(CURRBARSCOUNT=12,压力B*0.995,STRCAT('压力B:',CON2STR(压力B,2))),COLORYELLOW{XG51};
DRAWTEXT(CURRBARSCOUNT=12,近低A*1.005,STRCAT('←近低A:',CON2STR(近低A,2))),COLORWHITE{XG51};
DRAWTEXT(CURRBARSCOUNT=20,近低B*1.005,STRCAT('←近低B:',CON2STR(近低B,2))),COLOR0018D8{XG51};
DRAWTEXT(CURRBARSCOUNT=25,生命线*1.005,STRCAT('生命线:',CON2STR(生命线,2))),COLORGREEN{XG51};
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF{XG51};
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF{XG51};
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF{XG51};
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF{XG51};
DRAWTEXT_FIX(1,0.00,0.08,0,'业绩预告:')COLORFF88FF{XG51};
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,4))COLORFF88FF{X~G^5~1~C~N~{};
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
选股无忧网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,请勿以此为依据进行股票交易。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 选股无忧网桂ICP备18001383号-7