N0:=3;N1:=2;N2:=16;N3:=40;
CX:=REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND
REF(OPEN,1) < REF(CLOSE,2) AND
CLOSE/OPEN>1.04 ;{AND CLOSE/REF(CLOSE,2) >0.99 ; {早晨之星}
DYX:=(CLOSE/OPEN>1.07) AND ( HIGH/CLOSE<1.013);{ 大阳线}
YX:= REF(CLOSE,2)/REF(OPEN,2)>=(1+N0/100) AND
REF(OPEN,1)/REF(CLOSE,1)<=(1+N0/100) AND
CLOSE/OPEN>=(1+N0/100) AND {阳-阴--阳}
REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND {一阳包二阴}
CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND {三阳包二阴}
REF(C,2)/CLOSE<=(1+N1/100) AND CLOSE/REF(C,2)<=(1.015+N1/100) ; {孕线}
HP:=REF(HHV(HIGH,25),1); { 25周(半年)最高价}
LP:=REF(LLV(LOW,25),1); {25周(半年)最低价}
PF:=(HP-LP)/(HP+LP); { 波动幅度}
HSL:= SUM ( VOL/CAPITAL,8); { 8周换手率}
JLZH:= (PF*100)<N2 AND (HSL*100)>N3 AND VOL >1.5* MA(VOL,5) ; {{价量组合}
HT:=JLZH AND ( CX OR DYX OR YX);
HDBC: HT AND NOT (REF(HT,1));
九毛八公式解读
N0赋值:3 N1赋值:2 N2赋值:16 N3赋值:40 CX赋值:2日前的收盘价/2日前的开盘价 < 0.95 ANDREF(开盘价,1) < 2日前的收盘价 ANDCLOSE/开盘价>1.04 DYX赋值:(收盘价/开盘价>1.07) AND ( 最高价/收盘价<1.013) YX赋值: 2日前的收盘价/2日前的开盘价>=(1+N0/100) ANDREF(开盘价,1)/1日前的收盘价<=(1+N0/100) ANDCLOSE/开盘价>=(1+N0/100) AND 1日前的开盘价<=2日前的收盘价 AND 1日前的收盘价>=2日前的开盘价 AND 收盘价>=1日前的开盘价 AND 开盘价<=1日前的收盘价 AND 2日前的收盘价/收盘价<=(1+N1/100) AND 收盘价/2日前的收盘价<=(1.015+N1/100) HP赋值:1日前的25日内最高价的最高值 LP赋值:1日前的25日内最低价的最低值 PF赋值:(HP-LP)/(HP+LP) HSL赋值: 成交量(手)/当前流通股本(手)的8日累和 JLZH赋值: (PF*100)N3 AND 成交量(手) >1.5* 成交量(手)的5日简单移动平均 HT赋值:JLZH AND ( CX OR DYX OR YX) 输出HDBC: HT AND 取反