AA:=100-100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),COLORGREEN;
TYP:=(HIGH+LOW+CLOSE)/3;
BB:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
macd:=(DIF-DEA)*2;
bias :=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*100;
BIASMA :=MA(BIAS,5);
BIAS6 :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
XG: crOSS(BIAS6,BIASMA) AND MacD>REF(MACD,1) AND CROSS(BB,-30) AND AA>60 ;