CHL:=(H+L+3*C)/5;
BARNO:=BARSCOUNT(C);
M1:=IF(BARNO<5,BARNO,5);
M2:=IF(BARNO<8,BARNO,8);
M3:=IF(BARNO<13,BARNO,13);
M5:=IF(BARNO<34,BARNO,34);
M6:=IF(BARNO<55,BARNO,55);
MA5:=(CHL+M1*EMA(CHL,M1))/(M1+1);
MA8:=(CHL+M2*EMA(CHL,M2))/(M2+1);
MA13:=(CHL+M3*EMA(CHL,M3))/(M3+1);
HIGHK:=HIGH-LOW;
HHC:=HIGH-REF(CLOSE,1);
LLC:=REF(CLOSE,1)-LOW;
HIGHKK:=MAX(MAX(HIGHK,HHC),LLC);
KHIGH1:=SUM(HIGHKK,M6)/M6;
KHIGH:=MA(KHIGH1,M5);
QSMA5:=MA13*0.2+MA8*0.3+MA5*0.5;
BIAS1:=((CHL-QSMA5)/KHIGH)*10;
BIAS:EMA(BIAS1,3);
MABIAS:EMA(BIAS,5);
乖离率围绕0轴震荡
当乖离率小于-5且白线上穿黄线,即为短线买入点;
当乖离率大于5且白线下穿黄线,即为卖出点;
当乖离率大于10,表示短线超买;
当乖离率小于-10,表示短线超卖;
|