MA5:=MA(C,5);
MA10:=MA(C,10);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
VAR1:=MA120>MA60 AND MA60>MA30;
VAR2:=MA30>MA60 AND MA60>MA120;
VAR3:=MAX(MA30,MAX(MA60,MA120));
VAR4:=MIN(MA30,MIN(MA60,MA120));
VAR5:=IF(MA30<>VAR3 AND MA30<>VAR4,MA30,IF(MA60<>VAR3 AND MA60<>VAR4,MA60,MA120));
VAR6:=(VAR3-VAR4)/VAR4*100;
VAR7:=(VAR5-VAR4)/VAR4*100;
VAR8:=MA(REF(HHV(C,30),1),2);
VAR9:=MA(REF(LLV(C,30),1),2);
VAR10:=(VAR8-MAX(C,O))/MAX(C,O)*100;
VAR11:=(MIN(C,O)-VAR9)/VAR9*100;
VAR12:=BARSLASTCOUNT(VAR9<REF(VAR9,1) AND VAR9*1.007>=REF(VAR9,1));
VAR13:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100;
VAR14:=(H-MAX(C,O))/MAX(C,O)*100;
VAR15:=(MIN(C,O)-L)/L*100;
VAR16:=BARSLASTCOUNT(MAX(O,C)<=REF(MAX(O,C),1) AND MIN(O,C)<=REF(MIN(O,C),1))>=2;
VAR17:=(REF(MIN(C,O),1)-MAX(C,O))/MAX(C,O)*100;
VAR18:=(BARSLASTCOUNT(VAR13>2.1)>=3 AND
BARSLASTCOUNT(VAR17>2.1)>=2 AND COUNT(VAR17>5.5,2)) OR
(BARSLASTCOUNT(OPEN<REF(OPEN,1) AND C<REF(C,1))=2 AND
BARSLASTCOUNT(OPEN>C AND VAR13>4)=3);
VAR19:=RANGE(MIN(C,O),MA(C,5)*0.98,MA(C,5)*1.02);
VAR20:=(MAX(HHV(C,10),HHV(OPEN,10))-MIN(LLV(C,10),LLV(OPEN,10)))/MIN(LLV(C,10),LLV(OPEN,10))*100;
VAR21:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR22:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VAR23:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR24:=REF(VAR22 OR VAR23,1) AND VAR21;
VAR25:=VAR24 AND CLOSE>OPEN;
VAR26:=REF(VAR21,1) AND VAR22 AND NOT(REF(C,3)=LLV(C,4));
VAR27:=(CLOSE/OPEN)>1.04 AND CLOSE<SMA(HIGH,19,3) AND C>REF(C,1);
VAR28:=IF(C>MA(C,4),1,0)+IF(C<MA(C,4),-1,0)+IF(MA(C,5)>REF(MA(C,5),1),1,0)+IF(MA(C,5)<REF(MA(C,5),1),-1,0);
VAR29:=VAR28=-2 AND C>O;
VAR30:=IF(C>MA(C,4),1,0);
VAR31:=IF(C<MA(C,4),-1,0);
VAR32:=IF(MA(C,5)>REF(MA(C,5),1),1,0);
VAR33:=IF(MA(C,5)<REF(MA(C,5),1),-1,0);
VAR34:=VAR30+VAR31+VAR32+VAR33;
VAR35:=VAR34=2 AND C<O;
VAR36:= EMA((CLOSE*2+HIGH+LOW)/4,13)-EMA((CLOSE*2+HIGH+LOW)/4,73);
VAR37:=(CROSS(VAR36,EMA(VAR36,2)) AND VAR36<=0.05 AND (C/REF(C,1)>0.035));
VAR38:=VAR37 AND NOT(VAR35);
VAR39:=VAR27 AND VAR13>3.9 AND VAR11<0.2 AND C>VAR9 AND
VAR15<1.5 AND REF(VAR14<3,1) AND (REF(VAR13>5.5 AND
C<OPEN,1) AND REF(VAR13,1)>VAR13)=0 AND VAR38=0 AND VAR29=0 AND
REF(VAR26 AND VAR38 AND VAR25=0,1)=0 AND REF(VAR25=0,2);
VAR40:=(VAR9=REF(VAR9,1) OR VAR12) AND C<VAR4*1.01 AND
BARSLASTCOUNT(VAR4<=REF(VAR4,1))>=7 AND VAR7<11.54 AND
((BARSLASTCOUNT(VAR3>VAR8)>=4 AND OPEN<VAR9) OR
(BARSLASTCOUNT(VAR3<VAR8)>10 AND OPEN>VAR9 AND VAR6<10)) AND
(VAR1 OR C*1.2<VAR4 OR COUNT(CROSS(MA30,MA60),4)) AND
BARSLASTCOUNT(VAR5<VAR8)>=7;
VAR41:=VAR39 AND VAR40;
VAR42:=VAR27 AND VAR13>5.4 AND C=HHV(C,4) AND
OPEN<=REF(MAX(C,O),1) AND VAR14<1.7 AND VAR38=0 AND VAR29=0 AND
(REF(BARSLASTCOUNT(VAR13<1.5 AND VAR19)>=3,1) OR
REF(COUNT(VAR16,2)>=1 AND BARSLASTCOUNT(VAR13>1.5)>=3,1)) AND
(REF(VAR13>4.5 AND C<OPEN,1)=0 OR REF(VAR18,1));
VAR43:=VAR11<5.4 AND VAR10<14 AND C>VAR9 AND C<VAR3*1.01 AND
C>VAR4 AND BARSLASTCOUNT(VAR3<VAR8)>10 AND (COUNT(VAR18,7) OR
REF(VAR20<10,1)) AND (VAR2 OR
BARSLASTCOUNT(VAR3>=REF(VAR3,1))>=10);
VAR44:=VAR42 AND VAR43;
VAR45:=(VAR16 AND BARSLASTCOUNT(VAR13<2.5)>=3 AND VAR29 AND C<VAR9) OR VAR18;
VAR46:=(BARSLASTCOUNT(C>0)<60 AND C<MA30*1.01 AND CROSS(C,MA5) AND CROSS(C,MA10)) OR (VAR13>5 AND VAR10<14);
VAR47:=VAR27 AND VAR13>3.9 AND VAR11<1.05 AND C>VAR9 AND
C<MA30 AND REF(VAR9,1)>REF(VAR9,2) AND VAR9<REF(VAR9,1) AND
REF(VAR45,1) AND VAR46;
黄龙:VAR41 OR VAR44 OR VAR47;
九毛八公式解读
MA5赋值:收盘价的5日简单移动平均 MA10赋值:收盘价的10日简单移动平均 MA30赋值:收盘价的30日简单移动平均 MA60赋值:收盘价的60日简单移动平均 MA120赋值:收盘价的120日简单移动平均 VAR1赋值:MA120>MA60 AND MA60>MA30 VAR2赋值:MA30>MA60 AND MA60>MA120 VAR3赋值:MA30和MA60和MA120的较大值的较大值 VAR4赋值:MA30和MA60和MA120的较小值的较小值 VAR5赋值:如果MA30不等于VAR3ANDMA30不等于VAR4,返回MA30,否则返回如果MA60不等于VAR3ANDMA60不等于VAR4,返回MA60,否则返回MA120 VAR6赋值:(VAR3-VAR4)/VAR4*100 VAR7赋值:(VAR5-VAR4)/VAR4*100 VAR8赋值:1日前的30日内收盘价的最高值的2日简单移动平均 VAR9赋值:1日前的30日内收盘价的最低值的2日简单移动平均 VAR10赋值:(VAR8-收盘价和开盘价的较大值)/收盘价和开盘价的较大值*100 VAR11赋值:(收盘价和开盘价的较小值-VAR9)/VAR9*100 VAR12赋值:条件连续成立次数 VAR13赋值:(收盘价和开盘价的较大值-收盘价和开盘价的较小值)/收盘价和开盘价的较小值*100 VAR14赋值:(最高价-收盘价和开盘价的较大值)/收盘价和开盘价的较大值*100 VAR15赋值:(收盘价和开盘价的较小值-最低价)/最低价*100 VAR16赋值:条件连续成立次数>=2 VAR17赋值:(1日前的收盘价和开盘价的较小值-收盘价和开盘价的较大值)/收盘价和开盘价的较大值*100 VAR18赋值:(条件连续成立次数>=3 AND 条件连续成立次数>=2 AND 统计2日中满足VAR17>5.5的天数) OR (条件连续成立次数=2 AND 条件连续成立次数=3) VAR19赋值:收盘价和开盘价的较小值位于收盘价的5日简单移动平均*0.98和收盘价的5日简单移动平均*1.02之间 VAR20赋值:(10日内收盘价的最高值和10日内开盘价的最高值的较大值-10日内收盘价的最低值和10日内开盘价的最低值的较小值)/10日内收盘价的最低值和10日内开盘价的最低值的较小值*100 VAR21赋值:(收盘价>1日前的收盘价 AND 收盘价>2日前的收盘价) VAR22赋值:收盘价<1日前的收盘价 AND 收盘价<2日前的收盘价 VAR23赋值:1日前的VAR22 AND 收盘价>=1日前的收盘价 AND 收盘价<=2日前的收盘价 VAR24赋值:1日前的VAR22ORVAR23 AND VAR21 VAR25赋值:VAR24 AND 收阳线 VAR26赋值:1日前的VAR21 AND VAR22 AND 取反 VAR27赋值:(收盘价/开盘价)>1.04 AND 收盘价<最高价的19日[3日权重]移动平均 AND 收盘价>1日前的收盘价 VAR28赋值:如果收盘价>收盘价的4日简单移动平均,返回1,否则返回0+如果收盘价<收盘价的4日简单移动平均,返回-1,否则返回0+如果收盘价的5日简单移动平均>1日前的收盘价的5日简单移动平均,返回1,否则返回0+如果收盘价的5日简单移动平均<1日前的收盘价的5日简单移动平均,返回-1,否则返回0 VAR29赋值:VAR28=-2 AND 收阳线 VAR30赋值:如果收盘价>收盘价的4日简单移动平均,返回1,否则返回0 VAR31赋值:如果收盘价<收盘价的4日简单移动平均,返回-1,否则返回0 VAR32赋值:如果收盘价的5日简单移动平均>1日前的收盘价的5日简单移动平均,返回1,否则返回0 VAR33赋值:如果收盘价的5日简单移动平均<1日前的收盘价的5日简单移动平均,返回-1,否则返回0 VAR34赋值:VAR30+VAR31+VAR32+VAR33 VAR35赋值:VAR34=2 AND 收阴线 VAR36赋值: (收盘价*2+最高价+最低价)/4的13日指数移动平均-(收盘价*2+最高价+最低价)/4的73日指数移动平均 VAR37赋值:(VAR36上穿VAR36的2日指数移动平均 AND VAR36<=0.05 AND (收盘价/1日前的收盘价>0.035)) VAR38赋值:VAR37 AND 取反 VAR39赋值:VAR27 AND VAR13>3.9 AND VAR11<0.2 AND 收盘价>VAR9 AND VAR15<1.5 AND 1日前的VAR14<3 AND (1日前的VAR13>5.5ANDC<开盘价 AND 1日前的VAR13>VAR13)=0 AND VAR38=0 AND VAR29=0 AND 1日前的VAR26ANDVAR38ANDVAR25=0=0 AND 2日前的VAR25=0 VAR40赋值:(VAR9=1日前的VAR9 OR VAR12) AND 收盘价=7 AND VAR7<11.54 AND ((条件连续成立次数>=4 AND 开盘价 10 AND 开盘价>VAR9 AND VAR6<10)) AND (VAR1 OR 收盘价*1.2 =7 VAR41赋值:VAR39 AND VAR40 VAR42赋值:VAR27 AND VAR13>5.4 AND 收盘价=4日内收盘价的最高值 AND 开盘价<=1日前的收盘价和开盘价的较大值 AND VAR14<1.7 AND VAR38=0 AND VAR29=0 AND (1日前的条件连续成立次数>=3 OR 1日前的统计2日中满足VAR16的天数>=1ANDBARSLASTCOUNT(VAR13>1.5)>=3) AND (1日前的VAR13>4.5ANDC<开盘价=0 OR 1日前的VAR18) VAR43赋值:VAR11<5.4 AND VAR10<14 AND 收盘价>VAR9 AND 收盘价 VAR4 AND 条件连续成立次数>10 AND (统计7日中满足VAR18的天数 OR 1日前的VAR20<10) AND (VAR2 OR 条件连续成立次数>=10) VAR44赋值:VAR42 AND VAR43 VAR45赋值:(VAR16 AND 条件连续成立次数>=3 AND VAR29 AND 收盘价 5 AND VAR10<14) VAR47赋值:VAR27 AND VAR13>3.9 AND VAR11<1.05 AND 收盘价>VAR9 AND 收盘价 2日前的VAR9 AND VAR9<1日前的VAR9 AND 1日前的VAR45 AND VAR46 输出黄龙:VAR41 OR VAR44 OR VAR47