通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信量价分析选股公式

  

{量价线  

每次上穿0轴都是买入时机}  

LS26:=EMA(C,2)-EMA(C,150);LS27:=EMA(LS26,100);  

LS28:=2*(LS26-LS27);  

LS29:=POW(LS28,3)*0.1+POW(LS28,1);  

黑马线:IF(LS28>0.1,LS29,0)*3,LINETHICK2;  

量价线:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100,LINETHICK2;  

量价上穿黑马:0;  

上:=SMA(HIGH,21,2)*1.05;  

DRAWTEXT(FILTER(CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,1)ANDHIGH>上ANDCLOSE<上,5),HIGH+0.05,'-减仓'),COLORFFFFFF;  

下轨道:SMA(LOW,21,2)*0.969,POINTDOT,COLORFFFF00;  

BMA:=MA(CLOSE,118);  

阻挡:=SMA(HIGH,21,2)*1.05;  

RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;  

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

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

J:=3*K-2*D;  

RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;  

K12:=SMA(RSV12,3,1);  

D12:=SMA(K12,3,1);  

J12:=3*K12-2*D12;  

RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;  

K24:=SMA(RSV24,3,1);  

D24:=SMA(K24,3,1);  

J24:=3*K24-2*D24;  

支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));  

压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),COLORFF0000;  

U2L:=IF(CLOSE>=MA(CLOSE,20),80,50);  

L2L:=IF(CLOSE>=MA(CLOSE,20),50,20);  

RH1:=IF(J<U2LANDREF(J,1)>=U2L,HHV(REF(HIGH,1),(BARSLAST(J>=U2LANDREF(J,1)<U2L))-1),REF(HHV(REF(HIGH,1),(BARSLAST(J>=U2LANDREF(J,1)<U2L))-1),BARSLAST(J<U2LANDREF(J,1))));  

RH4:=IF(HIGH>RH1,LOW,REF(LOW,BARSLAST(HIGH>RH1)));  

RH42:=IF(HIGH>RH1,J,REF(J,BARSLAST(HIGH>RH1)));  

RH5:=IF(HIGH>RH4ANDJ<RH42ANDJ<J24,HIGH,REF(HIGH,BARSLAST(HIGH>RH4ANDJ<RH42ANDJ<J24)));  

RL1:=IF(J>L2LANDREF(J,1)<=L2L,LLV(REF(LOW,1),(BARSLAST(J<=L2LANDREF(J,1)>L2L))-1),REF(LLV(REF(LOW,1),(BARSLAST(J<=L2LANDREF(J,1)>L2L))-1),BARSLAST(J>L2LANDREF(J,1))));  

RL4:=IF(LOW<RL1,HIGH,REF(HIGH,BARSLAST(LOW<RL1)));  

RL42:=IF(LOW<RL1,J,REF(J,BARSLAST(LOW<RL1)));  

RL5:=IF(LOW<RL4ANDJ>RL42ANDJ>J24,LOW,REF(LOW,BARSLAST(LOW<RL4ANDJ>RL42ANDJ>J24)));  

CB:=AMOUNT/VOL/100;  

CD:=CB>HIGHORCB<LOW;  

黑马趋势:=MA(CLOSE,3);  

MAP:=MA(CLOSE,8);  

AA5:=MA(CLOSE,21);  

AA10:MA(CLOSE,8),COLOR0000FF;  

AA12:MA(CLOSE,12),COLOR0000FF;  

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

BB12:=(ATAN(AA12-REF(AA12,1)))*3.1416*10;  

MA13:=MA(CLOSE,13);  

DRAWTEXT(FILTER(CLOSE/OPEN>1.04ANDCLOSE-REF(CLOSE,1)>0ANDCLOSE>下轨道ANDAA10-REF(AA10,1)>0ANDCLOSE<上,3),LOW-0.07,'追击'),COLORD1E768;  

DRAWBAND(AA12,RGB(0,224,0),AA10,RGB(255,0,0));  

VARD:=(OPEN+LOW+HIGH+CLOSE)/4;  

支撑:=EMA(VARD,5);  

短期底部:=LLV(OPEN,30);  

DRAWTEXT(CROSS(黑马趋势,短期底部)ANDRL5-REF(RL5,1)>0AND黑马趋势-REF(黑马趋势,1)>0AND黑马趋势>1ANDLOW<=支撑位ANDCLOSE>支撑位ANDHIGH<压力位,LOW-0.15,'←黑马发现'),COLORFFFF00;  

