分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册
当前位置:分析家公式网股票公式通达信公式 → 一键转帖:自用指标

软件名称:[B]自用指标[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:23.0 KB
官方主页:Home Page
更新时间:2013-07-06 02:02:37
软件简介:

自用指标 ,通达信公式编辑器4.17版以上适用

A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); 
B1:=FILTER(A1,3); 
C1:=BACKSET(B1,3+1); 
D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,2*3+1); 
B2:=FILTER(A2,3); 
C2:=BACKSET(B2,3+1); 
D2:=FILTER(C2,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; 
E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
H2:=D1 AND NOT(D2 AND E1>=E2);
L1:=D2 AND NOT(D1 AND E1=E2);
QX1:=REF(BARSLAST(H1),1)+1; 
F1:=BACKSET(H1 AND COUNT(L1,QX1)>0,LLVBARS(IF(L1,LOW,10000),QX1));
G1:=F1>REF(F1,1); 
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
QX2:=REF(BARSLAST(L2),1)+1; 
F2:=BACKSET(L2 AND COUNT(H2,QX2)>0,HHVBARS(IF(H2,HIGH,0),QX2));
G2:=F2>REF(F2,1); 
I2:=BACKSET(G2,2); 
HD:=I2>REF(I2,1);{过滤后高点}
J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1); 
J2:=J1>REF(J1,1);
A3:=H; B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));
D3:=A3 AND B3 AND HD; 
E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2); 
HH:=E3>REF(E3,1);{找出全部长期高点}
A4:=L>REF(L,REF(BARSLAST(LD),1)+1);
B4:=REF(L,REF(BARSLAST(LD),1)+1); D4:=A4 AND B4 AND LD; E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2); LL:=E4>REF(E4,1);{找出全部长期低点}

H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1; {后面进行过滤,方法同前。只是不用考虑高低点出现在同一K线}
QX3:=REF(BARSLAST(H3),1)+1; 
F3:=BACKSET(H3 AND COUNT(LL,QX3)>0,LLVBARS(IF(LL,L,POW(10,20)),QX3));
G3:=F3>REF(F3,1);  
I3:=BACKSET(G3,2);  
LZ:=I3>REF(I3,1); {长期低点,也可供引用}
L4:=LZ OR ISLASTBAR OR BARSCOUNT(C)=1;
QX4:=REF(BARSLAST(L4),1)+1; 
F4:=BACKSET(L4 AND COUNT(HH,QX4)>0,HHVBARS(IF(HH,H,-POW(10,20)),QX4));
G4:=F4>REF(F4,1);  
I4:=BACKSET(G4,2);  
HZ:=I4>REF(I4,1);{长期高点,也可供引用}
K1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HZ),BARSLAST(LZ))+1); 
K2:=K1>REF(K1,1);
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
前一低:REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK1;
前二低:REF(L,BARSLAST(XX)),COLOR99FF66,LINETHICK1;
前一高:REF(H,BARSLAST(VV2)),COLORCYAN,LINETHICK1;
前二高:REF(H,BARSLAST(XX2)),COLORCYAN,LINETHICK1; 
DRAWLINE(XX,L,VV,L,1),COLORMAGENTA,LINETHICK1;
DRAWLINE(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK1;
{DRAWTEXT(CURRBARSCOUNT=5,前一低*0.995,'前一低'),COLOR99FF66;
DRAWTEXT(CURRBARSCOUNT=5,前二低*0.995,'前二低'),COLOR99FF66;
DRAWTEXT(CURRBARSCOUNT=1,前一高*1.01,'前一高'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,前二高*1.01,'前二高'),COLORCYAN;}
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);

缩头:=IF(MACD>0 AND REF(MACD,1)>REF(MACD,2) AND MACD< REF(MACD,1),1,0);
缩脚:=IF(MACD<0 AND REF(MACD,1)< REF(MACD,2) AND MACD>REF(MACD,1),1,0);
QB1:=REF(MACD,1)>LLV(MACD,30) AND COUNT(L,3)<=LLV(30,L);
QB2:=COUNT(MACD>0,10)>=1  AND COUNT(DIF<0,30)>20;
DRAWTEXT(缩脚 AND QB1 AND QB2,L*0.97,'离');

