九毛八公式指标
请老师把下面的公式在同一天出现信号合并成一个选股公式,谢谢老师。一个一个去看太麻烦。谢谢老师 1,曙光 VAR1:=C/REF(C,1)<0.97 AND C/O<0.97; VAR2:=O<=REF(C,1); VAR3:=C>(REF(C,1)+(REF(O,1)-REF(C,1))*0.2); REF(VAR1,1) AND VAR2 AND VAR3; 2,乖离率 BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; REF(BIAS1<-6,1) AND C>O; 3,平均线往上 A60:=MA(C,60); XG1:ATAN((A60/REF(A60,1)-1)*100)*180/3.1416>5;
公式模块:
{合并1同时满足}
{曙光} VAR1:=C/REF(C,1)<0.97 AND C/O<0.97; VAR2:=O<=REF(C,1); VAR3:=C>(REF(C,1)+(REF(O,1)-REF(C,1))*0.2); XG0:=REF(VAR1,1) AND VAR2 AND VAR3; {乖离率} bias1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; XG2:=REF(BIAS1<-6,1) AND C>O; {平均线往上} A60:=MA(C,60); XG1:ATAN((A60/REF(A60,1)-1)*100)*180/3.1416>5; {上穿8日线} MA1:=MA(CLOSE,1); MA8:=MA(CLOSE,8); XG3:=crOSS(MA1,MA8); XG0 AND XG2 AND XG1 AND XG3; {合并2R任意一个满足} {曙光} VAR1:=C/REF(C,1)<0.97 AND C/O<0.97; VAR2:=O<=REF(C,1); VAR3:=C>(REF(C,1)+(REF(O,1)-REF(C,1))*0.2); XG0:=REF(VAR1,1) AND VAR2 AND VAR3; {乖离率} BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; XG2:=REF(BIAS1<-6,1) AND C>O; {平均线往上} A60:=MA(C,60); XG1:ATAN((A60/REF(A60,1)-1)*100)*180/3.1416>5; {上穿8日线} MA1:=MA(CLOSE,1); MA8:=MA(CLOSE,8); XG3:=CROSS(MA1,MA8); XG0 or XG2 or XG1 or XG3;