M:=22;
N:=250;
MANX:=MA(C,250);
SCTS:=BARSLAST(CROSS(C,MANX));
XG1:=SCTS>M;
YMACD:=macd.MACD#MONTH;
ZDIF:=MACD.DIF#WEEK;
ZDEA:=MACD.DEA#WEEK;
XG2:=YMACD>0 AND ZDIF>=0 AND ZDEA>=0;
XG3:=REF(L,1)/MANX<1.08;
XG:XG3 AND XG2 AND XG1 AND O>MANX AND L<MANX*1.005 AND MANX>REF(MANX,SCTS);
九毛八公式解读
M赋值:22 N赋值:250 MANX赋值:收盘价的250日简单移动平均 SCTS赋值:上次收盘价上穿MANX距今天数 XG1赋值:SCTS>M YMACD赋值:平滑异同平均的MACD[取月线数据] ZDIF赋值:平滑异同平均的DIF[取周线数据] ZDEA赋值:平滑异同平均的DEA[取周线数据] XG2赋值:YMACD>0 AND ZDIF>=0 AND ZDEA>=0 XG3赋值:1日前的最低价/MANX<1.08 输出XG:XG3 AND XG2 AND XG1 AND 开盘价>MANX AND 最低价SCTS日前的MANX