通达信灯塔主图指标公式

通达信精准线主图指标公式

MA1:MA(CLOSE,3);

MA2:MA(CLOSE,8);

MA3:MA(CLOSE,16);

MA4:MA(CLOSE,55);

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

STICKLINE(BT,H,L,2,0),COLORRED;

DRAWTEXT(BT,C*0.92,'短牛'),COLORRED;

{指标网-股票公式网站 www.gupAng.com}

TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;

STICKLINE(TJ1,H,L,2,0),COLORMAGENTA;

DRAWTEXT(TJ1,C*0.89,'中牛'),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;

STICKLINE(TJ2,H,L,2,0),COLORYELLOW;

DRAWTEXT(TJ2,L*0.90,'大牛'),COLORYELLOW;

ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);

STICKLINE(ST,H,L,2,0),COLORGREEN;

DRAWTEXT(ST,H*1.02,'卖'),COLOR00FF00;

通达信桅浪MACD指标公式