通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信倍量过左峰起爆的选股指标公式

  

VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);VAR2:=HIGH-REF(HIGH,1);VAR3:=REF(LOW,1)-LOW;VAR4:=SUM(IF(VAR2>0ANDVAR2>VAR3,VAR2,0),25);VAR5:=SUM(IF(VAR3>0ANDVAR3>VAR2,VAR3,0),25);VAR6:=VAR4*100/VAR1;VAR7:=VAR5*100/VAR1;VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);VAR9:=(VAR8+REF(VAR8,15))/2;A:=(VAR7>VAR6ANDVAR7>25ANDVAR6<25);B:ZIG(3,5)*100,COLORRED;G:MA(B,2);D:CROSS(B,G)*1000,COLORRED,LINETHICK2;W:CROSS(G,B)*1000,COLORGREEN,LINETHICK2;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);VAR10:=FANDF<8;VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR12:=SMA(VAR11,3,1);VAR13:=SMA(VAR12,3,1);VAR14:=VAR13ANDVAR13<20;AANDDANDVAR10ANDVAR14;DRAWTEXT(W=1000,900,'卖'),COLORGREEN;DRAWTEXT(D=1000,800,'买'),COLORRED;  

SPTPQG:=C>=HHV(C,60)ANDC>=HHV(0,60);{收盘价是最近N天内收盘和开盘最高};  

SBBLY:EXIST(SPTPQG,2)ANDC<OANDREF(C,1)>=REF(C,2)*1.093ANDV>REF(V,1)*1.35ANDREF(C,2)<=REF(C,3)*1.093ANDMA(C,90)>=REF(MA(C,90),1);  

BK:=IF(INBLOCK('科创板')ORINBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1));  

涨停:=C=ZTPRICE(REF(C,1),BK)ANDH=C;  

N天:=20;  

平台振幅:=(HHV(H,N天)-LLV(L,N天))/LLV(L,N天)*100;  

涨停突破:=涨停ANDREF(平台振幅,1)<=30ANDH=HHV(H,N天);  

次日高开低:=REF(涨停突破,1)  ANDC<OANDC>REF(O,1)ANDVOL>REF(VOL,1)*1.8;  

S2:=IF(NAMELIKE('S'),0,1);  

S3:=IF(NAMELIKE('*'),0,1);  

{S2:=IF(NAMELIKE('S'),0,1);  

S3:=IF(NAMELIKE('*'),0,1);  

S4:=IF(CODELIKE('688'),0,1);  

非新股:=BARSCOUNT(CLOSE)>200;  

去除停牌:=DYNAINFO(4)>0;  

ANDS2ANDS3ANDS4AND非新股AND去除停牌}  

选股:次日高开低ANDS2ANDS3,COLORMAGENTA;  

DRAWGBK(O&gt;C,RGB(48,41,124),RGB(0,0,0),0,'1',0);  

VAR3AA:=IF((CLOSE&gt;REF(CLOSE,1)),88,0);  

VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))&gt;1.05)AND((HIGH)/(CLOSE)&lt;1.01)AND(VAR3AA&gt;0),91,0);  

XG:=(FILTER((VAR4AA&gt;90),45)),COLORYELLOW;  

STICKLINE(XG,150,0,4,0),COLOR000099;  

STICKLINE(XG,150,0,2,0),COLOR0000BB;  

STICKLINE(XG,150,0,1,0),COLOR0000DD;  

STICKLINE(XG,150,0,0.9,0),COLOR0000FF;  

DRAWTEXT(XG&gt;0,130,'SI起暴点'),COLOR00C5FF;  

DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;  

DEA:=EMA(DIFF,9);  

MACD:=2*(DIFF-DEA);  

抄底1:=ABS((CROSS("MACD.DIF","MACD.DEA")  

&amp;&amp;"MACD.DEA"&lt;=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;  

STICKLINE(抄底1,0,50,4,0),COLOR770077;  

STICKLINE(抄底1,0,50,3,0),COLOR990099;  

STICKLINE(抄底1,0,50,2,0),COLORBB00BB;  

STICKLINE(抄底1,0,50,1,0),COLORDD00DD;  

STICKLINE(抄底1,0,50,0.3,0),COLORFF00FF;  

DRAWTEXT(抄底1&gt;0,38,'超级拐点'),COLOR00C5FF;  

反向钟摆线:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,20);  

DK:=CROSS(-5,反向钟摆线);  

STICKLINE(DK,0,50,4,0),COLOR770077;  

STICKLINE(DK,0,50,3,0),COLOR990099;  

STICKLINE(DK,0,50,2,0),COLORBB00BB;  

STICKLINE(DK,0,50,1,0),COLORDD00DD;  

STICKLINE(DK,0,50,0.3,0),COLORFF00FF;  

DRAWTEXT(DK&gt;0,48,'终极低点'),COLOR00C5FF;  

VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);  

VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);  

VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);  

VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);  

VAR6:=MA(VAR5,3);  

VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5)/3)/CAPITAL));  

VAR8:=(((CLOSE-VAR7)/VAR7)*100);  

VAR9:=((((REF(VAR8,1)&lt;(0-40))AND(VAR8&gt;REF(VAR8,1)))AND(REF(VAR8,1)&lt;REF(VAR8,2)))AND((VAR8-REF(VAR8,1))&gt;2.5));  

VARD:=REF(CLOSE,1);  

VARE:=((SMA(MAX((CLOSE-VARD),0),5,1)/SMA(ABS((CLOSE-VARD)),5,1))*100);  

VARF:=(((HIGH+LOW)+CLOSE)/3);  

VAR10:=((VARF-MA(VARF,14))/(0.015*AVEDEV(VARF,14)));  

VAR11:=(((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,110)/MA(VOL,110))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100))&lt;(0-0.273));  

VAR12:=(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30))&lt;(0-0.125));  

VAR13:=(VAR11ANDVAR12);  

VAR14:=((((VAR2&gt;=(0-45))AND(VAR2&lt;=(0-10)))AND(VAR3&lt;=(0-15)))AND(VAR4&lt;=(0-20)));  

VAR15:=(COUNT(VAR14,1)&gt;=1);  

VAR16:=(VAR13ANDVAR15);  

VAR17:=1;  

VAR18:=(CLOSE*VOL);  

VAR19:=EMA((((((MA(VAR18,4)/MA(VOL,4))+(MA(VAR18,6)/MA(VOL,6)))+(MA(VAR18,13)/MA(VOL,13)))+(MA(VAR18,24)/MA(VOL,24)))/4),1);  

VAR1A:=(1*VAR19);  

VAR1B:=(VAR19*0.92);  

VAR1C:=EMA(CLOSE,34);  

VAR1D:=MA((VAR1C*1.12),5);  

VAR1E:=MA((VAR1C*0.82),5);  

VAR1F:=(CLOSE&lt;VAR1E);  

VAR20:=((((((MA(AMOUNT,5)*VAR17)/MA(VOL,5))/100)-((MA(AMOUNT,125)/MA(VOL,125))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100))&lt;((0-0.4)*VAR17));  

VAR21:=HHV(HIGH,500);  

VAR22:=LLV(LOW,500);  

VAR23:=HHV(HIGH,250);  

VAR24:=LLV(LOW,250);  

VAR25:=HHV(HIGH,125);  

VAR26:=LLV(LOW,125);  

VAR27:=MA(((((((VAR21*0.45)+(VAR23*0.5))+VAR22)+VAR24)+VAR26)/5),35);  

VAR28:=MA((((VAR23*0.62)+VAR26)/2),35);  

VAR29:=MA((((VAR23*0.75)+VAR26)/2),18);  

VAR2A:=MA((((((VAR23*0.93)+(VAR27*2))+(VAR28*1.8))+(VAR29*1.5))/4),18);  

VAR2B:=MA(((((VAR21*0.95)+(VAR27*3))+(VAR28*2))/3),35);  

VAR2C:=VAR27;  

VAR2D:=VAR28;  

VAR2E:=VAR29;  

VAR2F:=VAR2A;  

VAR30:=VAR2B;  

VAR31:=((CLOSE-REF(MA(CLOSE,20),11))&lt;(0-2));  

VAR35:=((VAR18/(VAR18+VAR19))*VAR17);  

VAR36:=((VAR19/(VAR18+VAR19))*VAR17);  

VAR37:=EMA(VAR35,10);  

VAR38:=EMA(VAR36,10);  

VAR39:=EMA(VAR37,10);  

VAR3A:=EMA(VAR38,20);  

VAR3B:=EMA(VAR37,3);  

VAR3C:=EMA(VAR39,6);  

VAR3D:=EMA(VAR3A,2);  

VAR3E:=(VAR3C-VAR3D);  

VAR3F:=(((VAR3C-REF(VAR3C,1))&gt;0)AND((REF(VAR3C,1)-REF(VAR3C,2))&lt;0));  

VAR40:=IF((CROSS(VAR3B,VAR3C)AND(VAR3C&lt;=20)),30,0);  

VAR41:=VAR40;  

VAR42:=(SMA(((AMOUNT/VOL)/100),13,1)*1.15);  

VAR43:=(SMA(((AMOUNT/VOL)/100),13,1)*0.85);  

VAR44:=(CLOSE-REF(MA(CLOSE,20),11));  

VAR45:=(((((((((((((CLOSE&lt;VAR1E)ANDVAR20)AND(CLOSE&lt;VAR43))OR(((CLOSE&lt;VAR1E)ANDVAR31)ANDVAR20))OR((CLOSE&lt;VAR1E)AND(CLOSE&lt;VAR43)))OR(((CLOSE&lt;VAR1E)ANDVAR20)AND(CLOSE&lt;VAR43)))OR(VAR20AND(CLOSE&lt;VAR2C)))OR((VAR20ANDVAR31)AND(VAR44&lt;(0-1.5))))OR(VAR20AND(CLOSE&lt;VAR1E)))OR(VAR20AND(VAR44&lt;(0-1.5))))OR(VAR31AND(CLOSE&lt;VAR43)))OR((CLOSE&lt;VAR2C)AND(VAR44&lt;(0-1.5))))OR((CLOSE&lt;VAR1E)ANDVAR31));  

VAR4B:=(((HIGH+LOW)+CLOSE)/3);  

VAR4C:=((VAR4B-MA(VAR4B,14))/(0.015*AVEDEV(VAR4B,14)));  

VAR4D:=(((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,110)/MA(VOL,110))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100))&lt;(0-0.273));  

