通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信买卖趋势主图指标公式

  

A:=(3*C+L+O+H)/6;  

X:=(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)  

+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;  

S2:=SMA(C,3,1);  

S6:=SMA(C,5,1);  

DK:=2*(S2-S6);  

主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;  

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

IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;  

IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;  

IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;  

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);  

MA5:=MA(C,5);  

MA10:=MA(C,10);  

MA30:=MA(C,30);  

FA:=BARSLAST(CROSS(MA10,MA5))ANDCROSS(MA5,MA10);  

FB:=FAANDMA5>MA30ANDMA10>MA30ANDMA10>REF(MA10,1);  

DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;  

V1:=EMA(CLOSE,5);  

V2:=EMA(EMA(CLOSE,90)*1.01,10);  

DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;  

VAR1:=LLV(LOW,21);  

VAR2:=HHV(HIGH,21);  

AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);  

AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);  

AB:=CROSS(AK1,AK);  

DRAWTEXT((AB=1),(LOW*0.99),'○牛窝'),COLORYELLOW;  

AA1:=AMOUNT/V;  

BB1:=L<AA1*0.9;  

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;  

DD1:=L<MA(C,5)*0.921;  

EE1:=V<MA(V,5)*1.5;  

老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0,COLOR0099FF;  

DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;  

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

VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(VAR3AA>0),91,0);  

DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;  

DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;  

A1AA:=9;  

A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);  

DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;  

VAR6:=REF(C,1);  

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

DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;  

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

VAR2:=2*ABS(VA);  

VAR3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));  

VAR4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));  

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

VAR6:=(VAR5-MA(VAR5,10))/(0.015*AVEDEV(VAR5,10));  

VAR7:=(VAR5-MA(VAR5,30))/(0.015*AVEDEV(VAR5,30));  

VAR8:=IF(VAR6>=150ANDVAR6<200ANDVAR7>=150ANDVAR7<200,10,0);  

VAR9:=IF(VAR6<=-150ANDVAR6>-200ANDVAR7<=-150ANDVAR7>-200,-10,VAR8);  

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

VARB:=100-ABS(VARA);  

VARC:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);  

VARD:=3*SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);  

VARE:=REF(LOW,1)*0.9;  

VARF:=LOW*0.9;  

VA0:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;  

VA1:=EMA(VA0,30);  

VA2:=VA1-CLOSE;  

VA3:=REF(CLOSE,1);  

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

VA5:=SMA(MAX(CLOSE-VA3,0),13,1)/SMA(ABS(CLOSE-VA3),13,1)*100;  

VA6:=BARSCOUNT(CLOSE);  

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

VA8:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;  

VA9:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;  

VAA:=(SMA(VA9,4,1)-50)*2;  

VAB:=SMA(VAA,3,1);  

VAC:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;  

VAD:=SMA(VAC,4,1);  

VAE:=SMA(VAD,3,1);  

VAF:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;  

VAR20:=IF(VA7<=25ANDVA8<-95ANDVAF>20ANDVAB<-30ANDVAE<30ANDVA2>=-0.25ANDVA4<22ANDVA5<28ANDVA6>50,80,0);  

大趋势:VAR3;  

顶线:IF(VARB<90,VARB,100);  

多方:IF(VA>0,VA,0),LINESTICK;  

空方:0-IF(VA<0,VAR2,0),LINESTICK;  

抄底:VAR20ANDPWINNER(5,CLOSE)<1.1,COLORRED;  

预警系统:IF(VAR7>=200ANDVAR6>=150ORCROSS(65,多方),15,IF(VAR7<=-200ANDVAR6<=-150,-15,VAR9))+65,COLOREE00EE;  

STICKLINE(VAR3<=REF(VAR4,1),VAR3,VAR4,8,0),COLORWHITE;  

STICKLINE(VAR3>REF(VAR4,1),VAR3,VAR4,8,0),COLORRED;  

VAR21:=CLOSE>MA(CLOSE,20)ANDMA(CLOSE,20)>=REF(MA(CLOSE,20),1);  

VAR22:=CLOSE;  