DRAWTEXT(CROSS(黑马趋势,RL5)AND黑马趋势-REF(黑马趋势,1)>0ANDHIGH<压力位ANDLOW<=短期底部ANDCLOSE>支撑位ANDCD<1ANDCLOSE>OPENANDCLOSE>RL5,LOW,'←短买'),COLORFF0000;  

DRAWTEXT(FILTER(LOW<=短期底部ANDCLOSE-REF(CLOSE,1)>CLOSEANDMA(CLOSE,10)-REF(MA(CLOSE,10),1)>0ANDWINNER(CLOSE)<0.05AND短期底部=RL5ANDLOW<=RL5ANDHIGH<压力位,3),LOW,'★机会难得'),COLORFFFFCC;  

历史大底:DRAWTEXT(FILTER(LLV(LOW,0)ANDWINNER(CLOSE)<0.08ANDLOW<=短期底部ANDCLOSE>短期底部ANDJ<80ANDCLOSE/OPEN>1.08,20),LOW-0.65,'★历史大底');  

DRAWTEXT(FILTER(LOW<=短期底部ANDCLOSE>压力位ANDAA5-REF(AA5,1)>0ANDJ<80ANDCLOSE>支撑位AND黑马趋势-REF(黑马趋势,1)>0ANDWINNER(CLOSE)<0.1ANDCLOSE>OPEN,5),LOW-0.15,'★黑马登天'),COLORCDEEC5;  

X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;  

X2:=EMA(X1,10);  

X3:=REF(X2,1);  

X4:=(REF(HIGH,1)+REF(LOW,1))/2;  

X5:=MA(CLOSE,21)+2*STD(CLOSE,21);  

X6:=REF(CLOSE,1);  

X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;  

X8:=CROSS(79,X7);  

X9:=FILTER(X8,4);  

MAP1:=MA(CLOSE,60);  

均线30:=MA(CLOSE,30);  

均线89:=MA(CLOSE,89);  

均线:=MA(CLOSE,16);  

均线34:=MA(CLOSE,34);  

均线55:=MA(CLOSE,55);  

VAR1:=EMA(CLOSE,8);  

VAR2:=EMA(VAR1,20);  

VAR3:=CROSS(VAR1,VAR2);  

VAR4:=VAR1<MA(CLOSE,60);  

VAR5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;  

VAR6:=SMA(VAR5,5,1);  

VAR7:=SMA(VAR6,8,1);  

VAR8:=CROSS(VAR6,VAR7)ANDVAR7<16;  

VAR9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60)ANDVAR8;  

VARA:=IF(CLOSE>1000,VAR8,VAR9);  

黑马起步:=VAR3ANDVAR4;  

逃遁:=VARA;  

均线20:=MA(CLOSE,20);  

均线120:=MA(CLOSE,120);  

牛熊线:=MA(CLOSE,250);  

VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));  

VB:=MA(CLOSE,20)>MA(CLOSE,120);  

VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));  

VD:=MA(CLOSE,20)<MA(CLOSE,120);  

VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));  

VF:=MA(CLOSE,20)>MA(CLOSE,250);  

VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));  

DRAWTEXT(FILTER(OPEN>均线120AND均线20<均线120ANDLOW<=均线120AND均线20-REF(均线20,1)>0ANDCLOSE>OPENAND均线120-REF(均线120,1)>0ANDHIGH<RH5ANDCLOSE>=均线120,15),LOW,'★120跳马'),COLOR89E000;  

DRAWTEXT(VAAND均线120-REF(均线120,1)>0ANDHIGH<RH5ANDCLOSE>OPEN,LOW,'★宝马望月'),COLORFFFFFF;  

DRAWTEXT(均线-REF(均线,1)>0ANDCROSS(均线20,均线120)ANDLOW<=均线120ANDCLOSE>=均线120,LOW,'三线开花'),COLORFFFFFF;  

短期底部2:LLV(HIGH,30),LINETHICK2,COLOR0000FF;  

上轨:SMA(HIGH,21,2)*1.092,POINTDOT,COLORFFFFFF;  

中轨道:SMA(HIGH,21,2)*1.017,POINTDOT,COLORFFFFFF;  

