通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
LONG:=26;
SHORT:=12;
M:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,M),colorblue,LINETHICK3;
MACD:2*(DIF-DEA),COLORSTICK;
A4:=BARSLAST(REF(CROSS(dif,dea),1));
B1:=REF(C,A4+1)CANDREF(dif,A4+1)
DRAWTEXT(FILTER(B10,5),dif+0.2, ),coloryellow;
VAR1C:=(HIGH-MIN(OPEN,CLOSE));
VAR2C:=(CLOSE-OPEN);
VAR3C:=(MIN(OPEN,CLOSE)-LOW);
VAR4C:=(HIGH-LOW);
VAR5C:=((VOL*VAR1C)/VAR4C);
VAR6C:=((VOL*VAR2C)/VAR4C);
VAR7C:=((VOL*VAR3C)/VAR4C);
VAR8C:=((VAR5C-VAR6C)-VAR7C);
VAR4:=MA(CLOSE,5);
VAR5:=MA(CLOSE,10);
VAR6:=MA(CLOSE,30);
VAR7:=MA(CLOSE,60);
VAR8:=EMA(COST(85),7);
VAR9:=EMA(COST(15),7);
VARA:=(SUM(((CLOSE*VOL)*10),4)/SUM((VOL*200),4));
VARB:=(INTPART((VARA*10))/10);
VARC:=(SUM(((CLOSE*VOL)*10),7)/SUM((VOL*200),7));
VARD:=(INTPART((VARC*10))/10);
VARE:=(SUM(((CLOSE*VOL)*10),28)/SUM((VOL*200),28));
VARF:=(INTPART((VARE*10))/10);
:(EMA(CLOSE,5)-EMA(CLOSE,10)),colormagenta,LINETHICK2;
趋势:EMA(短线趋势,9),colormagenta,LINETHICK3;
VAR10:=((0-((10*(HHV(CLOSE,5)-CLOSE))/(HHV(CLOSE,5)-LLV(LOW,5))))+10);
VAR11:=((0-((10*(HHV(CLOSE,10)-CLOSE))/(HHV(CLOSE,10)-LLV(LOW,10))))+10);
VAR12:=((0-((10*(HHV(CLOSE,20)-CLOSE))/(HHV(CLOSE,20)-LLV(LOW,20))))+10);
VAR13:=((0-((10*(HHV(CLOSE,30)-CLOSE))/(HHV(CLOSE,30)-LLV(LOW,30))))+10);
VAR14:=REF(中线趋势,1);
VAR15:=中线趋势;
VAR16:=(VAR15-VAR14);
VAR17:=REF(短线趋势,1);
VAR18:=短线趋势;
VAR19:=(VAR18-VAR17);
VAR1A:=OPEN;
VAR1B:=CLOSE;
短线指标:IF(((((CROSS(短线趋势,中线趋势)AND(短线趋势0))AND(中线趋势(0-0.2)))AND(VAR1145))AND(VAR160)),0.3,0.1),COLOR66FF00;
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C0.01,1,0);
STICKLINE(涨停,OPEN,CLOSE,6,0),colorred;
STICKLINE(涨停,OPEN,CLOSE,6,0),coloryellow;
STICKLINE(涨停,H,L,0,0),coloryellow;
DRAWTEXT(均价线AND涨停,H*0.98, ┄┄┄┄┄ ),colorgreen;
DRAWTEXT((O+C)/2AND涨停,(O+C)/2, ┄┄┄┄┄ ),colormagenta;
DRAWTEXT(涨停,L, ┄┄┄┄┄ ),colorgray;
MA13:MA(C,13),colorgray;
MA21:=MA(C,21),colorwhite;
MA30:=MA(C,30);
PARTLINE(MA30,MA30=MA30[1]ANDMA30=MA30[3],RGB(255,0,0),MA30=MA30[1],RGB(0,255,0)),linethick2;
支撑线:((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4),colormagenta;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
线:=20;
绝底线:=5;
PP2:=操作线震仓线2ANDREF(操作线,1)震仓线2;
PP:=操作线震仓线ANDREF(操作线,1)震仓线;
PP3:=操作线抄底线ANDREF(操作线,1)抄底线;
HH:=COUNT(涨停,13)=1;
STICKLINE(PP2ANDHH,OPEN,CLOSE,4.8,0),colorblue;
STICKLINE(PPANDHH,OPEN,CLOSE,4.8,0),colorblue;
STICKLINE(PP3ANDHH,OPEN,CLOSE,4.8,0),colorblue;
A:=SMA(L,4,3);
STICKLINE(AANDREF(PP,1)ANDHH,A*0.9999,A*0.996,14,0),colorgreen;
DRAWICON(AANDREF(PP,1)ANDHH,L*0.98, buy
STICKLINE(AANDREF(PP3,1)ANDHH,A*0.9999,A*0.996,14,0),colorgreen;
DRAWICON(AANDREF(PP3,1)ANDHH,L*0.98, buy
HD:=COUNT(涨停,21)=1;
A1:=SMA(H,4,3);
STICKLINE(A1ANDHD,A1,A1*1.001,10,0),colorwhite;
CN1:=HHV(V,5);CN2:=OC;CN02:=CO;CN03:=C=O;
CN04:=((SUM(V,5)/CN1));CN05:=IF(CN040.3,1,0);
CN06:=IF(CN2ANDCN05,V,0);CN07:=IF(CN02ANDCN05,V,0);
CN08:=IF(CN03ANDCN05,V,0);
AD:SUM(CN07,3),coloryellow;DA:=SUM(CN06,3);
AZ:(AD-DA),COLOR0000FF;AF:=AZ=AD;
FS:0,colorgray;
A:MA(CLOSE,26);
UP:A+2*STD(CLOSE,26);
LOWER:A-2*STD(CLOSE,26);
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W20,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
DRAWICON(W4ANDCOUNT(W4,5)=1,LOW,3);
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C0.01,1,0);
STICKLINE(涨停,OPEN,CLOSE,6,0),colorred;
STICKLINE(涨停,OPEN,CLOSE,6,0),coloryellow;
STICKLINE(涨停,H,L,0,0),coloryellow;
DRAWTEXT(均价线AND涨停,H*0.98, ┄┄┄┄┄ ),colorgreen;
DRAWTEXT((O+C)/2AND涨停,(O+C)/2, ┄┄┄┄┄ ),colormagenta;
DRAWTEXT(涨停,L, ┄┄┄┄┄ ),colorgray;
MA13:MA(C,13),colorgray;
MA21:=MA(C,21),colorwhite;
MA30:=MA(C,30);
PARTLINE(MA30,MA30=MA30[1]ANDMA30=MA30[3],RGB(255,0,0),MA30=MA30[1],RGB(0,255,0)),linethick2;
支撑线:((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4),colormagenta;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线震仓线2ANDREF(操作线,1)震仓线2;
PP:=操作线震仓线ANDREF(操作线,1)震仓线;
PP3:=操作线抄底线ANDREF(操作线,1)抄底线;
HH:=COUNT(涨停,13)=1;
STICKLINE(PP2ANDHH,OPEN,CLOSE,4.8,0),colorblue;
STICKLINE(PPANDHH,OPEN,CLOSE,4.8,0),colorblue;
STICKLINE(PP3ANDHH,OPEN,CLOSE,4.8,0),colorblue;
A:=SMA(L,4,3);
STICKLINE(AANDREF(PP,1)ANDHH,A*0.9999,A*0.996,14,0),colorgreen;
DRAWICON(AANDREF(PP,1)ANDHH,L*0.98, buy
STICKLINE(AANDREF(PP3,1)ANDHH,A*0.9999,A*0.996,14,0),colorgreen;
DRAWICON(AANDREF(PP3,1)ANDHH,L*0.98, buy
HD:=COUNT(涨停,21)=1;
A1:=SMA(H,4,3);
STICKLINE(A1ANDHD,A1,A1*1.001,10,0),colorwhite;
A:CLOSE/REF(CLOSE,1)=1.1;
:VOL/REF(VOL,1)2.5;
:VOL/CAPITAL*10015;
股价:C7ANDC20;
流通盘:CAPITAL10000*0.3ANDCAPITAL10000*0.8;
XG:AAND成交量AND换手率AND股价AND流通盘;