通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信凹口倍量单枪的选股公式
N:=20;
N1:=7;
N2:=69;
T1:=IF((DATE<=1990314),1,0);
M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),COLOR008000;
M13:EMA(M8,13),COLOR0000FF;
M62:EMA(M8,55),COLORF0F000;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),COLOR00FFFF;
M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6)AND(VOL>=(1.5)*(MA(VOL,5)))ANDCOUNT((VARE>=VARF),3)AND(REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6)ANDCOUNT((VARE>VARF),6)AND(REF(LOW,5)=LLV(LOW,120))ANDREF((CLOSE>=OPEN),4)ANDREF((CLOSE>OPEN),3)ANDREF((CLOSE>OPEN),2)ANDREF((OPEN>CLOSE),1)AND(OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10)AND((VOL)/(240)>(MA(VOL,5))/(240))AND(CLOSE>(REF(CLOSE,1))*(1.08))AND(CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;
DRAWTEXT(HIGH>=REF(CLOSE,1)*1.095,HIGH,'涨停'),COLORmaGENTA;
stICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLORGREEN;
DRAWTEXT(REF(CLOSE,1)>=LOW*1.095,LOW,'跌停'),COLORGREEN;
A:=((REF(H,1)-REF(L,1))/2+REF(L,1));
B:=IF(A,A,REF(A,BArslAST(A)));
D:STICKLINE(BARSLAST(A)+1ORA,B,B,10,0);
黄金柱:=V/REF(V,1)>=1.9;
K1:=SUMBARS(黄金柱,1);
K2:=SUMBARS(黄金柱,2);
K3:=SUMBARS(黄金柱,3);
K4:=SUMBARS(黄金柱,4);
K5:=SUMBARS(黄金柱,5);
K6:=SUMBARS(黄金柱,6);
K7:=SUMBARS(黄金柱,7);
K8:=SUMBARS(黄金柱,8);
K9:=SUMBARS(黄金柱,9);
K10:=SUMBARS(黄金柱,10);
AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;
M1:=2*10;M2:=4*10;M3:=8*10;
A0:=REF(H,M3)=HHV(H,2*M3+1);
B0:=FILTER(A0,M3);
C0:=BacKSET(B0,M3+1);
D0:=FILTER(C0,M3);{高点}
R01:=BACKSET(ISLASTBAR,BARSLAST(D0)+1);S01:=R01>REF(R01,1);
DRAWLINE(D0,H,S01,H,1),COLORGREEN,LINETHICK1;
A02:=REF(L,M3)=LLV(L,2*M3+1);
B02:=FILTER(A02,M3);
C02:=BACKSET(B02,M3+1);
D02:=FILTER(C02,M3);{低点}
T011:=BACKSET(ISLASTBAR,BARSLAST(D02)+1);U011:=T011>REF(T011,1);
DRAWLINE(D02,L,U011,L,1),COLORGREEN;
A1:=REF(H,M1)=HHV(H,2*M1+1);
B1:=FILTER(A1,M1);
C1:=BACKSET(B1,M1+1);
D1:=FILTER(C1,M1);{高点}
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);S11:=R11>REF(R11,1);
DRAWLINE(D1,H,S11,H,1),COLORBLUE;
A2:=REF(L,M1)=LLV(L,2*M1+1);
B2:=FILTER(A2,M1);
C2:=BACKSET(B2,M1+1);
D2:=FILTER(C2,M1);{低点}
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11>REF(T11,1);
DRAWLINE(D2,L,U11,L,1),COLORBLUE;
A12:=REF(H,10)=HHV(H,2*10+1);
B12:=FILTER(A12,10);
C12:=BACKSET(B12,10+1);
D12:=FILTER(C12,10);{高点}
R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1);S112:=R112>REF(R112,1);
DRAWLINE(D12,H,S112,H,1),COLORRED;
A22:=REF(L,10)=LLV(L,2*10+1);
B22:=FILTER(A22,10);
C22:=BACKSET(B22,10+1);
D22:=FILTER(C22,10);{低点}
T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1);U112:=T112>REF(T112,1);
DRAWLINE(D22,L,U112,L,1),COLORRED;
A32:=REF(H,M2)=HHV(H,2*M2+1);
B32:=FILTER(A32,M2);
C32:=BACKSET(B32,M2+1);
D32:=FILTER(C32,M2);{高点}
R312:=BACKSET(ISLASTBAR,BARSLAST(D32)+1);S312:=R312>REF(R312,1);
DRAWLINE(D32,H,S312,H,1),COLORYELLOW;
A322:=REF(L,M2)=LLV(L,2*M2+1);
B322:=FILTER(A22,M2);
C322:=BACKSET(B22,M2+1);
D322:=FILTER(C22,M2);{低点}
T312:=BACKSET(ISLASTBAR,BARSLAST(D322)+1);U312:=T312>REF(T312,1);
DRAWLINE(D322,L,U312,L,1),COLORYELLOW;
STICKLINE(C<0.905*REF(C,1),C,O,3,0),COLORGREEN;
STICKLINE(C>1.095*REF(C,1),C,O,3,0),COLORYELLOW;
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1ANDC>REF(C,1);
LJL:=FILTER(TJ1,3);
黄金柱:=FILTER(TJ1,3);
P:=REF(VOL,6)/REF(VOL,7)>=2;
G:=REF(VOL,5)/REF(VOL,6)>=2;
F:=REF(VOL,5)/REF(VOL,4)>=1.5;
E:=REF(VOL,4)/REF(VOL,3)>=1.5;
D:=REF(VOL,2)/REF(VOL,3)>=1.5;
B:=V/REF(VOL,1)>2;
A:=C>OANDC>REF(C,1);
凹口起柱:=PANDBANDAORGANDBANDAORFANDBANDAOREANDBANDA
ORDANDBANDA;
{凹口起柱}
K:=黄金柱AND凹口起柱;
[源码注释]通达信公式动态翻译结果
输出XG:平滑异同平均的MACD>0上穿0.5
每日通达信公式解答:
编写条件:
周线涨幅的选股公式。
编写方法:
N:=30;{N调涨幅}
XG:(C#WEEK/REF(C#WEEK,1)-1)*100>N;
评论(0)