通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信资金流入预警指标公式

  

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

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

VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;  

VAR6:=(VAR3+VAR4+VAR5)/3;  

VAR7:=EMA(VAR6,5);  

指标:EMA(EMA(VAR3,5),5)*3,COLORSTICK;  

VAR8:=IF(VAR6<=-20,10,0);  

VAR9:=HHV(VAR8,10);  

STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;  

VARA:=IF(VAR9ANDCROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);  

K:EMA(VAR7,5)*2, COLORFF00FF;  

D:EMA(K,5), COLORWHITE;  

J:K*3-D*2,COLORYELLOW;  

VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5))ANDJ>10;  

换手:VOL/CAPITAL*100, COLORGREEN;  

成交〖万手〗:VOL/10000,COLORYELLOW;  

DRAWTEXT(VAR8=10ANDFILTER(VAR8=10,5),-10{15},'接近底部'),LINETHICK1,COLORYELLOW;  

STICKLINE(VAR8=10ANDFILTER(VAR8=10,5),-1.6{20},-10,5,0),COLORYELLOW;  

DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;  

STICKLINE((VARA=20),0,10,5,0),COLORWHITE;  

VARC:=(ZIG(3,5)>REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND(REF(ZIG  

(3,5),2)<=REF(ZIG(3,5),3));  

VARD:=(ZIG(3,5)<REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))AND(REF(ZIG  

(3,5),2)>=REF(ZIG(3,5),3));  

STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF;  

DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF;  

STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;  

DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;  

VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;  

VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA  

((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);  

VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA  

((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);  

VAR11:=VARF<REF(VAR10,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);  

DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;  

STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;  

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

VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));  

VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));  

VAR15:=IF(VAR13>=150ANDVAR13<200ANDVAR14>=150ANDVAR14<200,10,0);  

VAR16:=IF(VAR13<=-150ANDVAR13>-200ANDVAR14<=-150ANDVAR14>-200,-10,VAR15);  

VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;  

VAR18:=100-ABS(VAR17);  

VAR19:=IF(VAR18<90,VAR18,100);  

VAR1A:=IF(VARE>0,VARE,0);  

VAR1B:=IF(VAR14>=200ANDVAR13>=150,15,IF(VAR14<=-200ANDVAR13<=-150,-15,VAR16))+60;  

VAR1C:=VAR1A>48ANDVAR1B>60ANDVAR19<100;  

DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66;  

STICKLINE(VAR1CANDCOUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;  

N:=5;  

N1:=21;  

VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-  

3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;  

VAR2:=8,COLORGREEN,LINETHICK0;  

小试牛刀:IF(CROSS(VAR1,VAR2),8,0),STICK,COLORRED;  

DRAWICON(小试牛刀&gt;0,8,23);  

发现庄迹:IF(VAR1&lt;=8,15,0),STICK,COLORCYAN,LINETHICK2;  

VARO5:=LLV(LOW,27);  

VARO6:=HHV(HIGH,34);  

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

建仓区:IF((VARO7&lt;10),100,118),COLOR00CCFF,LINETHICK1;  

CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;  

CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));  

CD3:=SMA(SMA(CD2,3,1),3,1);  

CD4:=(CD3-SMA(CD1,9,1))-0.5;  

CD5:=IF(CD4&gt;0.00,CD4,0.00);  

CD6:=REF(CD5,1);  

VAR81:=MA(C,9),COLORRED;  

空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORGREEN;  

减仓空仓:CROSS(CD6,CD5),COLORGREEN;  

DRAWICON(减仓空仓&gt;0,113,2);  

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

VAR2A:=SMA(VAR1A,9,1)+100;  

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

VAR4A:=SMA(VAR3A,3,1);  

VAR5A:=SMA(VAR4A,3,1)+100;  

VAR6A:=VAR5A-VAR2A;  

端庄窝:=IF(VAR6A&gt;N1,VAR6A-N1,0),COLORLIRED;  

果断出击:IF(CROSS(端庄窝,0.01),18,0),STICK,COLOR0000CC,LINETHICK2;  

DRAWICON(果断出击&gt;0,18,1);  

XG:=CROSS(端庄窝,0.01);  

LC:=REF(CLOSE,1);  

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

E:=CROSS(83,RSI);  

STICKLINE(REF(端庄窝,1)&lt;端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED;  

STICKLINE(REF(端庄窝,1)&gt;端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00;  

红持绿空:0,COLORGREEN;  

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

VAR2:=EMA(VAR1,21);  

VAR3:=STD(VAR1,21);  

VAR4:=((VAR1-VAR2)/VAR3*100+200)/4;  

VAR5:=(EMA(VAR4,89)-25)*1.56;  

VAR6:=EMA(VAR5,5)*1.22;  

VAR7:=EMA(VAR6,3);  

VAR8:=3*VAR6-2*VAR7;  

VAR1A:=IF(CROSS(VAR6,VAR8)ANDCROSS(VAR7,VAR8)ANDCROSS(VAR7,VAR6),1,0);  

VAR1B:=EMA(CLOSE,3)-EMA(CLOSE,89);  

VAR1C:=EMA(VAR1B,21);  

VAR1D:=(VAR1B-VAR1C)*10;  

VAR1F:=POW(VAR1D,3)*0.1+POW(VAR1D,2);  

拉升资金:=IF(VAR1D&gt;0.015,VAR1F,0)/45;  

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

VAR10:=EMA(VAR9,13);  

VAR11:=2*(VAR9-VAR10);  

主力资金:=POW(VAR11,3)*0.1+POW(VAR11,1);  

进仓:CROSS(拉升资金,0.01)COLORRED;

通达信资金流入预警指标公式(通达信公式)

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

AA赋值:收盘价的11日简单移动平均

AB赋值:收盘价的20日简单移动平均

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

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

AA>AB AND DEA>0 AND 最低价<AA AND 收盘价>AB

每日通达信公式解答:

  

公式编写要求:  

条件是:1.均线ma11大于ma20;2.macd之dea大于0;3.最低价小于ma11,且收盘价大于ma20(收盘价也可以小于ma11);4.不考虑开盘价和最高价(开盘价可以大于ma11也可以小于ma11)。  

公式编写方法:  

AA:=MA(C,11);  

AB:=MA(C,20);  

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

DEA:=EMA(DIF,9);  

AA>ABANDDEA>0ANDL<AAANDC>AB;

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