逃顶强弱通达信免费源码_通达信逃顶公式

hacker|
100

文章目录:

通达信指标公式源码很实用的抄底逃顶指标

通达信指标公式源码很实用的抄底逃顶指标

在底部出现买入信号,在高点出现卖出信号

知道通达信源码,怎样编出选股公式

BIAS1:=(C-MA(C,6))/MA(C,6)*100;

BIAS2:=(C-MA(C,12))/MA(C,12)*100;

BIAS3:=(C-MA(C,24))/MA(C,24)*100;

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;

乖离1:=MA(BIAS,3);

低买:IF(CROSS(BIAS,乖离1) AND 乖离1-9,28,0);

-----------------------------------------------------------------------

TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=(SUM(IF(((HD 0) AND (HD LD)),HD,0),5) );

DMM:=SUM(IF(((LD 0) AND (LD HD)),LD,0),5);

神偷线:=(((DMP ) * 100) /TTR);

辅助线:=((DMM * 100) /TTR);

动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));

ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);

VAR3:=MA(CLOSE,2);

VAR7:=REF(VAR3,1);

【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);

准备:(IF(((动向趋势线 88) AND (神偷线 5.8)),68,0));

-----------------------------------------------------------------

AA05:=MA(C,5);

五日乖离率:=(C-AA05)/AA05*100;

BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;

速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);

加速度5:=EMA((速度5-REF(速度5,1)),3);

AA10:=MA(C,10);AA20:=MA(C,20);

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

AA30:=MA(C,30);

三拾日乖离率:=(C-AA30)/AA30*100;

MR:=COUNT(CROSS(五日乖离率,0),3)=1 AND 三拾日乖离率REF(三拾日乖离率,1) AND AA05REF(AA05,1) AND (C/REF(C,1)-1)*1005 AND REF(C,1)AA30;

青云直上选股:IF(FILTER(MR,10),30,0);

以上基本上是全部了,基本上没什么有价值的公式了,有些公式是追涨的,你买上上,基本与顶部不远了,如“青云直上选股”,自己学一下怎样编写公式吧,其实都不难,看要用到用哪些变量,至少比学C、C++、MATLAB等编程要容易很多,两天时间基本学会怎样写简单的选股公式,你想再深入点,加上自己的想法,多看其它人的公式,或有所悟。

祝你投机顺利~!

通达信选股公式源码

你好,通达信选股公式源码如下。

次日涨停

W1:=C=HHV(C,20);

W2:=BARSLAST(W1);

W3:=IF(W20,REF(C,W2),REF(C,W2));

W4:=交叉(C,REF(W3,1));

W4和计数(W4,5)=1;

黄转紫选股

差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA:=EMA(差异,9);

MACD:=(DIFF-DEA)*2;

紫柱:MACDREF(MACD,1)和REF(MACD,1)低位金叉选股

差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA:=EMA(差异,9);

MACD:=(DIFF-DEA)*2;

低位金叉:交叉(差异,DEA)和差异二次金叉选股

差异:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA:=EMA(差异,9);

MACD:=(DIFF-DEA)*2;

JCCOUNT:=计数(交叉(差异,数据包络分析),BARSLAST(数据包络分析=0));

二次金叉:交叉(差异,DEA)和DEA绝地反弹

(1)

VAR1:=参考值(低,1);

VAR2:=SMA(ABS(低VAR1),13,1)/SMA(最大值(低VAR1,0),13,1)*100;

VAR3:=EMA(如果(关闭*1.2,VAR2*13,VAR2/13),13);

VAR4:=LLV(低,34);

VAR5:=HHV(VAR3,34);

VAR6:=如果(LLV(低,55),1,0);