DRAWTEXT(FILTER(LOW<下轨道ANDCLOSE>MA(CLOSE,15)ANDCLOSE>短期底部2ANDHIGH<压力位,10),LOW,'★短线5%'),COLOR9DC522;  

DRAWTEXT(HIGH>=均线120ANDCLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,1)ANDHIGH>上ANDCLOSE<上ANDCLOSE<均线120,HIGH+0.05,'减仓'),COLORFF0000;  

DRAWTEXT(FILTER(HIGH>阻挡ANDCLOSE<阻挡,5),HIGH+0.19,'←逃命')COLORYELLOW;  

DRAWTEXT(VE>VGANDHIGH<阻挡,LOW-0.95,'★★黑马短线'),COLORFFFF00;  

DRAWTEXT(FILTER(OPEN<X2ANDCLOSE>X2AND支撑-REF(支撑,1)>0AND支撑-REF(支撑,1)>0ANDCLOSE<阻挡AND均线-REF(均线,1)>0ANDCLOSE>=均线ANDHIGH<阻挡ANDAA10-REF(AA10,1)>0AND阻挡-REF(阻挡,2)>0,11),LOW-0.11,'★快马加鞭'),COLOR0000FF;  

DRAWTEXT(FILTER(OPEN<X2ANDWINNER(CLOSE)<0.2ANDCLOSE>X2ANDX2-REF(X2,1)>0ANDHIGH<阻挡ANDCLOSE-REF(CLOSE,1)>0.35,4),LOW-0.05,'★黑马狂奔'),COLORD18073;  

DRAWTEXT(CROSS(支撑,均线)ANDHIGH<中轨道ANDWINNER(CLOSE)<0.2ANDCLOSE<阻挡ANDCLOSE>OPENANDLOW<=X2ANDCLOSE>=X2ANDCROSS(支撑,X2),LOW,'★黑马起步'),COLORFFFF00;  

DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLORB4FF00;  

DRAWTEXT(X9,HIGH*1.03,'出货'),COLOR9000F5;  

DRAWTEXT(黑马起步>0ANDLOW<=X2AND均线-REF(均线,1)>0,LOW-0.11,'★黑马起步'),COLORFF0000;  

DRAWTEXT(逃遁>0,HIGH*1.14,'●逃命'),COLOR00FFFF;  

RDV:=SMA(LOW,8,1);  

DRAWTEXT(CROSS(K,D)ANDCLOSE>=OPENANDX2-REF(X2,1)>0ANDRDV-REF(RDV,1)>0ANDK<=33,LOW-0.08,'★黑马初现'),COLOR8500DE;  

DRAWTEXT(FILTER(LOW<=短期底部ANDWINNER(CLOSE)<0.2ANDCLOSE<牛熊线ANDHIGH<阻挡ANDX2-REF(X2,1)>0ANDCLOSE>OPENANDHIGH>=X3,5),LOW-0.03,'←黑马筑底'),COLOR85B256;  

RCK:=SMA(LOW,21,2)*0.95;  

趋势线:=SMA(LOW,5,1);  

大胆买入:DRAWTEXT(CROSS(趋势线,RCK)ANDLOW<=X2ANDX2-REF(X2,1)>0,LOW,'←★大胆买入'),COLORE50000;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF5B00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLORFF7B00;  

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLORFF9B00;  

STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),COLOR1526CC;  

STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),COLOR1526DB;  

STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.2,0),COLOR1526F6;  

STICKLINE(CLOSE>OPEN,H,LOW,0,0),COLOR1526F6;  

STICKLINE(CLOSE/OPEN>1.04ANDCLOSE<阻挡ANDCLOSE-REF(CLOSE,1)>0,CLOSE,OPEN,3,0),COLOR0089FF;  

STICKLINE(CLOSE/OPEN>1.04ANDCLOSE<阻挡ANDCLOSE-REF(CLOSE,1)>0,CLOSE,OPEN,2,0),,COLOR00A9FF;  

STICKLINE(CLOSE/OPEN>1.04ANDCLOSE<阻挡ANDCLOSE-REF(CLOSE,1)>0,CLOSE,OPEN,1,0),,COLOR00D1FF;  

STICKLINE(CLOSE/OPEN>1.04ANDCLOSE<阻挡ANDCLOSE-REF(CLOSE,1)>0,H,L,0,0),COLOR00E4FF;  

