通达信经典做T分时指标公式

通达信DIF零股价指标公式

通达信经典做T分时指标公式:

突破:=REF(EMA(C,14),1);

A1X:=(EMA(C,10)-突破)/突破*100;

多方:=IF(A1X>=0,REF(EMA(C,10),BArslAst(crOSS(A1X,0))+1),DRAWNULL);

空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);

STICKLINE(A1X>=0,多方,突破,60,-1),COLORCC66FF;

STICKLINE(A1X<0,空方,突破,10,-1),COLOR00CC66;

MA30:=EMA(CLOSE,30);

强弱:=EMA(CLOSE,50),COLORYELLOW,LINETHICK1;

H1:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H1-L1;

阻力:L1+P1*7/8,COLOR0000FF DOTLINE;

支撑:L1+P1*0.5/8,COLOR00DD00 DOTLINE;

现价:CLOSE,COLORWHITE,LINETHICK1;

涨幅:=(DYNAINFO(7)-DYNAINFO(3))/DYNAINFO(3)*100;

即时涨幅:=(C-DYNAINFO(3))/DYNAINFO(3)*100;

DRAWTEXT(LONGCROSS(支撑,C,2) AND 涨幅>-9.5,支撑*1.001,'+买'),COLORRED;

DRAWTEXT(LONGCROSS(C,强弱,2) AND 强弱>REF(强弱,1) AND 涨幅>0 AND 即时涨幅<5,强弱*0.998,'+买'),COLOR3E3EFF;

DRAWTEXT(LONGCROSS(C,阻力,2),C,'●'),COLORGREEN,LINETHICK1;{抛};

时间:=TIME=100000;

N:=BARSLAST(时间);

CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));

CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));

STICKLINE(时间=1,CS1,CS2,-1,0),COLORGREEN;

均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;

均价限:均价*1.02,COLORGREEN;

{分时主图,买卖点提示,支撑压力线,一目了然};

穿越:=CROSS(C,均价限);

DRAWICON(穿越,均价,1);

通达信买卖多空趋势指标公式