乾坤线主图指标 (源码)

2012-04-25 08:02:00来源:本站整理浏览:646

通达信乾坤线主图指标公式股票软件源码如下:

黄:=(HIGH+LOW+OPEN+CLOSE)/4;
乾:=2*EMA(LLV(黄,7),10)-黄;
黄金:MA(3*黄-2*SMA(黄,2,1),12),COLORYELLOW,LINETHICK3;
乾坤:3*乾-2*SMA(乾,10,1),COLORGREEN;
坤A:=CROSS(C,乾坤); 坤B:=CROSS(乾坤,C);
{红}
STICKLINE(C>O,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(C>O,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(C>O,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(坤A,CLOSE,OPEN,1.0,0),COLORCC66FF;
{绿}
STICKLINE(C<O,CLOSE,OPEN,3,0),COLOR009900;
STICKLINE(C<O,CLOSE,OPEN,2.2,0),COLOR00BB00;
STICKLINE(C<O,CLOSE,OPEN,1.5,0),COLOR00DD00;
STICKLINE(坤B,CLOSE,OPEN,1.0,0)COLORAAAA00;{COLOR00FF00;}
{大师:N=55}N:=55;
H55:=HHV(HIGH,N); L55:=LLV(LOW,N); HL55:=H55*L55;
HLK:SQRT(HL55),COLORLIGRAY,LINETHICK2;
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
类八:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42)COLORBLUE,LINETHICK1;
八:类八,CROSSDOT,LINETHICK2,{COLORFF00FF}COLORGREEN;
DD:=类八>REF(类八,1) AND REF(类八,1) >REF(类八,2);
{半分位画线}
FUZ:=L+((H-L)/2);FUS:=O+((C-O)/2); FUSY:=C+((O-C)/2);
半:(FUZ+IF(C>O,FUS,FUSY))/2,COLORYELLOW,NODRAW;{L-H半分位}
Z半:REF(半,1),COLORYELLOW,NODRAW;
Q半:REF(半,2),COLORYELLOW,NODRAW;
STICKLINE(C=C,半,半,2.8,0),COLOR00FFFF,LINETHICK1;
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3),
COLORLIRED,DOTLINE;{现价线}

通达信乾坤线主图指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式