通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信牛股涨停指标公式

  

JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=vol/IF(HIGH=LOW,4,HIGH-LOW);BB:=(QJ0*(JJ-MIN(CLOSE,OPEN)));SS:=(QJ0*(MIN(OPEN,CLOSE)-LOW));选股:=BB>SSANDCOUNT(BETWEEN(C,C*0.97,C*1.05),5)>=3ANDHHV(REF(C,1),5)/LLV(REF(C,1),5)<1.08ANDC/REF(C,1)>1.03ANDCAPITA  

var1:=sum(close*vol*100,6)/sum(vol*100,6);  

持股线:intpart(var1*100.17)/100,Coloryellow,LINETHICK3;  

var2:=sum(close*vol*100,10)/sum(vol*100,10);  

var3:=sum(close*vol*100,30)/sum(vol*100,30);  

var4:=ref(low,1)/low;  

var5:=ema(var4,13)/var4*close;  

var6:=ema(var5,21)*1.17;  

var7:=ema(var5,21)*0.955;  

var8:=ema(high,21)/high*(close/2+low/2);  

var9:=var8*1.0861;  

var10:=var9*1.0935;  

var11:=var9*0.89207;  

疯牛:ema(var10,21)*1.0877,colorwhite;  

牛市:ema(var9,21)*1.0935,colormagenta;  

空翻多:ema(var9,21)*1,colorcyan;  

熊市:ema(var9,21)*0.89207,colorblue;  

疯熊:ema(var11,21)*0.92476,colorgreen;  

铁板:EMA(CLOSE,7),LINETHICK1,colorFFFFFF;  

黄油:EMA(CLOSE,50),LINETHICK1,colorFFFFff;  

炭火:EMA(CLOSE,21),colorFFffff;  

牛熊线:MA(CLOSE,156),LINETHICK2,colorFFFFFF;  

生命线:MA(CLOSE,453),LINETHICK2,color0000FF;  

PARTLINE(炭火,炭火>REF(炭火,1)),LINETHICK1,colorFFffff;  

PARTLINE(炭火,炭火<REF(炭火,1)),LINETHICK1,colorFF0000;  

AA10:=炭火;  

BB10:=(ATAN(AA10-REF(AA10,1)))*180/3.1416;  

STICKLINE(BB10>1ANDAA10>REF(AA10,1),AA10,REF(AA10,1),8,0),color0080FF;  

STICKLINE(BB10<1ANDAA10<REF(AA10,1),AA10,REF(AA10,1),4,1),color808080;  

STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,6,1),color0000FF;  

STICKLINE(OPEN>CLOSE,CLOSE,OPEN,6,0),colorFFFF00;  

STICKLINE(CLOSE>=OPEN,CLOSE,HIGH,0.5,0),color0000FF;  

STICKLINE(CLOSE>=OPEN,OPEN,LOW,0.5,0),color0000FF;  

STICKLINE(OPEN>CLOSE,CLOSE,LOW,0.5,0),colorFFFF00;  

STICKLINE(OPEN>CLOSE,OPEN,HIGH,0.5,0),colorFFFF00;  

AA:=CLOSE/REF(CLOSE,1)>=1.09;  

STICKLINE(AA,OPEN,CLOSE,4,0),color00FFFF;  

STICKLINE(AA,LOW,HIGH,0.5,0),color00FFFF;  

A:=CROSS(铁板,炭火);  

STICKLINE(A,OPEN,CLOSE,6,0),LINETHICK1,colorFFFFFF;  

DRAWTEXT(CROSS(铁板,炭火),LOW*0.9,'上炭'),colorFFFFff;  

P3:=BARSTATUS=2;  

E:=(HIGH+LOW+OPEN+2*CLOSE)/5;  

明日阻力:=2*E-LOW;  

明日支撑:=2*E-HIGH;  

明日突破:=E+HIGH-LOW;  

明日反转:=E-(HIGH-LOW);  

