通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
XX:=((((CLOSE-MA(CLOSE,34))/MA(CLOSE,34))*100)*5);
B001:=(((((CLOSE-MA(CLOSE,42))/MA(CLOSE,42)))*100)*5);
B002:=(((((CLOSE-MA(CLOSE,67))/MA(CLOSE,67)))*100)*5);
B003:=(((XX+B001)/2)-(B002));
B004:=(((0-100)*(HHV(HIGH,34)-CLOSE))/(HHV(HIGH,34)-LLV(LOW,34)));
B005:=(((0-100)*(HHV(HIGH,42)-CLOSE))/(HHV(HIGH,42)-LLV(LOW,42)));
B006:=(((0-100)*(HHV(HIGH,72)-CLOSE))/(HHV(HIGH,72)-LLV(LOW,72)));
B007:=EMA((((B004+B005)/2)-B006),6);
B008:=REF(CLOSE,1);
B009:=((((SMA(MAX((CLOSE-B008),0),19,1)/SMA(ABS((CLOSE-B008)),19,1))*100)-50)*1.25);
B010:=((((SMA(MAX((CLOSE-B008),0),34,1)/SMA(ABS((CLOSE-B008)),34,1))*100)-50)*1.25);
B011:=((((SMA(MAX((CLOSE-B008),0),72,1)/SMA(ABS((CLOSE-B008)),72,1))*100)-50)*1.25);
B012:=EMA(((((B009+B010)/2)-B011)*5),6);
B013:=((((0-1)*((B007+B003)+B012))/3)*1.5);
B014:=B012;
B015:=B013;
B016:=EMA(B012,4);
B017:=B012;
KKM1:=B013;
DPM1:=EMA(B013,4);
B018:=IF(CROSS(B017,KKM1),28,0);
VARX:=B017;
C023:=KKM1;
C024:=B016;
C025:=DPM1;
C026:=WINNER(CLOSE);
W:=(DMA(C026,((VOL/CAPITAL)*1))*100);
HWXWINNER:=W;
XD1:=EMA(W,6);
XWXMH:=XD1;
XD2:=MA(W,14);
:=2;
换手:=1;
低价:=1;
高价:=1000;
股本:=1000;
离线:=20;
深度:=50;
上涨:=30;
SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
:=VOL/CAPITAL*100;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
:=EMA(X,13);
AAA:=(3*C+L+O+H)/6;
C2:=EMA(AAA,6);
C3:=EMA(AAA,5);
:=EMA(CLOSE,17);
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT 1,1,SAT)*100;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2 0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
:=W4ANDCOUNT(W4,5)=1;
峰顶:=饱和度 =97ANDCQ
短期:=100*(C-LLV(L,N1))/(HHV(C,N1)-LLV(L,N1));
KAAAA:=EXIST(CROSS(C2,C3),2);
KAAA:=MA(VOL,10) MA(VOL,5);
KBBB:=EVERY(C 中线ANDO 中线,5);
KCCC:=HHV(VOL,20)/VOL
上涨天数:BARSLAST(短线
KDDD:=上涨天数
KEEE:=SUM(换手率,20)
KFFF:=C 低价ANDC
KGGG:=FINANCE(7)/1000000
KHHH:=EXIST(峰顶,20)OREXIST(突破,20);
KJJJ:=C/中线 1+0.01*离线;
KIII:=短期
VAR1:=WINNER(CLOSE);
VAR2:=VOL/CAPITAL;
VAR3:=VAR2/VAR1;
多头:B017,COLOR0000FF;
空头:KKM1,COLOR00FF00;
多均:B016;
空均:DPM1;
XD:5;
控盘:((HWXWINNER-XWXMH)*10),COLORSTICK,LINETHICK2;
STICKLINE(CROSS(多头,空均),0,50,8,0),COLORRED;
游资涨停:IF(KAAAAANDKBBBANDKCCCANDKDDDANDKEEEANDKFFFANDKHHH,100,0),COLORYELLOW,LINETHICK2;
天机资金:IF(KAAAANDKBBBANDKCCCANDKDDDANDKEEEANDKFFFANDKHHHANDKJJJANDKIII,70,0),COLORRED,LINETHICK2;
STICKLINE(游资涨停资金,0,30,5,0),COLORYELLOW;
STICKLINE(机构天机资金,0,20,5,0),COLORRED;
财神线:IF(VAR1 N1/100,VAR3,0),COLORRED,;
STICKLINE(财神线,0,财神线*1,0,0),COLORYELLOW,;
A1:=C/REF(C,1) 1.045;
A2:=C/HHV(H,34) 0.7;
A3:=MAX(FORCAST(COST(24)/L,3),SMA(COST(24)/L,3,1)) 1.526;
b:A1ANDA2ANDA3;
{抓涨停}BU:=BARSLAST(CLOSE=HHV(CLOSE,2000));SE:=BARSLAST(CLOSE=LLV(CLOSE,2000));KK1:=SE;KK2:=BU;DRAWICON(CROSS(KK1,KK2),OPEN*1,1);DRAWTEXT(CROSS(KK1,KK2),OPEN*0.99, 抓 ),colorFF00;A:POLYLINE(CLOSE COST(50),COST(20)),POINTDOT,color8800;B:POLYLINE(CLOSE COST(50),COST(80)),POINTDOT,color66CC00;T:=OPENMINUTES(TIME);CLOSE=DYNAINFO(7);总量:=SUM(VOL,T);总额:=SUM(AMOUNT,T);均价:=总额/(总量*100);次数:=COUNT(CLOSE 均价,T);占比:=次数/T*100;分时强势:DRAWICON(CROSS(CLOSE,均价)ANDCLOSE 均价AND占比 80ANDT 5,CLOSE*0.99,4);DRAWTEXT(CROSS(CLOSE,均价)andCROSS(KK1,KK2)andCROSS(CLOSE,COST(80)),CLOSE*0.995, 绝杀 ),COLORRED;
Var1:=WINNER(CLOSE*0.900)*100;
Var2:=VOL/CAPITAL*100;
Var3:=Var1-Var2;
Var4:=Var3 1;
Var5:=Var3 =1ANDVar3 5;
Var6:=Var3 =5ANDVar3 10;
Var7:=Var3 =10ANDVar3 25;
Var8:=Var3 =25;
极弱股:IF(Var4,(-10),0),colorwhite,STICK;
弱势股:IF(Var5,(-5),0),coloryellow,STICK;
转型股:IF(Var6,5,0),colormagenta,STICK;
强势股:IF(Var7,10,0),colorgreen,STICK;
主升浪:IF(Var8,15,0),colorffff00,STICK;
N:=3;
VAR1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
PH:MA(VAR1,3),COLORWHITE;
VAR2:=REF(LOW,5) REF(PH,5)ORREF(LOW,4) REF(PH,4)ORREF(LOW,3) REF(PH,3)ORREF(LOW,2) REF(PH,2)ORREF(LOW,1) REF(PH,1);
VAR3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR4:=VAR3 9.85ANDNOT(CLOSE=OPEN);
VAR5:=SUM(VAR4,N) 2ANDVAR4ANDCLOSE PHANDVAR2;
VAR6:=REF(CLOSE,BARSLAST(VAR5));
STICKLINE(CLOSE,VAR6,VAR6,4,0),COLORYELLOW;
VAR7:=VAR4ANDLOW PH*1.05;
DRAWICON(VAR5ANDVAR7,LOW*0.98,1);
DRAWICON(VAR5ANDVAR7,LOW*0.999,34);
VAR8:=LOW LLV(LOW,10)ANDVAR4ANDHIGH
DRAWICON(VAR8ANDVAR7,LOW*0.9,41);
STICKLINE(VAR3 9.85,OPEN,CLOSE,3.2,0),COLORRED;
公式解读:
[源码注释]通达信公式动态公式解读
公式解读:
公式解读:
每日通达信公式解答:
编写条件:
10天内最高价回落20%的公式。
编写方法:
XG:C/REF(H,HHVBARS(H,10)) =0.8;