通达信走势强弱指标公式

通达信天马主图指标公式

通达信走势强弱指标公式:

VAR2:=LLV(LOW,10);

VAR3:=HHV(HIGH,25);

A:=vol/CAPITAL;

N:=(A>2.5*REF(A,1) OR A>3*MA(A,20));

MA5:=MA(C,5);

MA25:=MA(C,25);

MA60:=MA(C,60);

VAR1:=EMA(EMA(CLOSE,13),13);

KP:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*10000;

清仓卖出: IF(N,IF(KP>=0,3.5*1.3,3.5),3.5),DOTLINE,COLOR082E54;

DLX:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);

DT:DLX-REF(DLX,1),LINETHICK0;

关注:0.5,DOTLINE,COLOR082E54;

1.75,DOTLINE,COLORWHITE;

3.0,DOTLINE,COLOR082E54;

数值:DLX,LINETHICK0,COLORYELLOW;

M:=(DT+REF(DT,1)+REF(DT,2)+REF(DT,3));

BB:=(A<2 AND HHV(A,7)<1.5*EMA(A,7) AND MA(A,10)<REF(MA(A,10),1));{缩量或强势洗盘10日均线下行}

K:=IF(KP<0,IF(BB,0.55,0.85),IF(N,1,0.85));

T:=IF(C<REF(C,1),IF((1.5*MA(A,20)<=A=HHV(A,3) OR DT<-0.5),IF((MA25>MA60 OR MA5>MA25),0.85,0.35),IF(DT<0.05 AND REF(DT,1)<0,0.85,1)),1);

T1:=IF(MA(C,60)>REF(MA(C,60),1),IF(MA(C,5)>MA(C,60),1,0.85),0.65);

P:DLX*K*T,LINETHICK2,COLORFF00FF;

{PARTLINE(P,(1.75>P AND P>REF(P,1)),RGB(139,69,19),(1.75<P AND P>REF(P,1)),RGB(255,0,255),(1.75<P AND P<REF(P,1)),RGB(61,89,171),(P<1.75 AND P<REF(P,1)),RGB(107,142,35)),LINETHICK3;}

DRAWTEXT(crOSS(P,1.75),1.75*0.97,'▲买'),COLORRED;

DRAWTEXT(CROSS(1.75,P),1.75*1.05,'↓衰'),COLORYELLOW;

DRAWTEXT(CROSS(P,3.2),3.2,'◆小心'),COLORYELLOW;

通达信阶段起爆选股指标公式