STICKLINE(CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,1)ANDHIGH>阻挡ANDCLOSE<阻挡,OPEN,LOW,0,0),COLORFF76FF;  

STICKLINE(CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,1)ANDHIGH>阻挡ANDCLOSE<阻挡,CLOSE,OPEN,3,0),COLORFF00FF;  

STICKLINE(CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,1)ANDHIGH>阻挡ANDCLOSE<阻挡,CLOSE,OPEN,2,0),COLORFF76FF;  

STICKLINE(CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,1)ANDHIGH>阻挡ANDCLOSE<阻挡,CLOSE,OPEN,1,0),COLORFFA8FF;  

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

B6:=HHV(B1,4*15);  

B7:=LLV(B1,4*15);  

B8:=B6-B7;  

飞龙顶底线:=MA((B1-B7)/B8,2)*80;  

DRAWTEXT(FILTER(飞龙顶底线<=1ANDWINNER(CLOSE)<0.02ANDHIGH<趋势线ANDCLOSE>OPENANDLOW<=短期底部ANDCLOSE>短期底部,8),LOW-0.02,'←黑马寻底'),COLORE7DD1F;  

DRAWTEXT(FILTER(LOW<=短期底部ANDWINNER(CLOSE)<0.015ANDOPEN/CLOSE>0.99ANDJ-REF(J,1)>0ANDCLOSE>OPENANDHIGH<支撑位ANDCLOSE>短期底部,25),LOW-0.09,'←开始建仓'),COLOR00FFFF;  

DRAWTEXT(FILTER(LOW<=均线30ANDAA10-REF(AA10,1)>0AND均线-REF(均线20,1)>0AND趋势线-REF(趋势线,1)>0ANDCLOSE>=均线30ANDWINNER(CLOSE)<0.15ANDCLOSE/OPEN>1.01,3),LOW,'★天马奔月'),COLOR76B0FC;  

七天线:MA(C,7),COLORGRAY;  

工作线:(EMA(C,14)),POINTDOT,LINETHICK4,COLORYELLOW;  

生命线:(MA(C,25)),LINETHICK2,COLORMAGENTA;  

{不惑线:(MA(C,40)),COLORCYAN;}  

姊妹线:(EMA(C,56)),POINTDOT,COLORWHITE;  

A3:=EMA((((SLOPE(C,21))*20)+C),68);  

A4:=EMA(C,10);  

A5:=REF(C,2);  

A6:=((SMA((MAX((C-A5),0)),6,1))/(SMA(ABS((C-A5)),6,1)))*100;  

A7:=IF(((A6<(REF(A6,1)))AND(A6>79)),A6,0);  

A8:=LLV(L,21);  

A9:=HHV(H,21);  

A10:=EMA((((CLOSE-A8)/(A9-A8))*100),5);  

A11:=EMA((((CLOSE-A8)/(A9-A8))*50),13);  

A12:=EMA(((0.667*(REF(A10,1)))+(0.333*A10)),2);  

A13:=LLV(L,55);  

A14:=HHV(H,34);  

A15:=EMA((((C-A13)/(A14-A13))*100),3);  

A16:=(A11+A15)/2;  

A17:=EMA(((0.667*(REF(A15,1)))+(0.333*A10)),2);  

A18:=EMA(A16,5);  

A19:=EMA(((0.667*(REF(A18,1)))+(0.333*A18)),2);  

A20:=CROSS(A10,A11);  

A21:=(CROSS(A10,A19))AND(A19<30);  

A22:=A21*0.6;  

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

A24:=EMA(A23,6);  

A25:=EMA(A24,5);  

A26:=CROSS(A24,A25);  

DRAWICON(A26,(LOW/1.015),1),LINETHICK2,COLORMAGENTA;  

STICKLINE(((C>=工作线)AND(C>=O)),H,L,0,1),COLORRED;  

STICKLINE(((C>=工作线)AND(C>=O)),O,C,2,1),COLORRED;  

STICKLINE(((C>=工作线)AND(C<=O)),H,L,0,0),COLORRED;  

STICKLINE(((C>=工作线)AND(C<=O)),O,C,2,0),COLORRED;  

STICKLINE(((C<工作线)AND(C>=O)),H,L,0,1),COLORGREEN;  

STICKLINE(((C<工作线)AND(C>=O)),O,C,2,1),COLORGREEN;  

STICKLINE(((C<工作线)AND(C<=O)),H,L,0,0),COLORGREEN;  

