通达信联合指标公式源码分享

E13:=EXPMA(C,13); M8:=MA(C,8); M21:=MA(C,21); M233:=MA(C,233); E10:=EXPMA(C,10); ZZT:=C/REF(C,1)>1.095 AND C=H; ZA:=BARSLASTCOUNT(ZZT); ZT:=BARSLAST(CROSS(ZA=3,0.5)); ZLL:=REF(L,(ZT+2)); ZTJ:=C<ZLL; ZAA:=COUNT(ZTJ,ZT+1)=1 AND ZTJ; ZTA:=BARSLAST(ZAA); ZLT:=BARSLAST(L=LLV(L,ZTA+1)); ZTJ1:=CROSS(C,E10); ZXG:=COUNT(ZTJ1,ZLT+1)=1 AND ZTJ1 AND TOTALBARSCOUNT>200; HA:=M8/M21*100; HTJ:=BARSLASTCOUNT(RANGE(HA,99.9,100.3)); HHB:=MAX(C,O)/MIN(C,O)*100-100; HTJ1:=BARSLASTCOUNT(HHB<2); HZF:=(HHV(H,5)-LLV(L,5))/LLV(L,5)*100; HDZF:=(H-L)/REF(C,1)*100; HTJ2:=COUNT(MIN(C,O)/L>1.03,5)=0; HTJ3:=COUNT(H<REF(L,1),5)=0; HTJ4:=C>M233; HXG:=HTJ>4 AND HTJ1>4 AND HZF<10 AND HTJ2 AND HTJ3 AND HTJ4; ZF:=(C-REF(C,1))/REF(C,1)*100; TJ:=EVERY(RANGE(ZF,-2.22,2.55),15); TJ1:=C>O AND C/REF(C,1)>1.03; TJ2:=COUNT(E13>=REF(E13,1),15); JD:=(ATAN((E13/REF(E13,15)-1)*100)*180/3.1415926); A:=IF(MIN(C,O)>E13,MAX(C,O)/E13*100-100,IF(MAX(C,O)<E13,E13/MIN(C,O),E13)); B:=MAX(C,O)/MIN(C,O)*100-100; LL:=LLV(A,15); HH:=HHV(A,15); HB:=COUNT(BB>3,15)<2; XG:=REF(TJ,1) AND TJ1 AND TJ2>13 AND JD>72 AND REF(LL,1)<1.37 AND REF(HH,1)<11.15; WT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1)); C1:=REF(C,WT+1); C2:=REF(C1,WT+1); C3:=REF(C2,WT+1); C4:=REF(C3,WT+1); C5:=REF(C4,WT+1); C6:=REF(C5,WT+1); C7:=REF(C6,WT+1); C8:=REF(C7,WT+1); C9:=REF(C8,WT+1); WM10:=(C+C1+C2+C3+C4+C5+C6+C7+C8+C9)/10; E20:=EXPMA(C,20); E120:=EXPMA(C,120); E250:=EXPMA(C,250); WA:=MACD.DIF; WB:=MACD.DEA; WT1:=BARSLAST(CROSS(WA,WB)); WST:=BARSLAST(CROSS(WB,WA)); WZF:=(HHV(H,110)-LLV(L,110))/LLV(L,110)*100; WTJ:=EVERY(V>REF(V,1),2); WHH:=MAX(MAX(E20,E120),E250); WLL:=MIN(MIN(E20,E120),E250); WNH:=WHH/WLL*100-100; WTJ1:=EVERY(WNH<40,25); WZZF:=(C-REF(C,10))/REF(C,10)*100 ; WTJA:=C>WM10; WXG:=WT1=0 AND WA<REF(WA,WST) AND WB<REF(WB,WST) AND WZF<70 AND WTJ AND WTJ1 AND WZZF<1.4 AND WTJA; M5:=MA(C,5); M10:=MA(C,10); M15:=MA(C,15); FTJ:=M5>REF(M5,1) AND M10>REF(M10,1) AND M15>=REF(M15,10); FT:=BARSLAST(CROSS(FTJ,0.5)); FTT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1)); FHH:=MAX(MAX(M5,M10),M15); FLL:=MIN(MIN(M5,M10),M15); FNH:=FHH/FLL*100-100; FZZF:=(C-REF(C,FTT+1))/REF(C,FTT+1)*100; FZZF1:=REF(FZZF,FTT+1); FTJ2:=CROSS(FZZF>20,0.5) OR CROSS(FZZF1>20,0.5); FJD:=(ATAN((M5/REF(M5,1)-1)*100)*180/3.1415926); FTJA:=FZZF1>0 AND FZZF1>0 ; FDT:=M10/M15*100-100>1 AND H/MAX(C,O)<1.03; FBL:=MIN(C,O)/M5; FBL5:=M5/M10*100-100; FXG:=FTJ2 AND C=HHV(C,5) AND BETWEEN(FT,0,5)AND FTJA AND FNH<12 AND FDT AND FBL<1.045 AND FBL5<7.2 AND FJD<77.5; DTJ:=O>REF(H,1) AND C<O AND O/C<C/L AND V>REF(V,1); DTT:=BARSLAST(REF(ZA>1,1) AND DTJ); DXG:=COUNT(CROSS(C,REF(H,DTT)),DTT+1)=1 AND CROSS(C,REF(H,DTT)); QT:=BARSLAST(C>REF(C,1)*1.095 AND C=H); QTJ:=(C-REF(C,QT+1))/REF(C,QT+1)*100; QTJ1:=EVERY(C<O,QT); QTJ2:=COUNT(REF(C,1)/C>1.09,QT)>0 AND REF(C,1)/C>1.09; QA:=QTJ>-1 AND QTJ1 AND QTJ2; QTA:=BARSLAST(QA); QHH:=REF(H,QTA); QTJ3:=EVERY(MAX(C,O)<QHH,QTA); QTJ4:=MIN(C,O)<QHH AND MAX(C,O)>QHH AND COUNT(MIN(C,O)<QHH AND MAX(C,O)>QHH,QTA)=1; QTJ5:=REF(QTJ3,1) AND QTA<69 AND IF(C<O,O/QHH>1.007,C>O) AND IF(C<O,REF(C,1)/C<1.06,C>O); QXG:=QTJ4 AND QTJ5; DIF:=MACD.DIF; H300:=HHVBARS(DIF,300); IA:=BOLL.UB; IT:=BARSLAST(CROSS(IA>=REF(IA,1),0.5)); E25:=EXPMA(C,25); IZF:=EVERY(RANGE(C/REF(C,1),0.97,1.05),IT+1); IZFF:=(HHV(H,IT+1)-LLV(L,IT+1))/LLV(L,IT+1)*100; ITJ:=EVERY(MAX(C,O)/IA<1.02 ,IT+1); IXL:=(ATAN((E25/REF(E25,IT)-1)*100)*180/3.1415926); ITJ1:=CROSS(DIF>=REF(DIF,H300),0.5) AND IZFF<17 AND IZF AND ITJ; ITJ2:=MIN(C,O)/E25>1.04; IXG:=ITJ1 AND IXL>75; LT8:=LLVBARS(L,60); LTT8:=BARSLAST(CURRBARSCOUNT=CONST(LT8)+1); HT8:=FINDHIGHBARS(H,LT8+1,60,1); A8:=DRAWLINE(CURRBARSCOUNT=CONST(HT8)+1,H,ISLASTBAR,REF(H,HT8),0); TT8:=BARSLAST(CURRBARSCOUNT=CONST(HT8)+1); AA8:=CROSS(C,CONST(A8)); TJ8:=COUNT(AA8,TT8+1)=1 AND AA8; TJ18:=COUNT(V<MA(V,277),TT8+1) ; BL8:=TJ18/(TT8+1)*100; XG8:=TJ8 AND TT8>40 AND BL8>70; XGT8:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(XG8))+1); ZH8:=REF(H,TT8); YL8:=REF(L,LTT8); XC8:=REF(C,XGT8); YZ8:=(XC8-YL8)/YL8*100; ZBL8:=YZ8/REF(LTT8,XGT8); XGA8:=XG8 AND ZBL8<2.95; SNH:=E120/E250*100-100; STA:=EVERY(SNH<3 AND E120>E250,20); STB:=CROSS(E20,MAX(E120,E250)); STC:=MIN(C,O)/E20<1.08; SXG:=STB AND STA AND STC; 联合选股:ZXG OR HXG OR XG OR WXG OR FXG OR QXG OR IXG OR XGA8 OR SXG OR DXG;



