新版资金流高抛低吸抄底组合(源码 副图 同花顺 贴图)
入时机和建仓共振 底部买入 顶部卖出
源码
10,coloryellow;
生命指数: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
90,colorgreen;
顶:IF(生命指数>90,80,90);
底:IF(生命指数<10,30,10),coloryellow;
买入时间: IF(CROSS(生命指数,底),40,0);
N1:=3;N2:=7;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
ZB1:=RSI1<底;
建仓:IF(CROSS(RSI1,底) ,30,0),LINETHICK1;
DRAWICON(建仓 AND 买入时间,20,11);
DRAWICON(CROSS(RSI1,底) ,30,11);
ZB2:=(ZB1=0 AND RSI1<=顶);
卖出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建仓=0,80,100),LINETHICK1;