STICKLINE(((C<工作线)AND(C<=O)),O,C,2,0),COLORGREEN;  

N1:=16;N2:=26;N3:=9;  

价DIF:EMA(C,N1)-EMA(C,N2);  

价DEA:EMA(价DIF,N3);  

价MACD:(价DIF-价DEA)*2,COLORSTICK;  

论坛:=V/CAPITAL*100;  

量DIF:EMA(论坛,N1)-EMA(论坛,N2),colorred;  

量DEA:EMA(量DIF,N3),Colorff9933;  

量MACD:(量DIF-量DEA)*2,linethick0;  

STICKLINE(量MACD>0,0,量MACD,0.3,-1),COLORMAGENTA,linethick2;  

STICKLINE(量MACD<=0,0,量MACD,0.3,-1),COLORGREEN,linethick2;  

STICKLINE(价DIF>价DEA,价DIF,价DEA,0.5,-1),COLORF580F5;  

STICKLINE(价DIF<=价DEA,价DIF,价DEA,0.5,-1),COLORCCDD33;  

STICKLINE(量DIF>量DEA,量DIF,量DEA,0.5,-1),COLORYELLOW;  

STICKLINE(量DIF<=量DEA,量DIF,量DEA,0.5,-1),COLORGRAY;

通达信量价分析选股公式(通达信量价指标公式)

指标公式知识:

五种必卖的顶部形态

对于大多数的投资者而言,由于不知道应该在哪个位置上进行股票买卖,常常导致看对的股票赚小钱,看错的股票亏大钱的情况出现,因此在什么时机和价位卖出股票显得非常重要。

顶部形态一:落日残阳(高档阴孕阳)

股价在高档收出一根阳线,之后再收一根小阳线,且完全孕育在前一天阳线的实体内,这通常是股价上升乏力的迹象,表面股价即将回档整理。本组合图形看起来就像夕阳西下,虽然十分美丽,却常常是黑夜即将来临的先兆,如果接下来继续低开,可以考虑及早离场。

顶部形态二:一剑苍生(高档阴包剑形线)

股价快速上扬,在高档收出一跟吊颈线,次日股价再次跳高开盘,但在空头的强力攻击下无法在高出企稳,不得不向下回落,在前一天最低价之下收市,从而将前一吊颈线完全包容在内。本k线组合中空头连续两天打压股价,并终于在低位建立防线,通常表示股价已至天顶,行情即将回软。当第二天股价回到前一吊颈线收盘价之下时,一般应及时出脱手中持股。实际上,如果在第一天尾市拉高时能够出局,则是求得“高枕无忧”的最好办法。

顶部形态三:夕阳老鸦(高档下拖线)

股价高档拉出中大阳线,不料第二天买气突然消失,股价跳低至前一阳线实体内开盘,并在空头大力打压下低走至前一阳线开盘价下收市,形成高档下拖线。股价长期攀升本已造成大量活力盘,再遭此突然袭击,多头上攻欲望必定大打折扣,股价调整也势在必然。通常情况下,当股价跳低开盘,且无望反弹时,应考虑趁早了结。事实上,下拖线往往没有上影线,即使有也十分短小,因而一般等待反弹是不明智的。

顶部形态四:当头棒喝(高档覆盖线)

股价连续扬升,在高档走出大阳线,第二天股价顺势高开,由于受到获利回吐盘影响,股价持续滑落,并跌至前一阳线实体之内收盘,从而形成覆盖线组合。此覆盖线出现在长期上涨后的高位,可能构成行情见顶的信号。

顶部形态五:大雁南飞(高档跳空滑行线)

股价在高档升势加速,收出一根向上跳空高开低收的阴线,第二天股价跳高至前一阴线的实体内开盘,但无法企稳,尾市回落至比前一天收市价更低的价位收盘,形成高档的跳空滑行线。高档上跳阴线已是警戒信号,第二天再高开低走,更显弱势,此时可以考虑出货,可在收盘之前退出。

提示:具体操作中,投资者要认真研究个股基本面和消息面,以提防主力骗线。

每日通达信公式解答:

  

编写条件:  

10日内出现了1个向上跳空缺口且未回补的选股公式。  

编写方法:  

AA:=BArslAst(L>REF(H,1));  

XG:AA<=9andllv(l,aa+1)>REF(H,AA+1);

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