VAR1:=1;
VAR5:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR6:=EMA(VAR5,9);
VAR7:=VAR1*CLOSE*1.236<MA(CLOSE,60);
VAR8:=CLOSE/REF(CLOSE,1)>1.021;
VAR9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;
VARA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
VARB:=ABS(VAR5-VAR6);
VARC:=STD(CLOSE,90)*10;
买: VAR1*VAR7 AND VAR8 AND VAR9 AND VARC<25 AND CLOSE<8 AND VARA<114 AND VARB<=0.23*40;
九毛八公式解读
VAR1赋值:1 VAR5赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均 VAR6赋值:VAR5的9日指数移动平均 VAR7赋值:VAR1*收盘价*1.236<收盘价的60日简单移动平均 VAR8赋值:收盘价/1日前的收盘价>1.021 VAR9赋值:(最高价-收盘价)*1.36<=收盘价-开盘价 VARA赋值:(收盘价的120日简单移动平均-收盘价)/收盘价*100 VARB赋值:VAR5-VAR6的绝对值 VARC赋值:收盘价的90日估算标准差*10 输出买: VAR1*VAR7 AND VAR8 AND VAR9 AND VARC<25 AND 收盘价<8 AND VARA<114 AND VARB<=0.23*40