通达信多合一指标公式

通达信KDJ日周指标公式

通达信多合一指标公式:

N:=10;

M:=5;

COHL:=xma((OPEN+HIGH+LOW+CLOSE)/4,2);

DIFF:=EMA(COHL,12) - EMA(COHL,26);

DEA:=EMA(DIFF,9);

macd0:=2*(DIFF-DEA),COLORstICK;

MacD:(100*MACD0/HHV(Abs(MACD0),120)+100)/2;

kdj:(COHL-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

LC:=REF(COHL,1);

rsi:SMA(MAX(COHL-LC,0),N,1)/SMA(ABS(COHL-LC),N,1)*100;

cci0:=(COHL-MA(COHL,N))/(0.015*AVEDEV(COHL,N));

CCI:(CCI0+200)/4;

roc:2*(100*(COHL-REF(COHL,N))/REF(COHL,N)+20);

bias:(COHL-MA(COHL,N))/MA(COHL,N)*100+50;

PSY:COUNT(COHL>REF(COHL,1),N)/N*100;

全能0:=(MACD+kdJ+RSI+CCI+ROC+BIAS+PSY)/7,COLORRED;

全能:FORCAST(全能0,5),COLORRED,LINETHICK2;

{买卖信号}

买:=LLV(全能,2)=LLV(全能,7) AND {COUNT(全能<50,2) AND} crOSS(全能,MA(全能,2));

DRAWICON(FILTER(买=1,5),5,1),COLORRED;{买信号}

卖:=HHV(全能,2)=HHV(全能,7) AND {COUNT(全能>50,2) AND} CROSS(MA(全能,2),全能);

DRAWICON(FILTER(卖=1,5),95,2),COLORGREEN;{卖信号};

中位线:50;

通达信金叉选股指标公式