通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信今日涨停选股指标公式源码

  

DRAWBAND(-10,RGB(0,0,0),110,RGB(0,0,0));  

STICKLINE(C>0,0,90,6,0),COLOR373829;  

STICKLINE(C>0,90,100,6,0),COLOR000068;  

STICKLINE(C>0,0,20,8,0),COLOR000068;  

蓝魔:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*300,COLORRED,LINETHICK0;  

STICKLINE(蓝魔>0,0,蓝魔,4,0),COLORBLUE;  

STICKLINE(蓝魔>0,0,蓝魔,3.5,0),COLORFF3300;  

STICKLINE(蓝魔>0,0,蓝魔,3,0),COLORFF5500;  

STICKLINE(蓝魔>0,0,蓝魔,2.5,0),COLORFF7700;  

STICKLINE(蓝魔>0,0,蓝魔,2,0),COLORFF9900;  

STICKLINE(蓝魔>0,0,蓝魔,1.5,0),COLORFFBB00;  

中位线:50,POINTDOT,COLORWHITE;  

破竹:MA((((-100))*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))+100,5),COLORGREEN;  

AAQ:=(O+H+L+C)/4;  

A1Q:=HHV(AAQ,15);  

A2Q:=LLV(AAQ,15);  

A3Q:=A1Q-A2Q;  

A4Q:=EMA((AAQ-A2Q)/A3Q,2)*100;  

长虹:A4Q,COLORRED;  

N:=IF(HHVBARS(H,150)>20,HHVBARS(H,150),0);  

M:=REF(N,1);  

M1:=REF(HHV(H,150),1);  

M2:=REF(LLV(L,M),1);  

A:=(REF(HHV(H,M),1)-REF(LLV(L,M),1))/REF(LLV(L,M),1)<=(60/100);  

EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;大盘:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORE67010,LINETHICK2;STICKLINE(个股>=大盘,个股,大盘,1,0),COLORRED;STICKLINE(个股<大盘,个股,大盘,1,0),COLORBLUE;STICKLINE(个股>=大盘,0,大盘,6,0),COLORYELLOW;STICKLINE(个股<大盘,0,个股,6,0),COLORYELLOW;短线反弹:IF(CROSS(个股,9),50,0),STICK,LINETHICK3,COLOR00FF00;DRAWTEXT(CROSS(个股,9),40,'短线反弹!'),COLOR00FF00;VAR1:=EMA(CLOSE,3);VAR2:=EMA(CLOSE,21);VAR3:=BARSLAST(CROSS(VAR2,VAR1))>15;VAR4:=VOL>MA(VOL,5)*2ANDVOL<MA(VOL,5)*5;VAR5:=CROSS(VAR1,VAR2)ANDVAR4ANDVAR3;黑马:IF(VAR5,80,0),STICK,LINETHICK4,COLORF00FF0;DRAWTEXT(VAR5,70,'黑马!'),COLORF00FF0;  

B:=C>=REF(HHV(H,M),1);  

AANDBANDN=0ANDREF(N,1)>0;  

ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+  

INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;  

T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;  

T1:=REF(T,T)+T,NODRAW;  

T2:=REF(T,T1)+T1,NODRAW;  

T3:=REF(T,T2)+T2,NODRAW;  

T4:=REF(T,T3)+T3,NODRAW;  

T5:=REF(T,T4)+T4,NODRAW;  

T6:=REF(T,T5)+T5,NODRAW;  

T7:=REF(T,T6)+T6,NODRAW;  

T8:=REF(T,T7)+T7,NODRAW;  

T9:=REF(T,T8)+T8,NODRAW;  

T10:=REF(T,T9)+T9,NODRAW;  

T11:=REF(T,T10)+T10,NODRAW;  

T12:=REF(T,T11)+T11,NODRAW;  

T13:=REF(T,T12)+T12,NODRAW;  

日5:ma(close,5);  

周5:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+CLOSE)/5;  

周13:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+  

REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+REF(CLOSE,T9)  

