TDB_1:=IF(NAMELIKE(1),0,1);
TDB_2:=IF(NAMELIKE(2),0,1);
TDB_3:=IF(CODELIKE(3),0,1);
TDB_4:=TDB_1 AND TDB_2 AND TDB_3;
TDB_5:=MA(CLOSE,60);
TDB_6:=(CLOSE-TDB_5)/TDB_5*100;
TDB_7:=LLV(LOW,21);
TDB_8:=HHV(HIGH,21);
TDB_9:=EMA((CLOSE-TDB_7)/(TDB_8-TDB_7)*100,5);
TDB_10:=EMA((CLOSE-TDB_7)/(TDB_8-TDB_7)*50,13);
TDB_11:=CROSS(TDB_9,TDB_10);
TDB_12:=TDB_11=1;
TDB_13:=AMOUNT/VOL;
TDB_14:=LOW<TDB_13*0.9;
TDB_15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
TDB_16:=LOW<MA(CLOSE,5)*0.921;
TDB_17:=VOL<MA(VOL,5)*1.5;
TDB_18:=SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,3,1);
TDB_19:=TDB_18<50;
TDB_20:=TDB_12 OR (TDB_14 AND TDB_15 AND TDB_16 AND TDB_17);
TDB_21:=TDB_4 AND TDB_19 AND TDB_20;
探底宝:TDB_21 AND TDB_6<(-20) AND TDB_4;
九毛八公式解读
TDB_1赋值:如果模糊匹配品种名称,返回0,否则返回1 TDB_2赋值:如果模糊匹配品种名称,返回0,否则返回1 TDB_3赋值:如果模糊匹配品种代码,返回0,否则返回1 TDB_4赋值:TDB_1 AND TDB_2 AND TDB_3 TDB_5赋值:收盘价的60日简单移动平均 TDB_6赋值:(收盘价-TDB_5)/TDB_5*100 TDB_7赋值:21日内最低价的最低值 TDB_8赋值:21日内最高价的最高值 TDB_9赋值:(收盘价-TDB_7)/(TDB_8-TDB_7)*100的5日指数移动平均 TDB_10赋值:(收盘价-TDB_7)/(TDB_8-TDB_7)*50的13日指数移动平均 TDB_11赋值:TDB_9上穿TDB_10 TDB_12赋值:TDB_11=1 TDB_13赋值:成交额(元)/成交量(手) TDB_14赋值:最低价1.2 TDB_16赋值:最低价<收盘价的5日简单移动平均*0.921 TDB_17赋值:成交量(手)<成交量(手)的5日简单移动平均*1.5 TDB_18赋值:(收盘价-28日内最低价的最低值)/(28日内最高价的最高值-28日内最低价的最低值)*100的3日[1日权重]移动平均 TDB_19赋值:TDB_18<50 TDB_20赋值:TDB_12 OR (TDB_14 AND TDB_15 AND TDB_16 AND TDB_17) TDB_21赋值:TDB_4 AND TDB_19 AND TDB_20 输出探底宝:TDB_21 AND TDB_6<(-20) AND TDB_4