VAR7:=EMA(如果(低)XL1:=MA(低,2)*0.96;

XL2:=MA(低,26)*0.85;

XL3:=REF(XL1,1)启动:=如果(XL3,0,VAR7*3),则为红色;

XG:启动25;

(2)

倒退((参考(关闭,1)关闭打开和ABS(关闭参考(关闭,1))/关闭A2:=过滤器(A1ND资本REF(V,1)=LLV(V,4)和V=REF(V,1)

HHV(V,3)=参考(V,1)和HHV(V,5)=参考(V,1)和HHV(V,21)=参考(V,1)

和V=REF(V,1)

010,T020;

1.三线粘合

M:=1;

M5:=MA(闭合,5);

M10:=MA(闭合,10);

M20:=MA(闭合,20);

K1:=最大值(最大值(M5,M10),最大值(M10,M20));

K2:=MIN(MIN(M5,M10),MIN(M10,M20));

A:=最大(M5,最大(M10,M20))/MIN(M5,最小(M10,M20))A1:=(K1/K2-1)A2:=(K1/K2-1)A3:=VREF(V,1)*1.5和VMA(V,5);

XG:A和A1,A2和A3,CO和VREF(V,1),资本2.三条线粘合

N1:=5;N2:=10;N3:=20;M:=1;

MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);

A3:=VREF(V,1)*1.5和VMA(V,5);

最大值(MA1,最大值(MA2,MA3))/MIN(MA1,最小值(MA2,MA3))CO和VREF(V,1)和财务(7)A3及资本3.均线粘合

M:=1;

M5:=MA(闭合,5);

M10:=MA(闭合,10);

M20:=MA(闭合,20);

K1:=最大值(最大值(M5,M10),最大值(M10,M20));

K2:=MIN(MIN(M5,M10),MIN(M10,M20));

A:=最大(M5,最大(M10,M20))/MIN(M5,最小(M10,M20))A1:=(K1/K2-1)A2:=(K1/K2-1)A3:=VREF(V,1)*1.5和VMA(V,5);

XG:A和A1以及A2和A3;

3.金叉选股指标

快线:=均线(均线)(均线(收盘,2,2,2),;

慢线:=EMA(参考(快线,1),2);

A3:=VREF(V,1)*1.5和VMA(V,5);

交叉(快线,慢线) 和CO和

五 =MA(V,21)和VREF(V,1),资本

知道通达信这个指标源码,怎样编出这个指标的选股公式?

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

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

A:=IF(CROSS(0,DEA),1,0);

A1:=IF(DIFF0 AND CROSS(DIFF,DEA),1,0);

SS:=IF(A,SUM(A1,0),0);

SSB:=HHV(SS,0);

SSS:=SUM(A1,0);

W底选股:SSS-SSB=2 AND SSSREF(SSS,1);

N:=20;

MID:=MA(C,N);

VART1:=POW((C-MID),2);

VART2:=MA(VART1,N);

VART3:=SQRT(VART2);

UPPER:=MID+2*VART3;

LOWER:=MID-2*VART3;

BOLL:=REF(MID,1);

UB:=REF(UPPER,1);

LB:=REF(LOWER,1);

LOWER1:=MID-VART3;

LB1:=REF(LOWER1,1);

股价线:=(C-LB1)/(UB-LB)*100;

趋势线:=MA(股价线,6);

VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);

准备建仓:EMA(IF(L= LLV(L,30),VARC,0),3);

VARO5:=LLV(LOW,27);

VARO6:=HHV(HIGH,34);

VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;

建仓区:VARO710;

下单:CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10);

BIAS1:=(C-MA(C,6))/MA(C,6)*100;

BIAS2:=(C-MA(C,12))/MA(C,12)*100;

BIAS3:=(C-MA(C,24))/MA(C,24)*100;

BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;

乖离1:=MA(BIAS,3);

低买:CROSS(BIAS,乖离1) AND 乖离1-9;

TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=(SUM(IF(((HD 0) AND (HD LD)),HD,0),5) );

DMM:=SUM(IF(((LD 0) AND (LD HD)),LD,0),5);

神偷线:=(((DMP ) * 100) /TTR);

辅助线:=((DMM * 100) /TTR);

动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));

ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);

VAR3:=MA(CLOSE,2);

VAR7:=REF(VAR3,1);

【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);

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

CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;

K:=SMA(RSV,3,1);

LC:= REF(CLOSE,1);

RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*500-250;

X:CROSS(CCI,-100) AND K-100 ;

X改成:=CROSS(CCI,-100) AND K-100 AND CROSS(RSI1,-90);

MA2:=EMA(C,2);MA5:=EMA(C,5);

