N:=30;
DIF:=EMA(CLOSE,4)-EMA(CLOSE,43);
DEA:=EMA(DIF,6);
MACD:=(DIF-DEA)*2;
A:=REF(L,1)=LLV(L,N);
A1:=C>=O AND O>=L;
A2:=macd>0;
A3:=MACD<=0 AND MACD>REF(MACD,1);
A4:=A2 OR A3;
XG1:=A AND A1 AND A4;
B:=L=LLV(L,N);
B1:=C>L AND C>REF(C,1);
B2:=C>O AND O>=L;
B3:=B1 OR B2;
B4:=A4;
XG2:=B AND B3 AND B4;
XG3:XG1 OR XG2;
九毛八公式解读
N赋值:30 DIF赋值:收盘价的4日指数移动平均-收盘价的43日指数移动平均 DEA赋值:DIF的6日指数移动平均 MACD赋值:(DIF-DEA)*2 A赋值:1日前的最低价=N日内最低价的最低值 A1赋值:收盘价>=开盘价 AND 开盘价>=最低价 A2赋值:MACD>0 A3赋值:MACD<=0 AND MACD>1日前的MACD A4赋值:A2 OR A3 XG1赋值:A AND A1 AND A4 B赋值:最低价=N日内最低价的最低值 B1赋值:收盘价>最低价 AND 收盘价>1日前的收盘价 B2赋值:收阳线AND 开盘价>=最低价 B3赋值:B1 OR B2 B4赋值:A4 XG2赋值:B AND B3 AND B4 输出XG3:XG1 OR XG2