MA10:=MA(CLOSE,50);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HJ_17:=HJ_10<150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HJ_21:=VOL/MA(VOL,5)<3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
BL:=FILTER(HJ_25,15);
MA54:=MA(CLOSE,54);
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-MA10)/MA10)<0.3);
PLL:=(((PL1=1) AND (PL2=1))*0.2);
PTTP:=((((PLL=0) AND (REF(PLL,1)=0.2)) AND (REF((COUNT((PLL=0.2),10)=10),1)=1))*-0.1);
YGTP:=PTTP=-0.1;
XDF:=(BL OR YGTP);
VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR
(LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND
VOL/REF(VOL,1)>1.2);
YG:=(XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA);
M5:=MA(C,5);
M8:=MA(C,8);
M13:=MA(C,13);
M21:=MA(C,21);
M34:=MA(C,34);
M55:=MA(C,55);
VAR1:=O<=M5 AND C>M5;
VAR2:=O<=M8 AND C>M8;
VAR3:=O<=M13 AND C>M13;
VAR4:=O<=M21 AND C>M21;
VAR5:=O<=M34 AND C>M34;
VAR6:=O<=M55 AND C>M55;
CD:=(VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)>4;
X1A_1:=IF(CLOSE>REF(CLOSE,1),88,0);
X1A_2:=IF(CLOSE/REF(CLOSE,1)>1.03 AND HIGH/CLOSE<1.01 AND X1A_1>0,91,0);
LT:=FILTER(X1A_2>90,45)=1;
触底妖龙:CD AND YG AND (REF(LT,1) OR REF(LT,2) OR LT);
九毛八公式解读
MA10赋值:收盘价的50日简单移动平均 HJ_8赋值:(3日前的收盘价-收盘价)/3日前的收盘价*100>5 HJ_9赋值:HJ_8的10日过滤 HJ_10赋值:上次HJ_9距今天数 HJ_11赋值:HJ_10+2日前的最高价 HJ_12赋值:HJ_10+1日前的最高价 HJ_13赋值:HJ_10日前的最高价 HJ_14赋值:HJ_11和HJ_12的较大值 HJ_15赋值:HJ_14和HJ_13的较大值 HJ_16赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>5 HJ_17赋值:HJ_10<150 HJ_18赋值:(开盘价-HJ_15)/HJ_15*100<30 HJ_19赋值:(收盘价-HJ_10日内最低价的最低值)/HJ_10日内最低价的最低值*100<50 HJ_20赋值:(收盘价-5日前的开盘价)/5日前的开盘价*100<30 HJ_21赋值:成交量(手)/成交量(手)的5日简单移动平均<3.5 HJ_22赋值:(收盘价-89日前的收盘价)/89日前的收盘价*100<80 HJ_25赋值:HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22 BL赋值:HJ_25的15日过滤 MA54赋值:收盘价的54日简单移动平均 PL1赋值:(((收盘价-MA54)/MA54)<0.1) PL2赋值:(((收盘价-MA10)/MA10)<0.3) PLL赋值:(((PL1=1) AND (PL2=1))*0.2) PTTP赋值:((((PLL=0) AND (1日前的PLL=0.2)) AND (1日前的(统计10日中满足(PLL=0.2)的天数=10)=1))*-0.1) YGTP赋值:PTTP=-0.1 XDF赋值:(BL OR YGTP) VARA赋值:以成交量(手)/当前流通股本(手)为权重成交额(元)/成交量(手)/100的动态移动平均 VARAA赋值:现价/(1日前的收盘价)>1.05 AND (现价/开盘价>1.05) FLIGA赋值:(成交量(手)/1日前的成交量(手)>1.2 AND 统计1日中满足收阳线的天数) OR (最低价>1日前的最高价 AND 统计1日中满足收阴线的天数 AND 成交量(手)/1日前的成交量(手)>1.2) YG赋值:(XDF AND 收盘价/1日前的收盘价>1.095 AND FLIGA AND VARAA) M5赋值:收盘价的5日简单移动平均 M8赋值:收盘价的8日简单移动平均 M13赋值:收盘价的13日简单移动平均 M21赋值:收盘价的21日简单移动平均 M34赋值:收盘价的34日简单移动平均 M55赋值:收盘价的55日简单移动平均 VAR1赋值:开盘价<=M5 AND 收盘价>M5 VAR2赋值:开盘价<=M8 AND 收盘价>M8 VAR3赋值:开盘价<=M13 AND 收盘价>M13 VAR4赋值:开盘价<=M21 AND 收盘价>M21 VAR5赋值:开盘价<=M34 AND 收盘价>M34 VAR6赋值:开盘价<=M55 AND 收盘价>M55 CD赋值:(VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)>4 X1A_1赋值:如果收盘价>1日前的收盘价,返回88,否则返回0 X1A_2赋值:如果收盘价/1日前的收盘价>1.03ANDHIGH/收盘价<1.01ANDX1A_1>0,返回91,否则返回0 LT赋值:X1A_2>90的45日过滤=1 输出触底妖龙:CD AND YG AND (1日前的LT OR 2日前的LT OR LT)