当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:日出东方,多色成交量,趋势为王

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、日出东方,波段类公式使用方法和注意事项:

第一,关于买入方法:第1个日出和笑脸出现的时候,提示加入自选。第2个日出和笑脸出现,提示买入。第3个日出和笑脸出现。提示可以适当加仓!(如果日出、笑脸和注意同时出现提示这是一个较好的买入时机)( 顶尖 财经 股票学院: http://www.58188.com )

第二,关于卖出的方法:日出东方指标均线高位钝化或者黄色,柱状消失或者已经盈利10%或20%以上(以上三点出现任意一点提示可以减仓)

特别注意:根据指标提示买入或卖出,盈亏自负,风险自担!

日出东方指标对新股、st股、黑天鹅不适用!!!
 

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

RK3:=EMA(YS1,10);

RK4:=STD(YS1,10);

RK5:=(YS1-RK3)*100/RK4;

RK6:=EMA(RK5,5);

RK7:=EMA(RK6,10);

涨:EMA(RK6,10)+100/2-5,COLORRED;

跌:EMA(涨,4),COLORWHITE;

日出:IF(CROSS(涨,跌) AND 跌<-10,20,0),COLORCCCCFF;

雨季将来:IF(CROSS(跌,80),80,100),COLORFF3798;

彩虹1:EMA(跌,4),COLORFFFF50;

彩虹2:EMA(彩虹1,4);

彩虹3:=EMA(彩虹2,4),COLORYELLOW;

彩虹4:=EMA(彩虹3,4),COLORCC9900;

STICKLINE(涨<REF(涨,1),涨,MA(涨,3),5,0 ),COLOR00BB00;

STICKLINE(涨<REF(涨,1),涨,MA(涨,3),4,0 ),COLOR00CC00;

STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF;

STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF;

STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF;

DRAWICON(日出>0,20,3);

DRAWTEXT(CROSS(涨,跌) AND 跌<20 AND 跌>-10,40,'日出'),COLORFFFFFF;

DRAWTEXT(日出>0,-20,'日出'),COLORCCCCFF;

VAR11:=SUMBARS(VOL,FINANCE(7)*100);

VAR22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);

VAR3:=(CLOSE-VAR22)/VAR22*100;

VAR4:=HHV(VAR3,VAR11);

VAR5:=LLV(VAR3,VAR11);

VAR6:=(VAR3-VAR5)/(VAR4-VAR5)*100;

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

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

J:=3*K-2*D;

MA1:=MA(J,3),COLORGREEN;

STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,涨,涨+20,6,0);

DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'注意'),COLORRED;



2、多色成交量

通过对成交量的量柱颜色,用不同颜色表示,更加清楚明了


换手率:=VOL/CAPITAL*100;

主力吸筹:换手率>3 AND 换手率<=5,COLORFF00FF;
加快吸筹:换手率>5 AND 换手率<=7,COLORYELLOW;
主力进攻:换手率>7 AND 换手率<=10,COLORGREEN;
主力猛攻:换手率>10,COLORRED;
量:VOL,VOLSTICK;
均5:MA(VOL,5);
均10:MA(VOL,10);
均60:MA(VOL,60);
STICKLINE(主力吸筹,0,V,2,0),COLORFF00FF;
STICKLINE(加快吸筹,0,V,2,0),COLORYELLOW;
STICKLINE(主力进攻,0,V,2,0),COLORBROWN;
STICKLINE(主力猛攻,0,V,2,0),COLORRED;



3、趋势为王

多空类公式,没有未来函数( 顶尖 财经 股票学院: http://www.58188.com )

A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;
A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;
A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;
A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;
A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;
A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;
A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;
VAR1:=FORCAST(A1,6);
VAR2:=FORCAST(A2,6);
VAR3:=FORCAST(A3,6);
VAR4:=FORCAST(A4,6);
VAR5:=FORCAST(A5,6);
VAR6:=FORCAST(A6,6);
VAR7:=FORCAST(A7,6);
IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLORFF00FF;
IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),POINTDOT,COLOR00FF00;
IF(VAR2>REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLORFF00FF;
IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),POINTDOT,COLOR00FF00;
IF(VAR3>REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLORFF00FF;
IF(VAR3<REF(VAR3,1),VAR3,DRAWNULL),POINTDOT,COLOR00FF00;
IF(VAR4>REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLORFF00FF;
IF(VAR4<REF(VAR4,1),VAR4,DRAWNULL),POINTDOT,COLOR00FF00;
IF(VAR5>REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLORFF00FF;
IF(VAR5<REF(VAR5,1),VAR5,DRAWNULL),POINTDOT,COLOR00FF00;
IF(VAR6>REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLORFF00FF;
IF(VAR6<REF(VAR6,1),VAR6,DRAWNULL),POINTDOT,COLOR00FF00;
IF(VAR7>REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLORFF00FF;
IF(VAR7<REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLOR00FF00;
TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);
DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));
DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00;

上一篇:通达信源码:竞价选股,许氏股理,筹码分布主图

下一篇:通达信源码:主力吸筹波段,牛股出炉起爆,七剑指标