AA1:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
AA2:=SMA(AA1,2,1);
主力趋势:=SMA(AA2,2,1),LINETHICK3,COLORFFCC66;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA);
MacD多头B:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<=REF(MACD,2);
均线多头B:=C>=REF(C,1) AND REF(C ,1)<=REF(C,2) AND REF(C,2)<=REF(C,3);
趋势多头B:=主力趋势<11 AND (主力趋势>=REF(主力趋势,1));
多头买点:=趋势多头B AND MACD多头B AND 均线多头B;
B:多头买点;