AA1:=REF(CLOSE,2)/REF(CLOSE,1)>=1.04;
AA61:=EMA(EMA(EMA(CLOSE,12),12),12);
AA62:=(AA61-REF(AA61,1))/REF(AA61,1)*100;
AA63:=MA(AA62,9);
AA64:=AA62>AA63;
AA65:=CLOSE/REF(CLOSE,1)>1.09;
AA66:=CLOSE=HIGH;
AA67:=REF(AA65,1) AND REF(AA66,1);
AA68:=COUNT(AA67,4)>0;
AA70:=(3*CLOSE+LOW+OPEN+HIGH)/6;
AA71:=(20*AA70+19*REF(AA70,1)+18*REF(AA70,2)+17*REF(AA70,3)+16*REF(AA70,4)+15*REF(AA70,5)+14*REF(AA70,6)+13*REF(AA70,7)+12*REF(AA70,8)+11*REF(AA70,9)+10*REF(AA70,10)+9*REF(AA70,11)+8*REF(AA70,12)+7*REF(AA70,13)+6*REF(AA70,14)+5*REF(AA70,15)+4*REF(AA70,16)+3*REF(AA70,17)+2*REF(AA70,18)+REF(AA70,20))/210;
AA72:=MA(AA71,6);
AA73:=AA71>AA72;
AA74:=CLOSE>1.02*REF(CLOSE,1);
AA75:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100<(-6);
AA77:=REF(CLOSE,1)<(REF(CLOSE,BArslAst(AA75))+REF(CLOSE,BARSLAST(AA75)+1))/2 AND CLOSE>(REF(CLOSE,BARSLAST(AA75))+REF(CLOSE,BARSLAST(AA75)+1))/2;
AA78:=BARSLAST(AA75)<=7 AND AA74 AND AA77 AND
COUNT(AA74,BARSLAST(AA75))=1 AND NOT(HIGH=LOW) AND
REF(NOT(HIGH=LOW),BARSLAST(AA75))=1;
AA80:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;
AA81:=CROSS(CLOSE,AA80) AND AA80>REF(AA80,1);
AA82:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
AA83:=CROSS(CLOSE,AA82) AND AA82>REF(AA82,1);
AA84:=AA81 AND AA83 AND AA78 AND AA73 AND AA64;
AA85:=AA68 AND AA78 AND AA73 AND AA64;
AA86:=AA84 OR AA85;
AA87:=REF(CLOSE>OPEN AND REF(HIGH=CLOSE,1) AND
OPEN>REF(CLOSE,1),1) OR (OPEN<REF(CLOSE,1) AND
REF(CLOSE<OPEN,1) AND CLOSE/REF(CLOSE,1)<0.97 AND
LOW/REF(CLOSE,1)<0.927) OR (LOW/REF(CLOSE,1)<1.008 AND
CLOSE/REF(CLOSE,1)<1.0199 AND CLOSE/OPEN<0.955 AND
OPEN/CLOSE<1.13 AND REF(HIGH=CLOSE,1)) OR (REF(CLOSE<OPEN,1) AND
(CLOSE<REF(LOW,2) OR CLOSE/REF(CLOSE,2)<0.945) AND
CLOSE/REF(CLOSE,2)<0.965) AND CLOSE/LOW<1.051 AND NOT(HIGH=LOW);
AA88:=REF(REF(CLOSE/REF(CLOSE,4)>=1.13,3) OR
REF(CLOSE/REF(CLOSE,3)>=1.1,1) OR REF(CLOSE/REF(CLOSE,4)>=1.073,2)
OR REF(CLOSE/REF(CLOSE,1)>=1.089,1) OR CLOSE/REF(CLOSE,2)>=1.089
OR CLOSE/REF(CLOSE,4)>=1.073 AND COUNT(CLOSE>=OPEN,4)>=1,1);
AA89:=CLOSE/REF(CLOSE,1)<0.955 OR CLOSE/REF(CLOSE,1)<0.963 AND
REF(CLOSE<OPEN,1) OR CLOSE/REF(CLOSE,1)<0.965 AND
REF(CLOSE<OPEN,1) OR CLOSE<REF((CLOSE+OPEN)/2,2) OR
CLOSE/REF(CLOSE,1)<0.966 AND CLOSE<REF(OPEN,1) AND
LOW<REF(LOW,1);
AA90:=AA87 OR AA88 OR AA89;
AA91:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100<(-6);
AA92:=CLOSE>1.02*REF(CLOSE,1);
AA93:=AA91 AND AA90;
AA94:=REF(CLOSE,1)<(REF(CLOSE,BARSLAST(AA93))+REF(CLOSE,BARSLAST(AA93)+1))/2
AND CLOSE>(REF(CLOSE,BARSLAST(AA93))+REF(CLOSE,BARSLAST(AA93)+1))/2;
AA95:=BARSLAST(AA93)<=7 AND AA92 AND AA94 AND
COUNT(AA92,BARSLAST(AA93))=1 AND NOT(HIGH=LOW) AND
REF(NOT(HIGH=LOW),BARSLAST(AA93))=1;
捉牛:AA95 AND AA87=0 AND AA86=0 AND AA1;
九毛八公式解读
AA1赋值:2日前的收盘价/1日前的收盘价>=1.04 AA61赋值:收盘价的12日指数移动平均的12日指数移动平均的12日指数移动平均 AA62赋值:(AA61-1日前的AA61)/1日前的AA61*100 AA63赋值:AA62的9日简单移动平均 AA64赋值:AA62>AA63 AA65赋值:收盘价/1日前的收盘价>1.09 AA66赋值:收盘价=最高价 AA67赋值:1日前的AA65 AND 1日前的AA66 AA68赋值:统计4日中满足AA67的天数>0 AA70赋值:(3*收盘价+最低价+开盘价+最高价)/6 AA71赋值:(20*AA70+19*1日前的AA70+18*2日前的AA70+17*3日前的AA70+16*4日前的AA70+15*5日前的AA70+14*6日前的AA70+13*7日前的AA70+12*8日前的AA70+11*9日前的AA70+10*10日前的AA70+9*11日前的AA70+8*12日前的AA70+7*13日前的AA70+6*14日前的AA70+5*15日前的AA70+4*16日前的AA70+3*17日前的AA70+2*18日前的AA70+20日前的AA70)/210 AA72赋值:AA71的6日简单移动平均 AA73赋值:AA71>AA72 AA74赋值:收盘价>1.02*1日前的收盘价 AA75赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100<(-6) AA77赋值:1日前的收盘价<(上次AA75距今天数日前的收盘价+上次AA75距今天数+1日前的收盘价)/2 AND 收盘价>(上次AA75距今天数日前的收盘价+上次AA75距今天数+1日前的收盘价)/2 AA78赋值:上次AA75距今天数<=7 AND AA74 AND AA77 AND 统计上次AA75距今天数日中满足AA74的天数=1 AND 取反 AND 上次AA75距今天数日前的取反=1 AA80赋值:((收盘价-1日前的收盘价的6日简单移动平均)/6+收盘价的6日简单移动平均)*1.004 AA81赋值:收盘价上穿AA80 AND AA80>1日前的AA80 AA82赋值:((收盘价-1日前的收盘价的18日简单移动平均)/18+收盘价的18日简单移动平均)*1.004 AA83赋值:收盘价上穿AA82 AND AA82>1日前的AA82 AA84赋值:AA81 AND AA83 AND AA78 AND AA73 AND AA64 AA85赋值:AA68 AND AA78 AND AA73 AND AA64 AA86赋值:AA84 OR AA85 AA87赋值:1日前的收盘价>OPENANDREF(最高价=收盘价,1)ANDOPEN>1日前的收盘价 OR (开盘价<1日前的收盘价 AND 1日前的收阴线 AND 收盘价/1日前的收盘价<0.97 AND 最低价/1日前的收盘价<0.927) OR (最低价/1日前的收盘价<1.008 AND 收盘价/1日前的收盘价<1.0199 AND 收盘价/开盘价<0.955 AND 开盘价/收盘价<1.13 AND 1日前的最高价=收盘价) OR (1日前的收阴线 AND (收盘价<2日前的最低价 OR 收盘价/2日前的收盘价<0.945) AND 收盘价/2日前的收盘价<0.965) AND 收盘价/最低价<1.051 AND 取反 AA88赋值:收盘价/4日前的收盘价>=1.073ANDCOUNT(收盘价>=开盘价,4)>=1日前的3日前的收盘价/4日前的收盘价>=1.13ORREF(收盘价/3日前的收盘价>=1.1,1)ORREF(收盘价/4日前的收盘价>=1.073,2)ORREF(收盘价/1日前的收盘价>=1.089,1)ORCLOSE/2日前的收盘价>=1.089O AA89赋值:收盘价/1日前的收盘价<0.955 OR 收盘价/1日前的收盘价<0.963 AND 1日前的收阴线 OR 收盘价/1日前的收盘价<0.965 AND 1日前的收阴线 OR 收盘价<2日前的(收盘价+开盘价)/2 OR 收盘价/1日前的收盘价<0.966 AND 收盘价<1日前的开盘价 AND 最低价<1日前的最低价 AA90赋值:AA87 OR AA88 OR AA89 AA91赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100<(-6) AA92赋值:收盘价>1.02*1日前的收盘价 AA93赋值:AA91 AND AA90 AA94赋值:1日前的收盘价<(上次AA93距今天数日前的收盘价+上次AA93距今天数+1日前的收盘价)/2 AND 收盘价>(上次AA93距今天数日前的收盘价+上次AA93距今天数+1日前的收盘价)/2 AA95赋值:上次AA93距今天数<=7 AND AA92 AND AA94 AND 统计上次AA93距今天数日中满足AA92的天数=1 AND 取反 AND 上次AA93距今天数日前的取反=1 输出捉牛:AA95 AND AA87=0 AND AA86=0 AND AA1