T1:=REF(BArslAST(H=HHV(H,120)),1)+1;
H120:=REF(H,T1);
L120:=LLV(L,T1+1);
TJ1_1:=LLV(L,40)/H120>0.5;
TJ1_2:=H>=HHV(H,250);
TJ1:=TJ1_1 OR TJ1_2;
TJ2:=100*L120/H120>(100-46);
TJ3_1A:=H>=HHV(H,250);
TJ3_1:=TJ3_1A OR LLV(L,15)>LLV(L,50);
TJ3_2:=LLV(L,15)=LLV(L,50) AND LLV(L,15)>LLV(L,100) AND H/HHV(H,250)>0.88;
TJ3_3:=LLV(L,15)=LLV(L,50) AND LLV(L,15)>LLV(L,100) AND H/HHV(H,250)>0.75 AND H>=HHV(H,40) AND C/REF(C,1)>1.07;
TJ3:=TJ3_1 OR TJ3_2 OR TJ3_3;
TJ4_1A:=C>MA(C,90);
TJ4_1B:=MA(C,90)>=REF(MA(C,90),5);
TJ4_1C:=HIGH>=HHV(HIGH,90);
TJ4_1:=TJ4_1A AND TJ4_1B AND TJ4_1C;
TJ4_2A:=C>MA(C,100);
TJ4_2B:=MA(C,100)>=REF(MA(C,100),5);
TJ4_2C:=HIGH>=HHV(HIGH,100);
TJ4_2D:=C>MA(C,90);
TJ4_2:=TJ4_2A AND TJ4_2B AND TJ4_2C AND TJ4_2D;
TJ4_3A:=C/MA(C,120)>1;
TJ4_3B:=MA(C,120)>=REF(MA(C,120),2);
TJ4_3:=TJ4_3A AND TJ4_3B;
TJ4:=TJ4_1 OR TJ4_2 OR TJ4_3;
TJ5_1:=AMO=HHV(AMO,10);
TJ5_2:=C/REF(C,1)>1.099;
TJ5_3:=AMO/MA(AMO,10)>2;
TJ5:=TJ5_1 OR TJ5_2 OR TJ5_3;
TJ6:=REF(L,1)<=REF(MA(C,50),1)*1.24 OR REF(L,1)<=REF(MA(C,10),1)*1.03;
TJ7:=CLOSE>REF(CLOSE,1);
XH:=TJ1 AND TJ2 AND TJ3 AND TJ4 AND TJ5 AND TJ6 AND TJ7;
XG:XH AND COUNT(XH,3)=1;
九毛八公式解读
T1赋值:1日前的上次最高价=120日内最高价的最高值距今天数+1 H120赋值:T1日前的最高价 L120赋值:T1+1日内最低价的最低值 TJ1_1赋值:40日内最低价的最低值/H120>0.5 TJ1_2赋值:最高价>=250日内最高价的最高值 TJ1赋值:TJ1_1 OR TJ1_2 TJ2赋值:100*L120/H120>(100-46) TJ3_1A赋值:最高价>=250日内最高价的最高值 TJ3_1赋值:TJ3_1A OR 15日内最低价的最低值>50日内最低价的最低值 TJ3_2赋值:15日内最低价的最低值=50日内最低价的最低值 AND 15日内最低价的最低值>100日内最低价的最低值 AND 最高价/250日内最高价的最高值>0.88 TJ3_3赋值:15日内最低价的最低值=50日内最低价的最低值 AND 15日内最低价的最低值>100日内最低价的最低值 AND 最高价/250日内最高价的最高值>0.75 AND 最高价>=40日内最高价的最高值 AND 收盘价/1日前的收盘价>1.07 TJ3赋值:TJ3_1 OR TJ3_2 OR TJ3_3 TJ4_1A赋值:收盘价>收盘价的90日简单移动平均 TJ4_1B赋值:收盘价的90日简单移动平均>=5日前的收盘价的90日简单移动平均 TJ4_1C赋值:最高价>=90日内最高价的最高值 TJ4_1赋值:TJ4_1A AND TJ4_1B AND TJ4_1C TJ4_2A赋值:收盘价>收盘价的100日简单移动平均 TJ4_2B赋值:收盘价的100日简单移动平均>=5日前的收盘价的100日简单移动平均 TJ4_2C赋值:最高价>=100日内最高价的最高值 TJ4_2D赋值:收盘价>收盘价的90日简单移动平均 TJ4_2赋值:TJ4_2A AND TJ4_2B AND TJ4_2C AND TJ4_2D TJ4_3A赋值:收盘价/收盘价的120日简单移动平均>1 TJ4_3B赋值:收盘价的120日简单移动平均>=2日前的收盘价的120日简单移动平均 TJ4_3赋值:TJ4_3A AND TJ4_3B TJ4赋值:TJ4_1 OR TJ4_2 OR TJ4_3 TJ5_1赋值:成交额(元)=10日内成交额(元)的最高值 TJ5_2赋值:收盘价/1日前的收盘价>1.099 TJ5_3赋值:成交额(元)/成交额(元)的10日简单移动平均>2 TJ5赋值:TJ5_1 OR TJ5_2 OR TJ5_3 TJ6赋值:1日前的最低价<=1日前的收盘价的50日简单移动平均*1.24 OR 1日前的最低价<=1日前的收盘价的10日简单移动平均*1.03 TJ7赋值:收盘价>1日前的收盘价 XH赋值:TJ1 AND TJ2 AND TJ3 AND TJ4 AND TJ5 AND TJ6 AND TJ7 输出XG:XH AND 统计3日中满足XH的天数=1