当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:组合指标之王,组合了多个好指标(通达信公式 副图 源码 测试图)
软件名称:[B]组合指标之王,组合了多个好指标(通达信公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2022-06-21 00:15:37
软件简介:
组合指标之王
这个公式,是组合了多个很不错的公式而成。
振幅 1 8 3
量比 1 5 1
N 5 300 26
横盘分钟 1 240 30
判断横盘 1 100 2
源码如下:
振幅:=3;
量比:=1;
N:=5;
横盘分钟:=30;
判断横盘:=2;
{地量}
地量:(COUNT(V<MA(V,3)*0.4,2)>=1 OR V<REF(V,1)*0.5) AND V/CAPITAL<0.04;
{天量,N,26,5,300}
S1:=MA(C,120)<=REF(MA(C,120),1);
S2:=C<MA(C,120) AND C>MA(C,120)*0.90;
S3:=MA(C,5)<MA(C,120) AND MA(C,5)>REF(MA(C,5),1);
S4:=V/CAPITAL>0.03;
S6:=(H+L+C)/3;
S5:=SUM(MAX(0,H-REF(S6,1)),N)/SUM(MAX(0,REF(S6,1)-L),N)*100>175;
TJ1:=S1 AND S2 AND S3 AND S4 AND S5;
D1:=V>MA(V,5)*3.33 AND V>REF(V,1)*2.5;
D2:=V>MA(V,5)*2.5 AND MA(V,5)>MA(V,10) AND MA(V,10)>MA(V,30);
TJ2:=D1 OR D2 OR V>REF(MA(V,3),1)*4 OR 100*V/CAPITAL>10;
TJ3:=TJ2 AND MA(C,5)>REF(MA(C,5),1) AND 100*V/CAPITAL>1;
天量: (TJ1 OR TJ3)+1.5;
{回档}
AA1:=(MAX(C,O)+H)/2;
AA2:=(MIN(C,O)+L)/2;
A2:=C>=REF(C,2)+(REF(C,1)-REF(C,2))/REF(C,2)/4;
A3:=REF(C,1)>REF(C,2)*1.03 OR REF(C,1)>REF(C,3)*1.04 OR COUNT(REF(C,1)>REF(C,2),3)=3;
A4:=(AA1-AA2)/REF(C,1)<0.04 AND (C-REF(C,1))/REF(C,1)<=0.75*(REF(C,1)-REF(C,2))/REF(C,2);
A5:=(AA1-AA2)/REF(C,1)<0.6*(REF(C,1)-REF(C,2))/REF(C,2);
A6:=(REF(H,1)-REF(C,1))<(REF(C,1)-REF(C,2))*1.5 AND REF(C,1)>=REF(O,1);
回档:(A2 AND A3 AND A4 AND A5 AND A6)+3;
{回调整理,参数设置1:振幅:1-8,默认值3.参数设置2:量比:1-5,默认值1.}
H1:=CLOSE>MA(CLOSE,5);
H2:=MA(CLOSE,10) > MA(CLOSE,5);
H3:=MA(CLOSE,10) > MA(CLOSE,30);
H4:=MA(CLOSE,30) > REF(MA(CLOSE,30),1);
H5:=MA(CLOSE,10) > REF(MA(CLOSE,10),1);
HP3R:=(HHV(HIGH,3)-LLV(LOW,3))/LLV(LOW,3) < 振幅/100;
HP4R:=(HHV(HIGH,4)-LLV(LOW,4))/LLV(LOW,4) < 振幅/100;
HP5R:=(HHV(HIGH,5)-LLV(LOW,5))/LLV(LOW,5) < 振幅/100;
HP6R:=(HHV(HIGH,6)-LLV(LOW,6))/LLV(LOW,6) < 振幅/100;
HP7R:=(HHV(HIGH,7)-LLV(LOW,7))/LLV(LOW,7) < 振幅/100;
HP8R:=(HHV(HIGH,8)-LLV(LOW,8))/LLV(LOW,8) < 振幅/100;
HP9R:=(HHV(HIGH,9)-LLV(LOW,9))/LLV(LOW,9) < 振幅/100;
HP10R:=(HHV(HIGH,10)-LLV(LOW,10))/LLV(LOW,10) < 振幅/100;
HP11R:=(HHV(HIGH,11)-LLV(LOW,11))/LLV(LOW,11) < 振幅/100;
HP12R:=(HHV(HIGH,12)-LLV(LOW,12))/LLV(LOW,12) < 振幅/100;
HP312:=HP3R OR HP4R OR HP5R OR HP6R OR HP7R OR HP8R OR HP9R OR HP10R OR HP11R OR HP12R;
V3R:=LLV(VOL,3) / HHV(VOL,20) < 量比/10;
V4R:=LLV(VOL,4) / HHV(VOL,20) < 量比/10;
V5R:=LLV(VOL,5) / HHV(VOL,20) < 量比/10;
V35R:=V3R OR V4R OR V5R;
回调: (H1 AND H2 AND H3 AND H4 AND H5 AND HP312 AND V35R)+4.5;
{短暂整理}
Z1:=REF(回档,1)-3;
Z2:=(C-REF(C,1))/REF(C,1)<0.03 AND (H-L)/REF(C,1)<0.06;
X1:=Z1 AND Z2;
X2:=REF(X1,1)=1 AND (C-REF(C,1))/REF(C,1)<0.03 AND (H-L)/REF(C,1)<0.06 ;
X3:=SLOPE(MA(C,5),2)>0.03;
短暂整理: ((X1 OR X2) AND X3 AND C>MA(C,13))+6;
{强势整理}
LA2:=COUNT(ABS(C-O)/O<0.015,2)=2;
LA3:=REF(O,2)<REF(C,2) AND REF(C,2)/REF(C,3)>0.06;
强势之整理: (LA2 AND LA3)+7.5;
{横盘,横盘分钟,30,1,240}
昨日:=IF(HOUR=14,FLOOR((180+MINUTE)/5),
IF(HOUR=13,FLOOR((120+MINUTE)/5),
IF(HOUR=11 AND MINUTE<=30,FLOOR((90+MINUTE)/5),
IF(HOUR=10,FLOOR((30+MINUTE)/5),
IF(HOUR=9 AND MINUTE>=30,FLOOR((MINUTE-30)/5),47)))));
MN:=CEILING(横盘分钟/5);
MAOC:=MA(O+C,MN)/2;
分时横盘:(ABS((REF(C,昨日)-C)/C)<0.03 AND COUNT((H-L)/MAOC>0.01,MN)<=1)+9;
{判断是否存在横盘}
是否横盘: IF(COUNT(分时横盘=10,判断横盘)>0,7,11);
[url=http://www.70822.com/soft/sort013/sort05/down-162937.html]组合指标之王,组合了多个好指标(通达信公式 副图 源码 测试图)[/url]