TDX1:=MA(C,5);
TDX2:=TDX1>REF(TDX1,1);
TDX3:=IF(C>REF(C,1),1,0);
TDX4:=IF(C/REF(C,1)>1.093 AND H/C<1.033 AND TDX3>0,18,0);
TDX5:=C/REF(C,1)>1.05 AND C=H AND RANGE(FORCAST(V,5),0.3*FORCAST(V,12),2.1*FORCAST(V,12));
TDX6:=FILTER(TDX4>15,30)=1;
TDX7:=FILTER(TDX5,60);
TDX8:=TDX2 AND TDX6 AND TDX7;
起涨妖:TDX8=1;
九毛八公式解读
TDX1赋值:收盘价的5日简单移动平均 TDX2赋值:TDX1>1日前的TDX1 TDX3赋值:如果收盘价>1日前的收盘价,返回1,否则返回0 TDX4赋值:如果收盘价/1日前的收盘价>1.093ANDH/收盘价<1.033ANDTDX3>0,返回18,否则返回0 TDX5赋值:收盘价/1日前的收盘价>1.05 AND 收盘价=最高价 AND 成交量(手)的5日线性回归预测值位于0.3*成交量(手)的12日线性回归预测值和2.1*成交量(手)的12日线性回归预测值之间 TDX6赋值:TDX4>15的30日过滤=1 TDX7赋值:TDX5的60日过滤 TDX8赋值:TDX2 AND TDX6 AND TDX7 输出起涨妖:TDX8=1
=