VAR23:=多方>60AND预警系统>65AND顶线=100;  

VAR24:=多方>48AND预警系统>65AND顶线<100;  

VAR25:=空方<-38AND预警系统<65;  

VAR26:=抄底>50AND顶线<90;  

VAR27:=VAR3>REF(VAR4,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);  

VAR28:=VAR3<=REF(VAR4,1)ANDCLOSE=REF(空方,1)ANDVARC;  

DRAWTEXT(VAR21ANDCOUNT(VAR21,30)=1,10,'上升通道!'),COLORYELLOW;  

VAR29:DRAWTEXT(VAR22ANDCOUNT(VAR22,30)=1,55,'下降通道!');  

VAR2A:DRAWTEXT(VAR23ANDCOUNT(VAR23,30)=1,55,'上涨过急!');  

VAR2B:DRAWTEXT(VAR24ANDCOUNT(VAR24,30)=1,75,'庄家出货!');  

VAR2C:DRAWTEXT(VAR25ANDCOUNT(VAR25,30)=1,50,'有小反弹!');  

VAR2D:DRAWTEXT(VAR26ANDCOUNT(VAR26,30)=1,30,'抢反弹!');  

VAR2E:DRAWTEXT(VAR27ANDCOUNT(VAR27,30)=1,-10,'资金进场!');  

DRAWTEXT(VAR28ANDCOUNT(VAR28,30)=1,90,'见顶回落!'),COLORYELLOW;  

AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;  

VAR2:=EMA(EMA(EMA(VAR1,4),4),4);  

SJ:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK;  

SD:MA(SJ,2);  

SK:MA(SJ,1);  

VAR3:=CROSS(SK,SD)ANDSK<0;  

VAR4:=CROSS(SK,0);  

VAR5:=CROSS(SK,SD)ANDSK>0;  

买一:VAR3,STICK;  

买二:VAR4ORVAR5,STICK;  

VAR6:=CROSS(SD,SK);  

卖出:VAR6,STICK;  

强弱分界:0,CIRCLEDOT;  

紫柱  

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

VAR2:=EMA(EMA(EMA(VAR1,4),4),4);  

SJ:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK;  

SD:=MA(SJ,2);  

SK:=MA(SJ,1);  

AA:CROSS(SK,SD)ANDSK<0;  

绿柱  

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

VAR2:=EMA(EMA(EMA(VAR1,4),4),4);  

SJ:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK;  

SD:=MA(SJ,2);  

SK:=MA(SJ,1);  

VAR4:=CROSS(SK,0);  

VAR5:=CROSS(SK,SD)ANDSK>0;  

AA:VAR4ORVAR5;

通达信买卖趋势主图指标公式(通达信公式)

指标公式知识:

主力出货在分时图上的特征

一、跌破均价线卖点。均价线反映了当日买入的平均价格,它的走向也反映了市场投资者的买卖意愿。如果股价跌破均价线,说明最近的买入意愿已经严重下降,卖出意愿增强了很多,投资者愿意以低于均价的价格出货足以说明当时空头占据优势,场内获利盘和恐慌盘常常会跟风出逃,股价短期内将步入调整周期,机会较小,应及时卖出。

二、跌破前高卖点。股价逐波上涨,然后股价下滑,跌破前期高点位置。前期高点通常可作为一个重要的支撑位,如果股价跌破前高,意味着防守的一道屏障已经被突破,后市继续下跌的可能性极大。此时,上涨量能难以维系,股价反转向下,短期内多方无力有效反攻,果断出逃为上策。

三、分时线与均价线背离卖点。分时线走高,均价线没有跟随。说明市场不认同股价上涨,追涨意愿不足。既然市场大部分人不认同上涨,则后市下跌的可能性较大。此时从技术上来看,股价前期整体涨幅较大,虽然分时线快速走高,但均价线并不跟随向上,同时也缺乏成交量配合,这样上涨反而成为及时出货的好机会。

每日通达信公式解答:


  

编写条件:  

回补向下跳空缺口选股公式。  

编写方法:  

XG:O<REF(L,1)ANDH>REF(L,1);


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