DIFZ:=EMA(C,12)-EMA(C,26);
DEAZ:=EMA(DIFZ,9);
MACDZ:=2*(DIFZ-DEAZ);

零轴:=DYNAINFO(3)*1.25,COLORFFFFFF;
STICKLINE(MACDZ>0,MACDZ*2+零轴,零轴,0,0),COLORYELLOW;
STICKLINE(MACDZ>0 AND MACDZ>REF(MACDZ,1),MACDZ*2+零轴,零轴,0,0),COLOR0000FF;
STICKLINE(MACDZ<0,MACDZ*2+零轴,零轴,0,0),COLOR00D900;
STICKLINE(MACDZ<0 AND MACDZ>REF(MACDZ,1),MACDZ*2+零轴,零轴,0,0),COLORC080FF;
ZDIF:(DIFZ*2+零轴),COLORRED;
(DEAZ*2+零轴),COLORFFFFFF;
IF(DIFZ<=REF(DIFZ,1),DIFZ*2+零轴,DRAWNULL),COLORFFF000;
{BIAS}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VR4:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(VR4,3);
STICKLINE(CROSS(VR4,乖离) AND 乖离<-9,L*0.96,L*0.98,2,0),COLORRED;
DRAWTEXT( C>O AND REF(乖离<-18,1) ,L*0.97,'坑'),COLORGREEN;
中乖:IF(BIAS2>=10,零轴*1.04,零轴),COLORYELLOW,DOTLINE;
长乖:IF(BIAS3>=16,零轴*1.06,零轴),COLORRED,DOTLINE;
中跌:IF(BIAS2<=-10,零轴*0.94,零轴),COLORYELLOW,DOTLINE;
长跌:IF(BIAS3<=-16,零轴*0.96,零轴),COLORLIRED,DOTLINE;
DRAWTEXT(C>O && MA(C,5)<MA(C,10) && REF(C<O,1) && REF(C<O,2)&&REF(C<O,3)&&(REF(C,1)<REF(C,4)*0.88 OR REF(C,1)<REF(O,4)*0.88),H*1.02,'阴'),COLORWHITE;
DRAWTEXT(C>REF(L,1) AND COUNT(C<O,5)>=3 &&(REF(C,1)<REF(C,4)*0.88 OR REF(C,1)<REF(O,4)*0.88),H*1.02,'阴'),COLORWHITE;

