BB:=CLOSE>REF(CLOSE,1)*1.095;
A1:=BArslAST(BB);
A2:=BETWEEN(C,REF(C,A1)*1.03,REF(C,A1)*0.97) AND A1<=30;
A3:=REF(O,3)>REF(O,2);
A4:=REF(O,2)>REF(O,1);
A5:=CLOSE>REF(CLOSE,1)*1.03 AND C>O;
A6:=BETWEEN(C,REF(O,A1)*1.03,REF(O,A1)*0.97) AND A1<=30;
B1:=A2 AND A3 AND A4 AND A5;
B2:=A6 AND A3 AND A4 AND A5;
B:=B1 OR B2;
XG:FILTER(B,5),COLORRED;
九毛八公式解读
BB赋值:收盘价>1日前的收盘价*1.095 A1赋值:上次BB距今天数 A2赋值:收盘价位于A1日前的收盘价*1.03和A1日前的收盘价*0.97之间 AND A1<=30 A3赋值:3日前的开盘价>2日前的开盘价 A4赋值:2日前的开盘价>1日前的开盘价 A5赋值:收盘价>1日前的收盘价*1.03 AND 收阳线 A6赋值:收盘价位于A1日前的开盘价*1.03和A1日前的开盘价*0.97之间 AND A1<=30 B1赋值:A2 AND A3 AND A4 AND A5 B2赋值:A6 AND A3 AND A4 AND A5 B赋值:B1 OR B2 输出XG:B的5日过滤,画红色