VAR4E:=(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30))&lt;(0-0.125));  

VAR4F:=(VAR11ANDVAR12);  

VAR50:=((((VAR2&gt;=(0-45))AND(VAR2&lt;=(0-7)))AND(VAR3&lt;=(0-11)))AND(VAR4&lt;=(0-14)));  

VAR51:=(COUNT(VAR50,1)&gt;=1);  

VAR52:=(VAR4FANDVAR51);  

VAR53:=(((((VAR20AND(CLOSE&lt;VAR1E))ANDVAR31)AND(CLOSE&lt;VAR2C))ANDVAR45)ANDVAR52);  

VAR5B:=((((((VAR2&gt;=(0-15.8))AND(VAR2&lt;=(0-12.2)))AND(VAR3&lt;=(0-20.8)))AND(VAR4&lt;=(0-27.5)))AND(VARE&lt;=11.7))AND(VAR4C&lt;=(0-145)));  

VAR5C:=9.999999884842E+0.26;  

VAR5D:=(COST(10)*0);  

VAR5E:=((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,125)/MA(VOL,125))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100));  

VAR5F:=MA((((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)))*100),5);  

VAR60:=((CROSS((0-5),VAR5F)AND(VAR5E&lt;(0-0.4)))AND(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30))&lt;(0-0.19)));  

VAR61:=MA(CLOSE,3);  

VAR62:=(REF(CLOSE,2)*0.865);  

VAR63:=(REF(CLOSE,13)*0.772);  

VAR64:=MIN(VAR62,VAR63);  

VAR65:=((100*VOL)/CAPITAL);  

抄底:IF(((((VAR9ORVAR16)ORVAR53)ORVAR5B)OR((((CLOSE-VAR64)/CLOSE)&lt;0.03)AND((SUM(VAR65,5)/5)&lt;1.8))),80,0),LINETHICK4,COLORRED;  

DRAWTEXT(抄底&gt;0,抄底,'游资买点'),COLOR00C5FF;  

小V逆转:=REF(C,1)&lt;REF(O,1)ANDO&gt;REF(C,1)ANDC&gt;=REF(C,1)*1.08;  

STICKLINE(小V逆转,20,0,4,0),COLOR000099;  

STICKLINE(小V逆转,30,0,2,0),COLOR0000BB;  

STICKLINE(小V逆转,40,0,1,0),COLOR0000DD;  

STICKLINE(小V逆转,60,0,0.9,0),COLOR0000FF;  

DRAWICON(小V逆转,60,34);  

DRAWTEXT(小V逆转&gt;0,30,'小V逆转'),COLOR00C5FF;  

SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);  

SR2:=FILTER(SR1,10);  

SR3:=BACKSET(SR2,10+1);  

HD:=FILTER(SR3,10);  

前高:=REF(H,BARSLAST(HD));  

倍量:=VOL/REF(VOL,1)&gt;=1.9;  

突破前高:=CROSS(C,前高);  

选股:倍量and突破前高;

image.png

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

DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均

DEA赋值:DIF的9日指数移动平均

金叉赋值:DIF上穿DEA AND 平滑异同平均的MACD>0

输出XG:5日前的金叉

每日通达信公式解答:



  

编写要求:  

连续二个以上涨停版选股公式.  

公式在线网解答:  

AA:=C/REF(C,1)>=1.098;  

COUNT(AA,2)=2;  

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