通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信金蜘蛛均线粘合选股指标公式
M1:=5;M2:=10;M3:=20;M4:=60;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1);
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
ZB:=EMA(EMA(VAR3,5),5)*3,COLORSTICK;
VAR8:=IF(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);
VARA:=IF(VAR9ANDCROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2,,COLORFF00FF;
D:=EMA(K,5),,COLORWHITE;
J:=K*3-D*2,,COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5))ANDJ>10;
HS:=VOL/CAPITAL*100,,COLORGREEN;
DRAWTEXT(VAR8=10ANDFILTER(VAR8=10,5),LOW*0.93,'接近底部')COLORMAGENTA;
DRAWTEXT(VARA=20,LOW*0.95,'底部')COLORYELLOW;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,LOW*0.95,'大资金活动'),LINETHICK1,COLORFF00FF;
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60),COLORGREEN,DOTLINE;
MA120:MA(CLOSE,120),COLORRED,DOTLINE;
MA250:MA(CLOSE,250),COLORBLUE,DOTLINE;
STICKLINE(C/REF(C,1)>1.099ANDC=H,O,C,-1,1),COLORWHITE;
三合:(MAX(MAX(MA(C,5),MA(C,10)),MA(C,20))/MIN(MIN(MA(C,5),MA(C,10)),MA(C,20))-1)*100,NODRAW;
四合:(MAX(MAX(MAX(MA(C,5),MA(C,10)),MA(C,20)),MA(C,60))/MIN(MIN(MIN(MA(C,5),MA(C,10)),MA(C,20)),MA(C,60))-1)*100,NODRAW;
五合:(MAX(MAX(MAX(MAX(MA(C,5),MA(C,10)),MA(C,20)),MA(C,60)),MA(C,120))/MIN(MIN(MIN(MIN(MA(C,5),MA(C,10)),MA(C,20)),MA(C,60)),MA(C,120))-1)*100,NODRAW;
六合:(MAX(MAX(MAX(MAX(MAX(MA(C,5),MA(C,10)),MA(C,20)),MA(C,60)),MA(C,120)),MA(C,250))/MIN(MIN(MIN(MIN(MIN(MA(C,5),MA(C,10)),MA(C,20)),MA(C,60)),MA(C,120)),MA(C,250))-1)*100,NODRAW;
A:=C>REF(HHV(H,2),1);
B:=C<REF(LLV(L,2),1);
ENTERLONG:=TFILTER(A,B,1);
EXITLONG:=TFILTER(A,B,2);
DRAWICON(ENTERLONG,L*0.98,1),COLORRED;
DRAWICON(EXITLONG,H/0.998,2),COLORGREEN;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150ANDVAR13<200ANDVAR14>=150ANDVAR14<200,10,0);
VAR16:=IF(VAR13<=-150ANDVAR13>-200ANDVAR14<=-150ANDVAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200ANDVAR13>=150,15,IF(VAR14<=-200ANDVAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48ANDVAR1B>60ANDVAR19<100;
DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,LOW*0.95,'大笔成交')COLORWHITE;
MA3:=MA(CLOSE,3);
MA5:=MA(CLOSE,5);
MA8:=MA(CLOSE,8);
MA13:=MA(CLOSE,13);
MA21:=MA(CLOSE,21);
MA30:=MA(CLOSE,30);
MA34:=MA(CLOSE,34);
MA55:=MA(CLOSE,55);
MA60:=MA(CLOSE,60);
MA90:=MA(CLOSE,90);
MA125:=MA(CLOSE,125);
JC1:=CROSS(MA3,MA5);
JC2:=CROSS(MA3,MA8);
JC3:=CROSS(MA3,MA13);
JC4:=CROSS(MA3,MA21);
JC5:=CROSS(MA3,MA30);
JC6:=CROSS(MA3,MA34);
JC7:=CROSS(MA3,MA55);
JC8:=CROSS(MA3,MA60);
JC9:=CROSS(MA3,MA90);
JC10:=CROSS(MA3,MA125);
JC11:=CROSS(MA5,MA8);
JC12:=CROSS(MA5,MA13);
JC13:=CROSS(MA5,MA21);
JC14:=CROSS(MA5,MA30);
JC15:=CROSS(MA5,MA34);
JC16:=CROSS(MA5,MA55);
JC17:=CROSS(MA5,MA60);
JC18:=CROSS(MA5,MA90);
JC19:=CROSS(MA5,MA125);
JC20:=CROSS(MA8,MA13);
JC21:=CROSS(MA8,MA21);
JC22:=CROSS(MA8,MA30);
JC23:=CROSS(MA8,MA34);
JC24:=CROSS(MA8,MA55);
JC25:=CROSS(MA8,MA60);
JC26:=CROSS(MA8,MA90);
JC27:=CROSS(MA8,MA125);
JC28:=CROSS(MA13,MA21);
JC29:=CROSS(MA13,MA30);
JC30:=CROSS(MA13,MA34);
JC31:=CROSS(MA13,MA55);
JC32:=CROSS(MA13,MA60);
JC33:=CROSS(MA13,MA90);
JC34:=CROSS(MA13,MA125);
JC35:=CROSS(MA21,MA30);
JC36:=CROSS(MA21,MA34);
JC37:=CROSS(MA21,MA55);
JC38:=CROSS(MA21,MA60);
JC39:=CROSS(MA21,MA90);
JC40:=CROSS(MA21,MA125);
JC41:=CROSS(MA30,MA34);
JC42:=CROSS(MA30,MA55);
JC43:=CROSS(MA30,MA60);
JC44:=CROSS(MA30,MA90);
JC45:=CROSS(MA30,MA125);
JC46:=CROSS(MA34,MA55);
JC47:=CROSS(MA34,MA60);
JC48:=CROSS(MA34,MA90);
JC49:=CROSS(MA34,MA125);
JC50:=CROSS(MA55,MA60);
JC51:=CROSS(MA55,MA90);
JC52:=CROSS(MA55,MA125);
JC53:=CROSS(MA60,MA90);
JC54:=CROSS(MA60,MA125);
JC55:=CROSS(MA90,MA125);
JC56:=CROSS(CLOSE,MA3);
JC57:=CROSS(CLOSE,MA5);
JC58:=CROSS(CLOSE,MA8);
JC59:=CROSS(CLOSE,MA13);
JC60:=CROSS(CLOSE,MA21);
JC61:=CROSS(CLOSE,MA30);
JC62:=CROSS(CLOSE,MA34);
JC63:=CROSS(CLOSE,MA55);
JC64:=CROSS(CLOSE,MA60);
JC65:=CROSS(CLOSE,MA90);
JC66:=CROSS(CLOSE,MA125);
金叉统计50:(JC1+JC2+JC3+JC4+JC5+JC6+JC7+JC8+JC9+JC10+JC11+JC12+JC13+JC14+JC15+JC16+JC17+JC18+JC19+JC20+JC21+JC22+JC23+JC24+JC25+JC26+JC27+JC28+JC29+JC30+JC31+JC32+JC33+JC34+JC35+JC36+JC37+JC38+JC39+JC40+JC46+JC47+JC48+JC49+JC50+JC51+JC52+JC53+JC54+JC55),coloryellow;
金叉统计55:(JC1+JC2+JC3+JC4+JC5+JC6+JC7+JC8+JC9+JC10+JC11+JC12+JC13+JC14+JC15+JC16+JC17+JC18+JC19+JC20+JC21+JC22+JC23+JC24+JC25+JC26+JC27+JC28+JC29+JC30+JC31+JC32+JC33+JC34+JC35+JC36+JC37+JC38+JC39+JC40+JC41+JC42+JC43+JC44+JC45+JC46+JC47+JC48+JC49+JC50+JC51+JC52+JC53+JC54+JC55),colorred;
股价金叉:(JC56+JC57+JC58+JC59+JC60+JC61+JC62+JC63+JC64+JC65+JC66),colorcyan;
波段线:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK2,COLORRED;
M1:=EMA(MA(波段线,5),3);
STICKLINE(波段线>108AND波段线>=M1,波段线,108,2,0),COLORF0F000;
STICKLINE(波段线<0AND波段线<M1,波段线,0,2,0),COLORF00FF0;
底部线:5,COLOR00FFFF;
风险线:108,COLORFF9D00;
底部买:=LLV(波段线,2)=LLV(波段线,8);
买进:IF(CROSS(波段线,REF(波段线+0.01,1))AND底部买AND波段线<0,30,5);
[源码注释]通达信公式动态翻译结果
输出XG:收盘价>上次成交量(手)=5日内成交量(手)的最高值距今天数日前的收盘价
每日通达信公式解答:
选股条件
5日、20日均线上穿30日的选股公式。
编写源码
M1:=MA(CLOSE,5);
M2:=MA(CLOSE,10);
M3:=MA(CLOSE,60);
CROSS(M1,M3)andCROSS(M2,M3);
评论(0)