九毛八公式指标
请老师帮忙编写MACD角度大于30的选股公式如下图谢谢老师.
公式模块:
{底背离角度1}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27); DEA:=EMA(DIFF,9); A1:=BArslAST(REF(crOSS(DIFF,DEA),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); DEA1:=EMA(EMA(CLOSE,12)/EMA(CLOSE,27),9); 角度:ATAN(DEA1/REF(DEA1,A1+1)*100-100)*57.3,NODRAW; 底背离 AND 角度>=30; {底背离角度2} DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27); DEA:=EMA(DIFF,9); A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); DEA1:=EMA(EMA(CLOSE,12)/EMA(CLOSE,27),9); 角度:ATAN(DEA1/REF(DEA1,A1+1)*100-100)*57.3,NODRAW; 底背离 AND 角度>=30 AND A1<=18;