所持股:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
指数:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);
A:=REF(所持股,2)<REF(所持股,1) AND REF(所持股,1)<所持股 AND REF(指数,2)>REF(所持股,2);
B:=REF(指数,2)>REF(指数,1) AND REF(指数,1)>指数 AND 所持股>指数 AND 指数<30 AND 所持股<30 ;
结果:A AND B;