TYP:=(HIGH+LOW+CLOSE)/3;
CI15:=(TYP-MA(TYP,15))/(0.015*AVEDEV(TYP,15));
CI10:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
CI5:=(TYP-MA(TYP,5))/(0.015*AVEDEV(TYP,5));
CI3:=(TYP-MA(TYP,3))/(0.015*AVEDEV(TYP,3));
EMAH3:=EMA(H,3);
EMAL3:=EMA(L,3);
EMAH5:=EMA(H,5);
EMAL5:=EMA(L,5);
EMAL10:=EMA(L,10);
EMAZ:=(EMAH3+EMAH5+EMAL3+EMAL5)/4;
EMA3:=(EMAH3-EMAL3)/6+EMAL3;
PBX1:=(EXPMA((C+H+L)/3,4)+MA((C+H+L)/3,4*2)+MA((C+H+L)/3,4*4))/3;
PBX2:=(EXPMA((C+H+L)/3,6)+MA((C+H+L)/3,6*2)+MA((C+H+L)/3,6*4))/3;
XG:PBX1>PBX2 AND CI15>0 AND CI10>0 AND EMAH3>EMAH5 AND
EMAL3>EMAL5 AND EMAL5>EMAL10 AND O<EMA3 AND L<EMAL3;
九毛八公式解读
TYP赋值:(最高价+最低价+收盘价)/3 CI15赋值:(TYP-TYP的15日简单移动平均)/(0.015*TYP的15日平均绝对偏差) CI10赋值:(TYP-TYP的10日简单移动平均)/(0.015*TYP的10日平均绝对偏差) CI5赋值:(TYP-TYP的5日简单移动平均)/(0.015*TYP的5日平均绝对偏差) CI3赋值:(TYP-TYP的3日简单移动平均)/(0.015*TYP的3日平均绝对偏差) EMAH3赋值:最高价的3日指数移动平均 EMAL3赋值:最低价的3日指数移动平均 EMAH5赋值:最高价的5日指数移动平均 EMAL5赋值:最低价的5日指数移动平均 EMAL10赋值:最低价的10日指数移动平均 EMAZ赋值:(EMAH3+EMAH5+EMAL3+EMAL5)/4 EMA3赋值:(EMAH3-EMAL3)/6+EMAL3 PBX1赋值:((收盘价+最高价+最低价)/3的4日指数移动平均+(收盘价+最高价+最低价)/3的4*2日简单移动平均+(收盘价+最高价+最低价)/3的4*4日简单移动平均)/3 PBX2赋值:((收盘价+最高价+最低价)/3的6日指数移动平均+(收盘价+最高价+最低价)/3的6*2日简单移动平均+(收盘价+最高价+最低价)/3的6*4日简单移动平均)/3 输出XG:PBX1>PBX2 AND CI15>0 AND CI10>0 AND EMAH3>EMAH5 AND EMAL3>EMAL5 AND EMAL5>EMAL10 AND 开盘价