通达信乾坤线主图公式
说明:八线最为重要,站上后的回踩买入比较安全。其他一看便知。
黄:=(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;
类八:=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;{现价线}