大牛主图指标 (源码)

2012-06-12 08:59:00来源:本站整理浏览:345

通达信大牛主图指标公式股票软件源码如下:

M3:EMA(CLOSE,3),COLORAA00AA;
M5:EMA(CLOSE,5),COLORBB00BB;
M10:EMA(CLOSE,10),COLORDD00DD;
M20:EMA(CLOSE,20),COLORFF00FF;
M30:EMA(CLOSE,30),COLOR005500;
M40:EMA(CLOSE,40),COLOR007700;
MA60:EMA(CLOSE,60),COLOR00FF00;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
DRAWTEXT(BT,C*0.98,'短牛'),COLORFFFFFF;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
DRAWTEXT(TJ1,C*0.99,'中牛'),COLORMAGENTA;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
DRAWTEXT(TJ2,L*0.98,'大牛'),COLORYELLOW;
ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);
DRAWTEXT(ST,H*1.02,'卖'),COLOR00FF00;
DRAWICON(BT AND TJ1 AND TJ2,L * 0.98,17);

通达信大牛主图指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式