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;
VAR7:=(VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)>4;
C>O AND C>REF(C,1)*1.03 AND C=H AND VAR7;
九毛八公式解读
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 VAR7赋值:(VAR1+VAR2+VAR3+VAR4+VAR5+VAR6)>4 收阳线AND 收盘价>1日前的收盘价*1.03 AND 收盘价=最高价 AND VAR7