HH0:=CONST(HHV(H,120))*1;
LL0:=CONST(LLV(L,120))*1;
MM0:=CONST((HH0+LL0)/2);
HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.2),COLORRED;
LL1:=LL0;HLMAX:=MAX(HH1,LL1);
HLMIN:=MIN(HH1,LL1);
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=(HLMAX-HLMIN);
HLMN3:=HHV(V,250)/2;
HLMN4:=HHV(V,250);
VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;
STICKLINE(C>O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,1),COLORRED;
STICKLINE(C<=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORCYAN;
{(MA(V,5)-HLMN3)*HLMN2/HLMN4+HLMN1,COLORFFFFFF;
(MA(V,10)-HLMN3)*HLMN2/HLMN4+HLMN1,COLOR00FFFF;}
超卖:IF(RSI<20,VZ*1.08,(0-HLMN3)*HLMN2/HLMN4+HLMN1),COLORGREEN;


DRAWTEXT_FIX(CURRBARSCOUNT=1 AND C,0.12,0.72,0,'RSI等于'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND C,0.2,0.72,0,RSI);
Q1:=COUNT(RSI<20,15)>=1;
Q2:=C<=LLV(C,15);
Q3:=RSI>LLV(RSI,15);
Q4:=V<REF(V,1);
DRAWTEXT(Q1 AND Q2 AND Q3 AND Q4  AND REF(C<O,1),L*0.97,'背'),COLORRED;
STICKLINE(Q1 AND Q2 AND Q3 AND Q4 AND REF(C<O,1) ,H*1.03,L*0.98,0,-1),COLORYELLOW;
Q5:=IF(Q1 AND Q2 AND Q3 AND Q4,1,0);
DRAWTEXT(RSI>REF(RSI,1) AND REF(Q5=1 ,1),L*0.95,'背'),COLORYELLOW;
STICKLINE(RSI>REF(RSI,1) AND REF(Q5=1 ,1) ,H*1.03,L*0.98,0,-1),COLORYELLOW;
Z1:=H>=HHV(H,55);
Z3:=COUNT(RSI>80,55)>=1 AND HHVBARS(RSI,0);
Z2:=RSI<HHV(RSI,55);
DRAWTEXT(Z1 AND Z2 AND Z3,H*1.02,'背'),COLORGREEN;

DRAWRECTREL(0,0,350,400,RGB(1,1,0));
涨停板 :=CLOSE/REF(CLOSE,1)>1.097;
跌停板 :={CLOSE<=OPEN AND} CLOSE/REF(CLOSE,1)<0.91;
K线实体 :=ABS(CLOSE-OPEN);
阳线   :=CLOSE>OPEN OR 涨停板;
带下影阳线:=(阳线 OR 涨停板) AND (CLOSE-LOW)>1.6*(CLOSE-OPEN);
光脚阳线:=阳线 AND (OPEN-LOW)<0.36*(CLOSE-OPEN);
中阳线 :=CLOSE/OPEN>1.030;
短上影阳线:=阳线 AND (HIGH-CLOSE)<(HIGH-OPEN)*0.34;

中阴线 :=CLOSE/REF(CLOSE,1)<0.970;
平盘   :=CLOSE=OPEN;
评台整理:=HHV(CLOSE,5)/LLV(OPEN,5)<1.08;
MA1:= EMA(C,5);
MA2:= EMA(C,10);
MA3:= EMA(C,20);
MA4:= EMA(C,30);
MA5:= MA(C,120);
MID := MA(CLOSE,26);
UPPER:=MID + 20/10*STD(CLOSE,26);
LOWER:=MID - 20/10*STD(CLOSE,26);

多头排列:=MA1>MA2 AND MA2>MA3 AND MA2>MA4 AND MA4>REF(MA4,5);
空头排列:=MA1<MA2 AND MA2<MA3 AND MA3<MA4;
上升趋势:=MA4>REF(MA4,3) AND MA4>REF(MA4,1) AND MA1>MA4;
下跌趋势:=MA4<REF(MA4,3) AND MA4<REF(MA4,1) AND MA1<MA4;
一阴穿两线:=CLOSE/OPEN<0.985 AND HIGH>MA1 AND CLOSE<MA3;
一阳穿两线:=CLOSE/OPEN>1.016 AND LOW<MIN(MA1,MA3) AND CLOSE>MAX(MA1,MA3);
均线密集:=上升趋势 AND (MAX(MA1,MA4)/MIN(MA1,MA4))<1.01 AND MA1>MA2;
均线发散程度:=MA1/MA4;
均线向下发散:=空头排列 AND 均线发散程度<0.90 AND 均线发散程度<0.99*REF(均线发散程度,1);
均线向上发散:=多头排列 AND 均线发散程度>1.070 AND 均线发散程度>(1.013*REF(均线发散程度,1));
上升趋势形成:=上升趋势 AND MA1>REF(MA1,1) AND REF(NOT(上升趋势),1);
五日总涨幅:=SUM((C-REF(C,1))/REF(C,1)*100,5)<1;
下影线:=(H-L)/L*100>5 AND (MIN(O,C)-L)/L*100>5;

AA:=REF(C,1)<REF(O,1);
BB:=C<REF(O,1);
BB1:=IF(C>O,O,C);
CC:=(BB1-L)/L>0.05;
T1{双针探底Q}:=CONST(IF((COUNT((MIN(O,C)-L)/L*100>3,2)=2 AND REF(C<MA(C,5),1)),1,0));
AA1:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.66 ;
T2{双针Q}:=CONST(IF((AA1 AND REF(AA1,1)  AND MAX(C,REF(C,1))/MIN(C,REF(C,1))<1.005 AND REF(C<MA(C,5),1)),1,0));
T3{单针探底}:=CONST(IF((MIN(C,O)<MA(C,5) AND (MIN(C,O)-L)/O>0.05
[url=http://www.70822.com/soft/sort013/sort05/down-56177.html]自用指标[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:78.12500 毫秒