未来函数检测结果如下:
该公式包含未来函数:DHIGH

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

E13赋值:EXPMAC的13日指数移动平均
M8赋值:MAC的8日简单移动平均
M21赋值:MAC的21日简单移动平均
M233赋值:MAC的233日简单移动平均
E10赋值:EXPMAC的10日指数移动平均
ZZT赋值:C/1日前的C>1.095 AND C=H
ZA赋值:BARSLASTCOUNT(ZZT)
ZT赋值:上次ZA=3上穿0.5距今天数
ZLL赋值:REF(L,(ZT+2))
ZTJ:=C ZAA赋值:统计ZT+1日满足ZTJ的天数=1 AND ZTJ
ZTA赋值:上次ZAA距今天数
ZLT赋值:上次L=ZTA+1日内L最低值距今天数
ZTJ1:=C上穿E10
ZXG赋值:统计ZLT+1日满足ZTJ1的天数=1 AND ZTJ1 AND TOTALBARSCOUNT>200
HA赋值:M8/M21*100
HTJ赋值:BARSLASTCOUNT(RANGE(HA,99.9,100.3))
HHB赋值:MAXC和O较大值/C和O的较小值*100-100
HTJ1:=BARSLASTCOUNT(HHB<2)
HZF赋值:(5日内H最高值-5日内L最低值)/5日内L最低值*100
HDZF赋值:(H-L)/1日前的C*100
HTJ2:=COUNT(C和O的较小值/L>1.03,5)=0
HTJ3:=COUNT(H<1日前的L,5)=0
HTJ4:=C>M233
HXG赋值:HTJ>4 AND HTJ1>4 AND HZF<10 AND HTJ2 AND HTJ3 AND HTJ4
ZF赋值:(C-1日前的C)/1日前的C*100
TJ赋值:EVERY(RANGE(ZF,-2.22,2.55),15)
TJ1:=C>O AND C/1日前的C>1.03
TJ2:=COUNT(E13>=1日前的E13,15)
JD赋值:(ATAN((E13/15日前的E13-1)*100)*180/3.1415926)
A赋值:IF(C和O的较小值>E13,MAXC和O较大值/E13*100-100,IF(MAXC和O较大值 B赋值:MAXC和O较大值/C和O的较小值*100-100
LL赋值:15日内A最低值
HH赋值:15日内A最高值
HB赋值:统计15日满足BB>3的天数<2
XG赋值:1日前的TJ AND TJ1 AND TJ2>13 AND JD>72 AND 1日前的LL<1.37 AND 1日前的HH<11.15
WT赋值:上次WEEKOFYEAR!=1日前的WEEKOFYEAR距今天数
C1赋值:WT+1日前的C
C2赋值:WT+1日前的C1
C3赋值:WT+1日前的C2
C4赋值:WT+1日前的C3
C5赋值:WT+1日前的C4
C6赋值:WT+1日前的C5
C7赋值:WT+1日前的C6
C8赋值:WT+1日前的C7
C9赋值:WT+1日前的C8
WM10赋值:(C+C1+C2+C3+C4+C5+C6+C7+C8+C9)/10
E20赋值:EXPMAC的20日指数移动平均
E120赋值:EXPMAC的120日指数移动平均
E250赋值:EXPMAC的250日指数移动平均
WA赋值:MACD.DIF
WB赋值:MACD.DEA
WT1:=上次WA上穿WB距今天数
WST赋值:上次WB上穿WA距今天数
WZF赋值:(110日内H最高值-110日内L最低值)/110日内L最低值*100
WTJ赋值:EVERY(V>1日前的V,2)
WHH赋值:MAXMAXE20和E120较大值,E250)
WLL赋值:E20和E120的较小值,E250)
WNH赋值:WHH/WLL*100-100
WTJ1:=WNH<40最近25日一直存在
WZZF赋值:(C-10日前的C)/10日前的C*100
WTJA赋值:C>WM10
WXG赋值:WT1=0 AND WA M5赋值:MAC的5日简单移动平均
M10赋值:MAC的10日简单移动平均
M15赋值:MAC的15日简单移动平均
FTJ赋值:M5>1日前的M5 AND M10>1日前的M10 AND M15>=10日前的M15
FT赋值:上次FTJ上穿0.5距今天数
FTT:=上次WEEKOFYEAR!=1日前的WEEKOFYEAR距今天数
FHH赋值:MAXMAXM5和M10较大值,M15)
FLL赋值:M5和M10的较小值,M15)
FNH赋值:FHH/FLL*100-100
FZZF赋值:(C-FTT+1日前的C)/FTT+1日前的C*100
FZZF1:=FTT+1日前的FZZF
FTJ2:=FZZF>20上穿0.5 OR FZZF1>20上穿0.5
FJD赋值:(ATAN((M5/1日前的M5-1)*100)*180/3.1415926)
FTJA赋值:FZZF1>0 AND FZZF1>0
FDT赋值:M10/M15*100-100>1 AND H/MAXC和O较大值<1.03
FBL:=C和O的较小值/M5
FBL5:=M5/M10*100-100
FXG赋值:FTJ2 AND C=5日内C最高值 AND BETWEEN(FT,0,5)AND FTJA AND FNH<12 AND FDT AND FBL<1.045 AND FBL5<7.2 AND FJD<77.5
DTJ赋值:O>1日前的H AND C1日前的V
DTT赋值:上次1日前的ZA>1 AND DTJ距今天数
DXG赋值:COUNT(CROSS(C,DTT日前的H),DTT+1)=1 AND CROSS(C,DTT日前的H)
QT赋值:上次C>1日前的C*1.095 AND C=H距今天数
QTJ赋值:(C-QT+1日前的C)/QT+1日前的C*100
QTJ1:=C QTJ2:=COUNT(1日前的C/C>1.09,QT)>0 AND 1日前的C/C>1.09
QA赋值:QTJ>-1 AND QTJ1 AND QTJ2
QTA赋值:上次QA距今天数
QHH赋值:QTA日前的H
QTJ3:=EVERY(MAXC和O较大值 QTJ4:=C和O的较小值QHH AND COUNT(C和O的较小值QHH,QTA)=1
如果C1.007否则返回C>O
QXG赋值:QTJ4 AND QTJ5
DIF赋值:MACD.DIF
H300赋值:HHVBARS(DIF,300)
IA赋值:BOLL.UB
IT赋值:上次CROSS(IA>=1日前的IA,0.5距今天数)
E25赋值:EXPMAC的25日指数移动平均
IZF赋值:EVERY(RANGE(C/1日前的C,0.97,1.05),IT+1)
IZFF:=(IT+1日内H最高值-IT+1日内L最低值)/IT+1日内L最低值*100
ITJ赋值:EVERY(MAXC和O较大值/IA<1.02 ,IT+1)
IXL赋值:(ATAN((E25/IT日前的E25-1)*100)*180/3.1415926)
ITJ1:=CROSS(DIF>=H300日前的DIF,0.5) AND IZFF<17 AND IZF AND ITJ
ITJ2:=C和O的较小值/E25>1.04
IXG赋值:ITJ1 AND IXL>75
LT8赋值:LLVBARS(L,60)
LTT8赋值:上次CURRBARSCOUNT=CONST(LT8距今天数+1)
HT8赋值:FIND最高价BARS(H,LT8+1,60,1)
A8:=DRAWLINE(CURRBARSCOUNT=CONST(HT8)+1,H,ISLASTBAR,HT8日前的H,0)
TT8赋值:上次CURRBARSCOUNT=CONST(HT8距今天数+1)
AA8:=CROSS(C,CONST(A8))
TJ8:=统计TT8+1日满足AA8的天数=1 AND AA8
TJ18:=COUNT(V BL8:=TJ18/(TT8+1)*100
XG8:=TJ8 AND TT8>40 AND BL8>70
XGT8:=上次CURRBARSCOUNT=CONST(BARSLAST(XG8距今天数)+1)
ZH8赋值:TT8日前的H
YL8赋值:LTT8日前的L
XC8赋值:XGT8日前的C
YZ8赋值:(XC8-YL8)/YL8*100
ZBL8:=YZ8/XGT8日前的LTT8
XGA8:=XG8 AND ZBL8<2.95
SNH赋值:E120/E250*100-100
STA赋值:SNH<3 AND E120>E250最近20日一直存在
STB赋值:CROSS(E20,MAXE120和E250较大值)
STC赋值:C和O的较小值/E20<1.08
SXG赋值:STB AND STA AND STC
输出联合选股:ZXG OR HXG OR XG OR WXG OR FXG OR QXG OR IXG OR XGA8 OR SXG OR DXG

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图