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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。