+REF(CLOSE,T10)+REF(CLOSE,T11)+CLOSE)/13,LINETHICK2;  

涨跌:=REF(C,1);  

涨停:=IF(((((C-涨跌)*100)/涨跌)>=(10-((0.01*100)/涨跌))),1,0);  

DIF:=(EMA(C,12)-EMA(C,26));  

DEA:=EMA(DIF,9);  

MACD:=((DIF-DEA)*2);  

VAR2:=(CLOSE*VOL);  

VAR3:=EMA((((((EMA(VAR2,3)/EMA(VOL,3))+(EMA(VAR2,6)/EMA(VOL,6)))+(EMA(VAR2,12)/EMA(VOL,12)))+(EMA(VAR2,24)/EMA(VOL,24)))/4),13);  

VAR4:=EMA(CLOSE,9);  

飞狐线:=(MA(CLOSE,25)+((MA(CLOSE,25)*20)/100));  

强势线:=(MA(CLOSE,25)+((MA(CLOSE,25)*6)/100));  

支撑线:=((((MA(CLOSE,3)+MA(CLOSE,6))+MA(CLOSE,12))+MA(CLOSE,24))/4);  

压力线:=EMA((VAR4*1.14),5);  

盈损线:=(LLV(REF(LOW,1),2)+((HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2));  

QD:=(((C>强势线)AND(C>支撑线))AND(C>盈损线));  

小妖:=((COUNT(QD,10)=1)ANDQD);  

XYJJ:=BARSLAST(小妖);  

JS:=CROSS(C,压力线);  

妖狐:=((COUNT(JS,XYJJ)<=1)ANDJS);  

HX1:=((REF(妖狐,1)AND(O>压力线))AND(C>压力线));  

HX2:=((REF(妖狐,1)ANDCROSS(C,飞狐线))AND(C>压力线));  

狐仙前世:=(小妖AND妖狐);  

狐仙金身:=(HX1ORHX2);  

妖狐王:=((((REF(涨停,1)AND(O>压力线))AND(O>REF(H,1)))AND(REF(H,1)<REF(压力线,1)))AND(L>=压力线));  

XG:=((狐仙前世OR狐仙金身)OR妖狐王);  

AAAA:=MA(C,1);  

AAA:=SMA(SMA(SMA(AAAA,2,1),2,1),2,1);  

BBB:=MA(AAA,3);  

DRAWBAND(AAA,RGB(255,255,0),BBB,RGB(0,0,255));  

CCC:=(3*C+L+O+H)/6;  

牛线:=(20*CCC+19*REF(CCC,1)+18*REF(CCC,2)+17*REF(CCC,3)+16*REF(CCC,4)+15*REF(CCC,5)+14*REF(CCC,6)+13*REF(CCC,7)+12*REF(CCC,8)+11*REF(CCC,9)+10*REF(CCC,10)+9*REF(CCC,11)+8*REF(CCC,12)+7*REF(CCC,13)+6*REF(CCC,14)+5*REF(CCC,15)+4*REF(CCC,16)+3*REF(CCC,17)+2*REF(CCC,18)+REF(CCC,20))/210,COLORRED,LINETHICK2;  

马线:=MA(牛线,5);  

DRAWBAND(牛线,RGB(255,40,0),马线,RGB(256,200,0));  

STICKLINE(IF((C>REF(C,1)*1.096),2,0),OPEN,CLOSE,3,0),COLORRED;  

DRAWTEXT(XG=1,LOW-0.05,'↖超牛龙头'),COLORYELLOW;

image.png

[源码注释]通达信公式动态翻译结果

ZT赋值:(模糊匹配品种代码 AND 日期>=1200824) AND (最高价>=计算涨停价 )

输出XG:最近5日存在最高价>=ZTANDC<最高价

每日通达信公式解答:

  

编写要求:  

交易日数大于500以上的选股公式。  

解答:  

N:=500;{N自定义参数}  

FINANCE(42)>N;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。