MA13:=EMA(C,13);

MA34:=EMA(C,34);

MA55:=EMA(C,55);

YCX:=MA5=REF(MA5,1);

H1:=MAX(MAX(MA5,MA13),MA34);

L1:=MIN(MIN(MA5,MA13),MA34);

一阳穿三线:= H1C AND OL1 AND YCX AND MA2REF(MA2,1);

满仓选股:一阳穿三线;

准备:=动向趋势线 88 AND (神偷线 5.8);

VAR2:=0.0001*AMOUNT,;

MA1:=0.0001*MA(AMOUNT,5);

M2:=0.0001*MA(AMOUNT,10);

百日地量:=(VAR2,100)=VAR2;

VAR1:=(CLOSE*2+HIGH+LOW)/4;

SK:= EMA(VAR1,13)-EMA(VAR1,73);

SD:= EMA(SK,2);

买点选股:(CROSS(SK,SD) AND SK-0.04 AND (C-REF(C,1))/REF(C,1)=0.03)

OR (CROSS(SK,SD) AND SK=-0.14 ) OR (CROSS(SK,SD) AND SK=0.05

AND (V/MA(V,5)2 OR C/REF(C,1)0.035));

AA05:=MA(C,5);

五日乖离率:=(C-AA05)/AA05*100;

BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;

速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);

加速度5:=EMA((速度5-REF(速度5,1)),3);

AA10:=MA(C,10);AA20:=MA(C,20);

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

AA30:=MA(C,30);

三拾日乖离率:=(C-AA30)/AA30*100;

(AA20-AA30)REF((AA20-AA30),1) AND AA20REF(AA20,1) AND AA30REF(AA30,1);

(AA30-AA20)REF((AA30-AA20),1) AND AA20REF(AA20,1) AND AA30REF(AA30,1);

BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;

强势狙击选股:=FILTER(BB3030 AND BB1045 AND CROSS(BB05,60),10);

加仓:=FILTER(COUNT(CROSS(BB05,30),5)=1 AND AA05REF(AA05,1) AND 三拾日乖离率REF(三拾日乖离率,1) AND AA10REF(AA10,1)

AND 加速度5REF(加速度5,1) AND 速度5REF(速度5,1) ,10) ;

MR:=COUNT(CROSS(五日乖离率,0),3)=1 AND 三拾日乖离率REF(三拾日乖离率,1) AND AA05REF(AA05,1) AND (C/REF(C,1)-1)*1005 AND REF(C,1)AA30;

青云直上选股:=FILTER(MR,10);

QUANCLOSE:=(DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100=-19

AND C/REF(C,25)=1.1 AND IF((((HIGH (LOW * 1.051)) AND (COUNT((HIGH (LOW * 1.051)),5) 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) 78) OR

(((CLOSE / MA(CLOSE,60)) * 100) 74))),2,0) AND

(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)

AND REF(SMA((CLOSE-LLV(LOW,8))/

(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)

AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)23 ,1.5,0) AND FILTER((C/MA(C,48))0.75 AND (C/MA(C,70))0.70 AND

((C-L)/C0.02 OR CREF(C,1)*1.01) AND VREF(V,1)*2.8 AND (COUNT(CO*0.93,2)=2 OR COUNT(H/L1.1,5)3),3) ;

AA:=1;

BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100100,100,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);

DD:=CC/BB;

量异动:=IF(AA,DD/REF(DD,1),0);

选股:=DD/REF(DD,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

逃顶:CROSS(80,RSI);

{很高兴回答你的问题,希望帮到你}

求通达信顶底趋势指标源码

顶底趋势指标(通达信)

此指标是我精心收藏的指标,无未来函数,真正的好指标。图片演示在下面网址里.

趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1) ,COLORGREEN;

STICKLINE(趋势50,趋势,50,4,0),COLOR32329B;

STICKLINE(50趋势,趋势,50,4,0),COLOR326400;

IF(趋势50, 趋势,DRAWNULL), COLORRED;

RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

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

CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);

DEA:=EMA(DIFF,6);

MACD:=2*(DIFF-DEA);

转点:=IF(KD AND CCI0 AND DIFFDEA AND MACD0,1,0);

