强弱的对比,信号强就买入,弱就卖出,指标仅供参考 PLOYLINE(C>0,-0.2),DOTLINE,colorgreen;
PLOYLINE(C>0,0),DOTLINE,coloryellow;
PLOYLINE(C>0,0.2),DOTLINE,colorred;
HZ:=INDEXDATA("1a0001",&CLOSE,0);
SZ:=INDEXDATA("399001",&CLOSE,0);
CY:=INDEXDATA("399006",&CLOSE,0);
ZX:=INDEXDATA("399005",&CLOSE,0);
HS300:=INDEXDATA("399300",&CLOSE,0);
DP:=CY;
DP5:=SUM((DP/REF(DP,1)-1)*100,5);
GG5:=SUM((C/REF(C,1)-1)*100,5);
PY30:COUNT(GG5>DP5,30)/30-0.5;
PY60:COUNT(GG5>DP5,60)/60-0.5;
PY120:COUNT(GG5>DP5,120)/120-0.5;
|