今日阻力:=REF(明日阻力,1);  

今日支撑:=REF(明日支撑,1);  

DRAWTEXTREL(20,500,'—————–'),colorFFFFFF;  

DRAWTEXTREL(20,580,'—————–'),colorFFFFFF;  

DRAWTEXTREL(20,660,'—————–'),colorFFFFFF;  

DRAWTEXTREL(20,740,'—————–'),colorFFFFFF;  

DRAWTEXTREL(20,820,'—————–'),colorFFFFFF;  

DRAWTEXTREL(20,900,'—————–'),colorFFFFFF;  

DRAWTEXTREL(20,990,'—————–'),colorFFFFFF;  

A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);  

黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;  

A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;  

A3:=EMA(C,5);  

A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;  

趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;  

A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;  

DRAWTEXT(FILTER(REF(黑马线,1)>90ANDA2<0,7),黑马线,'跑'),COLOR00FF00;  

DRAWTEXT(CROSS(A1,黑马线)AND黑马线<A5,黑马线,'黑马');  

DRAWTEXT(CROSS(黑马线,A5)AND趋势线<80,黑马线,'追涨');  

A1:=VOL/REF(MA(VOL,5),1);A2:=O/REF(C,1)<1.00;JD:=ATAN((MA(C,13)/REF(MA(C,13),1)-1)*100)*57.3;XG1:=A1>2.5ANDA2ANDCROSS(JD,45)ANDFINANCE(7)<=600000000ANDC<15;XG:V>=REF(V,1)*1ANDC>OANDXG1;  

DRAWTEXT(CROSS(趋势线,0)AND黑马线<40,5,'大黑马');  

底部:(A2<-10ANDA2>REF(A2,1))*25,COLORRED;  

DRAWICON(底部ANDA3>REF(A3,1),25,4);  

机会来临:REF(IF((MA(C,5)-C)/C>0.04AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0;  

大势已去:IF(CROSS(黑马线,A1)AND黑马线>70AND趋势线>80,90,100),COLORFF0000;  

DRAWTEXTREL(20,540,'■今日阻力=:'+NUMTOSTRN(今日阻力,2)+''),colorFFffff;  

DRAWTEXTREL(20,620,'■今日支撑=:'+NUMTOSTRN(今日支撑,2)+''),colorFF0000;  

DRAWTEXTREL(20,700,'●明日突破=:'+NUMTOSTRN(明日突破,2)),colorFF00FF;  

DRAWTEXTREL(20,780,'●明日阻力=:'+NUMTOSTRN(明日阻力,2)),colorFFFF00;  

DRAWTEXTREL(20,860,'●明日支撑=:'+NUMTOSTRN(明日支撑,2)),colorFFffff;  

DRAWTEXTREL(20,940,'●明日反转=:'+NUMTOSTRN(明日反转,2)),colorFF0000;  

T:=IF((BARSCOUNT(C)>7),(100)*((MA(C,7))/(LLV(MA(C,7),7))-1),1);N:=IF((T>0.35),6,65);W:=((-((100)*(HHV(H,N)-C))/(HHV(HIGH,N)-LLV(L,N))));RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;VAR4:=SMA(RV,3,1);VAR5:=SMA(VAR4,3,1);KK:=EMA(SMA(RG,3,1),2);DD:=SMA(KK,3,1);XG:CROSS(W,-2)ANDCROSS(VAR4,VAR5)ANDCROSS(KK,DD);

image.png

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

AA赋值:上次1日前的平滑异同平均的DIF上穿平滑异同平均的DEA距今天数

输出XG:AA+1日前的收盘价>收盘价 AND AA+1日前的平滑异同平均的DIF<平滑异同平均的DIF AND 平滑异同平均的DIF上穿平滑异同平均的DEA

每日通达信公式解答:

  

编写条件:  

今日开盘价低于昨日k线实体最高价的选股公式。  

编写方法:  

XG:O<REF(MAX(C,O),1);


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