STICKLINE(转点=1,50,50,6,0),COLORYELLOW;

STICKLINE(转点=0,50,50,6,0),COLORCYAN;

顶部:90,COLORYELLOW;

底部:10,COLORCYAN;

判断:SMA(趋势,3,1),COLORFF00FF, LINETHICK2;

IF( 趋势判断,判断,DRAWNULL), COLORYELLOW, LINETHICK2;

IF( 趋势判断,判断,DRAWNULL) ,COLORFFF000,LINETHICK2;

DRAWICON(CROSS(趋势,判断),判断,1);

DRAWICON(CROSS(趋势,顶部),顶部,2);

LC:= REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;

VAR2:=SMA(VAR1,9,1)+100;

VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR4:=SMA(VAR3,3,1);

VAR5:=SMA(VAR4,3,1)+100;

VAR6:=VAR5-VAR2;

短线1: IF(VAR645,VAR6-45,0),COLORA6B8C1;

VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;

VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);

VAR5Q:=LLV(LOW,30);

VAR6Q:=HHV(VAR4Q,30);

VAR7Q:=IF(MA(CLOSE,58),1,0);

VAR8Q:=EMA(IF(LOW=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;

VR2:=REF(LOW,1);

VR3:=SMA(ABS(LOW-VR2),3,1)/SMA(MAX(LOW-VR2,0),3,1)*100;

VR4:=EMA(IF(CLOSE*1.3,VR3*10,VR3/10),3);

VR5:=LLV(LOW,30);

VR6:=HHV(VR4,30);

VR7:=IF(MA(CLOSE,58),1,0);

VR8:=EMA(IF(LOW=VR5,(VR4+VR6*2)/2,0),3)/618*VR7;

VR9:=IF(VR8100,100,VR8);

主力进场:STICKLINE(VR9-150,0,VR9,3,0), , COLORFF00FF;

洗盘:IF(VR9REF(VR9,1),VR9,0),COLORGREEN,NODRAW;

STICKLINE(VR9REF(VR9,1),0,VR9,3,0),COLORGREEN;

短线获利:STICKLINE(REF("KDJ.J",1)0 AND "KDJ.J"0,60,25,2,0),COLORYELLOW;

VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

VARK2:=REVERSE(VARK1);

VARK3:=SMA(VARK1,3,1);

逃顶:=CROSS(82,RSI);

STICKLINE( 逃顶,逃顶,20,5,0),COLORFF5500;

STICKLINE( 逃顶,逃顶,30,3,0),COLORFF8800;

STICKLINE( 逃顶,逃顶,30,2,0),COLORFFAA00;

STICKLINE( 逃顶,逃顶,30,1,0),COLORFFCC00;

D1:=(C+L+H)/3;

D2:=EMA(D1,6);

D3:=EMA(D2,5);

BBUY:=CROSS(D2,D3);

风险区:80,COLORFF85FF;

安全区:20,COLORYELLOW,POINTDOT;

天线:100,COLORFFFF00;

强弱线:50,COLORGREEN,POINTDOT;

DRAWICON(BBUY,(LOW *1),1);

VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;

DRAWICON(CROSS(82,VARR1),HIGH,15);

DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;

MAV:=(2*C+H+L)/4;

VAR9:=LLV(LOW,34);

VAR7:=HHV(HIGH,34);

SK:= EMA((MAV-VAR9)/(VAR7-VAR9)*100,13);

SD: EMA(0.667*REF(SK,1)+0.333*SK,2);

高抛:80, POINTDOT;

低吸:20, POINTDOT;

强弱分界:50, POINTDOT;

DRAWTEXT(CROSS(SD,16),低吸,'●主力'),COLORF0FF00,LINETHICK3;

2条大神的评论

  • avatar
    访客 2022-07-15 下午 02:04:35

    ),COLORYELLOW;STICKLINE(转点=0,50,50,6,0),COLORCYAN;顶部:90,COLORYELLOW;底部:10,COLORCYAN;判断:SMA(趋势,3,1),COLORFF00FF, LINETH

  • avatar
    访客 2022-07-15 下午 10:22:35

    UM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH

发表评论