通达信KST价格指标公式

通达信顶底买卖主图指标公式

n1:=9;n2:=13;n3:=18;n4:=24;

A:=CLOSE;

{A:=vol;}

roc1:=100*(A-REF(A,N1))/REF(A,N1);

ROC2:=100*(A-REF(A,N2))/REF(A,N2);

ROC3:=100*(A-REF(A,N3))/REF(A,N3);

ROC4:=100*(A-REF(A,N4))/REF(A,N4);

{www.zhibiaow.com 指标网_股票通达信指标公式}

kst:(MA(ROC1,N1)+2*MA(ROC2,N2)+3*MA(ROC3,N3)+4*MA(ROC4,N4))/10,COLORYELLOW,DOTLINE;

KstMA4:MA(KST,4),COLORCYAN,DOTLINE;

KSTMA10:MA(KST,10),COLORRED,DOTLINE;

A1:0,DOTLINE,COLORRED;

IF(KST>REF(KST,1),KST,DRAWNULL),COLORYELLOW;

IF(KSTMA4>REF(KSTMA4,1),KSTMA4,DRAWNULL),COLORCYAN;

IF(KSTMA10>REF(KSTMA10,1),KSTMA10,DRAWNULL),COLORRED;

通达信海下黑马指标公式