超跌抄底可买,再优化了一次,抄底信号更加灵敏
目前这个上证大盘调整到3250下面使用正好。
VAR1:=IF(CLOSE>REF(CLOSE,1),VOL,0);
VAR2:=IF(CLOSE< REF(CLOSE,1),VOL,0);
SH:SUM(VAR1,13),NODRAW;
UP:SUM(VAR2,13),NODRAW;
趋势线: 3*SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1),3,1),LINETHICK2,COLORWHITE;
超跌线: 13,LINETHICK2,COLORYELLOW;
可买: IF(CROSS(趋势线,超跌线),81,0),LINETHICK2,COLORRED;
DRAWTEXT(CROSS(可买,8),89,'抄底'),COLOR00FF00,COLORRED;
做一个“抄底”的选股如下:
源码
趋势线:=3*SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*108,5,1),3,1);
超跌线:=13;
可买:=IF(CROSS(趋势线,超跌线),81,0);
CROSS(可买,8);