通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信出信号抓涨停指标公式
T:=DYNAINFO(8)>0;VO:=VOL=LLV(VOL,100)ANDT;操盘线:=EMA(((SLOPE(C,22)*20)+C),55);DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4;DA9:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB9:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;启动:=CROSS(DA9-DB9,0)ANDCROSS(DA,操盘线);SS1:=(LOW+HIGH+CLOSE*2)/4;SS2:=MA(SS1,4);SS3:=HHV(SS2,10);SS4:=MA(SS3,3);SS5:=1.25*SS4-0.25*SS3;XKKJ:=IF(SS5>SS3,SS3,SS5);FF1:=LLV(SS2,10);FF2:=MA(FF1,3);FF3:=1.25*FF2-0.25*FF1;DKKJ:=IF(FF3<FF1,FF1,FF3);MA13:=MA(C,13);ZDHM:=CROSS(C,DKKJ)ANDCROSS(C,MA13)ANDCROSS(C,XKKJ);ZHM:=CROSS(C,MA13)ANDCROSS(C,XKKJ);的卢:=ZDHMORZHM;ZF:=9;HIGH2:=20;A:=(3*C+L+O+H)/6;XX:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
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);
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));
大黑马:CROSS(趋势线,0)AND黑马线<40;
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;MIDDLE:=EMA(XX,13);KKAY:=EMA(C,5);KKBY:=EMA(KKAY,8);KKCY:=EMA(KKBY,13);LONG:=EMA(KKCY,50);KAAA3Y:=REF(C,1)<REF(MIDDLE,1)ANDC>MIDDLE;KBBB3Y:=C/REF(C,1)>1+0.01*ZF;KCCC3Y:=MIDDLE/LONG<1+0.01*HIGH2;资金:=KAAA3YANDKBBB3YANDKCCC3Y;的卢AND启动AND资金;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);上:=(1+7/100)*DD;疯:=(1+14/100)*DD;下:=(1-7/100)*DD;中:=(上+下)/2;粉红色中:=(上>REF(上,1))AND(中>REF(中,1))AND(下>REF(下,1))ANDC<中;{保守}粉红色:(上>REF(上,1))AND(中>REF(中,1))AND(下>REF(下,1))ANDC<疯ANDC>上;
VRA:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);底部:STICKLINE(CROSS(VRA,9),0,5,3.5,0),COLORFF00FF;STICKLINE(CROSS(VRA,9),5,10,2.5,0),COLOR00FFFF;STICKLINE(CROSS(VRA,9),10,15,1.5,0),COLORRED;DRAWTEXT(CROSS(VRA,9),13,'底部'),COLOR00FFFF;IF(底部,3,0),COLOR00FFFF,LINETHICK3;
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);VAR03:=CROSS(VAR02,VAR01);VAR04:=REF(VAR02,2)<REF(VAR02,1)ANDVAR02<REF(VAR02,1);VAR05:=COUNT(VAR03,7)>0ANDVAR04;VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);VAR08:=EMA(VAR07,10);VAR09:=EMA(C,5);VAR10:=LLV(LOW,33);VAR11:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;VAR12:=IF(VAR11>100,VAR11*0.312,VAR11);底线:VAR02,COLORGREEN;趋势:VAR01,COLORCYAN;STICKLINE(VAR05ANDCOUNT(VAR05,5)=1,0,VAR12,4,0),COLORRED;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=(SMA(RSV,3,1));D:=(SMA(K,3,1));KK:=INTPART(SMA(RSV,3,1));DD:=INTPART(SMA(K,3,1));N:=KK+DD,COLORFF00FF,LINETHICK2;预测:=IF(CROSS(N,50),90,50),COLOR00FF00;涨停:=IF(CROSS(N,99.5),100,50),COLORYELLOW;涨停>预测;
N:=30;M:=95;N1:=7;N2:=79;
V1:=EMA(CLOSE,5),COLORYELLOW;
V2:=EMA(EMA(CLOSE,29)*1.01,10),COLORFFCC66;
V3:=EMA(CLOSE,10),COLORFF00FF;
V4:=EMA(EMA(CLOSE,60)*0.99,10),COLOR0099FF;
VAR11:=AMOUNT/VOL/100;
运作:=MA(CLOSE,18),COLORWHITE;
平均:=EMA(EMA(VAR11,2),N),COLOR00FF00;
底仓:=EMA(EMA(VAR11,13),M),COLORBLUE;
无穷成本均线:=DMA(CLOSE,VOL/CAPITAL),COLORBLUE;
持仓:IF(CLOSE>=SAR(4,8,20),SAR(4,8,20)*0.96,DRAWNULL),CIRCLEDOT,COLORRED;
空仓:=IF(CLOSE<SAR(4,8,20),SAR(4,8,20),DRAWNULL),CIRCLEDOT,COLORGREEN;
量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORRED,NODRAW;
换手率:VOL/CAPITAL*100,COLORGREEN,NODRAW;
大盘指数:=INDEXC,NODRAW,COLORLIMAGENTA;
涨:INDEXADV,NODRAW,COLORLIMAGENTA;
跌:INDEXDEC,NODRAW,COLORGREEN;
数浪(未来):ZIG(3,5),COLORWHITE,LINETHICK1;
VAR326:=IF(CLOSE>REF(CLOSE,1),88,0);
VAR327:=IF(CLOSE/REF(CLOSE,1)>1.050ANDHIGH/CLOSE<1.010ANDVAR326>0,91,0);
STICKLINE(VAR327>90,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(VAR327>90,LOW*0.95,32),COLORYELLOW;
操作线:=EMA(C,7),COLOR00FF00;
A:=(REF(操作线,1));
STICKLINE((操作线>A),A,操作线*0.98,6,0),COLOR0000FF;
STICKLINE((操作线<=A),A,操作线*1.01,6,0),COLOR00FF00;
M9:=(MA(CLOSE,9));
Y:=((HIGH+LOW)/(2));
AO:=MA(Y,5)-(MA(Y,34));
DU0:=(CROSS(AO,0));
UD0:=(CROSS(0,AO));
TDU0:=(BARSLAST(DU0));
TUD0:=(BARSLAST(UD0));
DU3:=(REF(DU0,1));
UD3:=(REF(UD0,1));
TDU3:=(BARSLAST(DU3));
TUD3:=(BARSLAST(UD3));
UDGLINE:=(IF((TDU3<TUD3),REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3)));
JDU0:=(REF(CLOSE,1)<=REF(UDGLINE,1))AND(CLOSE>UDGLINE)AND(TDU0<(TUD0));
JUD0:=(REF(CLOSE,1)>=REF(UDGLINE,1))AND(CLOSE<UDGLINE)AND(TUD0<(TDU0));
JDU1:=JDU0AND(COUNT(JDU0,TDU0)=(1));
JUD1:=JUD0AND(COUNT(JUD0,TUD0)=(1));
JDU2:=JDU1AND(REF(BARSLAST(JUD1),1)<(REF(BARSLAST(JDU1),1)));
JUD2:=JUD1AND(REF(BARSLAST(JUD1),1)>(REF(BARSLAST(JDU1),1)));
JDU3:=JDU1AND(REF(BARSLAST(JUD1),1)>(REF(BARSLAST(JDU1),1)));
JUD3:=JUD1AND(REF(BARSLAST(JUD1),1)<(REF(BARSLAST(JDU1),1)));
DRAWTEXT(JDU2,(M9)*(0.94999998),33),COLORYELLOW;
VAR1:=(((CLOSE-MA(CLOSE,30))/(MA(CLOSE,30)))*(100));
VAR2:=(CLOSE>OPEN)AND(OPEN-LOW>HIGH-(CLOSE));
VAR3:=(REF(VAR1,1)<(-20))AND(VAR2);
VAR4:=(REF(VAR1,1)<(-20))AND(CLOSE>OPEN)AND(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(1000)>(20));
VAR5:=(FILTER((VAR3ORVAR4),3));
VAR6:=(OPEN>CLOSE)AND(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN)>IF((OPEN<CLOSE),OPEN,CLOSE)-(LOW));
VAR7:=(REF(VAR1,1)>ABS((-20)))AND(VAR6);
VAR8:=(REF(VAR1,1)>ABS((-20)))AND(CLOSE<OPEN)AND(((REF(CLOSE,1)-CLOSE)/(REF(CLOSE,1)))*(1000)>(20));
VAR9:=(FILTER((VAR7ORVAR8),3));
VAARA:=(REF(VAR1,1)<(-13))AND(VAR2);
VARB:=(REF(VAR1,1)<(-13))AND(CLOSE>OPEN)AND(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(1000)>(20));
VARC:=(FILTER((VAARAORVARB),3));
VARD:=(REF(VAR1,1)>ABS((-13)))AND(VAR6);
VARE:=(REF(VAR1,1)>ABS((-13)))AND(CLOSE<OPEN)AND(((REF(CLOSE,1)-CLOSE)/(REF(CLOSE,1)))*(1000)>(20));
VARF:=(FILTER((VARDORVARE),3));
DRAWTEXT(((VARF)*(VAR1)>0),(1)*(REF(CLOSE,1)),34),COLORGREEN;
M1:EMA(CLOSE,3),COLORWHITE;
M2:=EMA(CLOSE,8);
M3:EMA(M2,13),COLORGREEN;
VAR14:=EMA(M3,55);
VAR15:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR16:=MA(CLOSE,20)+2*STD(CLOSE,20);
DRAWTEXT(CROSS(VAR15,VAR16),HIGH*1.06,35),COLORGREEN;
VAR17:=REF(CLOSE,1);
VAR18:=SMA(MAX(CLOSE-VAR17,0),N1,1)/SMA(ABS(CLOSE-VAR17),N1,1)*100;
VAR19:=CROSS(N2,VAR18);
VARA:=FILTER(VAR9,4);
DRAWTEXT(VARA,HIGH*1.06,36),COLORGREEN;
_红柱:=IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORRED;
绿柱:=IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),
STICK,COLORGREEN;
_抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;
_DIF:="MACD.DIF",COLORWHITE;
_DEA:="MACD.DEA",COLORYELLOW;
__强度:=IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2;
_强度:=IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(ABS(_抄底)>0,LOW*0.98,37),COLORMAGENTA;
买:=IF("KDJ.J"<0,10,0);
条件:=CROSS(9.9,买);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);
AA:STICKLINE(VAR4>MA1,VAR4,MA1,2,1),COLORFF00FF;
BBB:STICKLINE(VAR4>MA1ANDREF(VAR4,1)<30,VAR4,MA1,2,1),COLORFF00FF;
STICKLINE(VAR4<=MA1,VAR4,MA1,2,1),COLORFFCC66;
H1:IF(CROSS(9.9,买),VAR4-12,DRAWNULL),CROSSDOT,LINETHICK7,COLORYELLOW;
F1_:IF(CROSS(9.9,买),VAR4-12,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORRED;
STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,2,8),COLORYELLOW;
XXX:=STICKLINE(BBB,VAR4+5,MA1-4,2,1),COLORYELLOW;
STICKLINE(FILTER(XXX,5),VAR4+5,MA1-4,2,1),COLORWHITE;
R1:=1;
R2:=((((2*CLOSE)+HIGH)+LOW)/4);
R4:=LLV(LOW,5);
R5:=HHV(HIGH,4);
C1:=(EMA((((R2-R4)/(R5-R4))*100),4)*R1),COLORFF00FF,LINETHICK2;
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*R1),COLORFFFFFF,LINETHICK2;
条:=CROSS(C1,C2)ANDC1<40;
STICKLINE(条,0,-10,2,0),COLORRED;
DRAWTEXT(条,5,'小马'),COLORRED;
DI0:=(EMA(DCLOSE,13)-EMA(DCLOSE,24))*100;
DE0:=EMA(DI0,9);
MA0:=2*(DI0-DE0);
黑:(MA0>REF(MA0,1)*2.5ANDMA0>15),COLORFF00FF;
STICKLINE(黑,0,25,2.0,0),COLORYELLOW;
[源码注释]通达信公式动态翻译结果
输出XG:最近5日一直存在收盘价的10日简单移动平均>1日前的收盘价的10日简单移动平均
每日通达信公式解答:
编写要求:
20日前60日内存在年线上高开,并且是300天最高量的选股公式。
解答:
XG:EXISTR(O>REF(C,1)ANDV=HHV(V,300)ANDO>MA(C,250),60,20);
评论(0)