公式如下 :
轨道A:EMA(C,3);
轨道B:EMA(C,6);
GD:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
MY01:=3*SMA(GD,3,1)-2*SMA(SMA(GD,3,1),3,1);
MY02:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14))/2+50;
MY03:=EXPMEMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(REF(C,1)-L)),14);
MY04:=H-REF(H,1);
MY04A:=REF(L,1)-L;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:彩虹桥投资学习'),COLORRED;
MY05:=EXPMEMA(IF(MY04>0 AND MY04>MY04A,MY04,0),14)*100/MY03;
MY06:=EXPMEMA(IF(MY04A>0 AND MY04A>MY04,MY04A,0),14)*100/MY03;
MY07:=EXPMEMA(EXPMEMA(ABS(MY06-MY05)/(MY06+MY05)*100,6),6);
MY08:=MY01>REF(MY01,1) AND REF(MY01,1)<10 AND MY02>REF(MY02,1) AND REF(MY02,1)<0 AND MY07>REF(MY07,1) AND 轨道A>REF(轨道A,1);
STICKLINE(MY08,L,H,3,0),COLORYELLOW;
DRAWICON(MY08,L*0.97,5);
信号很多,就做一个“笑脸”的选股吧。
选股公式如下 :
轨道A:=EMA(C,3);
轨道B:=EMA(C,6);
GD:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
MY01:=3*SMA(GD,3,1)-2*SMA(SMA(GD,3,1),3,1);
MY02:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14))/2+50;
MY03:=EXPMEMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(REF(C,1)-L)),14);
MY04:=H-REF(H,1);
MY04A:=REF(L,1)-L;
MY05:=EXPMEMA(IF(MY04>0 AND MY04>MY04A,MY04,0),14)*100/MY03;
MY06:=EXPMEMA(IF(MY04A>0 AND MY04A>MY04,MY04A,0),14)*100/MY03;
MY07:=EXPMEMA(EXPMEMA(ABS(MY06-MY05)/(MY06+MY05)*100,6),6);
MY01>REF(MY01,1) AND REF(MY01,1)<10 AND MY02>REF(MY02,1) AND REF(MY02,1)<0 AND MY07>REF(MY07,1) AND 轨道A>REF(轨道A,1);
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件
胜率53.49%
END
|