公式如下:
QW1:=(HIGH+LOW+CLOSE*2)/4;
QW3:=EMA(QW1,10);
QW4:=STD(QW1,10);
QW5:=(QW1-QW3)*100/QW4;
QW6:=EMA(QW5,5);
RK7:=EMA(QW6,10);
ZD1:EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED;
ZD2:EMA(ZD1,4),LINETHICK1,COLORFFFF34;
DXT:IF(CROSS(ZD1,ZD2) AND ZD2<-10,30,0),LINETHICK1,COLORFF00FF;
XXT:IF(CROSS(ZD2,80),70,100),COLORFF9900;
BUY1:EMA(ZD2,4),COLORWHITE;
BUY2:EMA(BUY1,4),COLORGREEN;
BUYM3:=EMA(BUY2,4);
BUYM4:=EMA(BUYM3,4);
STICKLINE(ZD1
STICKLINE(ZD1> REF(ZD1,1),ZD1,EMA(ZD1,3),2,0) ,COLOR0088FF;
DRAWICON(DXT,30,1);
DRAWICON(CROSS(ZD2,80),70,2);
DRAWTEXT(CROSS(ZD1,ZD2) AND ZD2<20 AND ZD2>-10,40,'买入'),COLORCCFF99;
DRAWTEXT(DXT>0,-20,'看涨'),COLOR0000FF;
VAR811:=SUMBARS(VOL,FINANCE(7)*100);
VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR883:=(CLOSE-VAR822)/VAR822*100;
VAR884:=HHV(VAR883,VAR811);
VAR885:=LLV(VAR883,VAR811);
VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100;
K:=SMA(VAR886,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3);
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:彩虹桥投资学习'),COLORRED;
STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND ZD2<0,ZD1,ZD1+20,6,0),COLORYELLOW;
DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND ZD2<0,60,'R-BUY'),COLORFFFFFF;
VAR1:=MA(CLOSE,152);
VAR2:=MA(CLOSE,194);
VAR3:=VAR2+2*STD(CLOSE,170);
VAR4:=VAR1+2*STD(CLOSE,170);
DXQ1:CLOSE>(VAR3)*13*10,COLORBLUE,LINETHICK2;
VAR18:=HHV(HIGH,30);
VAR19:=LLV(LOW,30);
NL:=EMA((CLOSE-VAR19)/(VAR18-VAR19)*100,5)/8*10;
VAR3B:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR3C:=SMA(VAR3B,3,1);
VAR3D:=SMA(VAR3C,3,1);
VAR3E:=SMA(VAR3D,3,1);
VAR3F:=CROSS(VAR3D,VAR3E) AND VAR3D<20;
VAR40:=CROSS(VAR3E,VAR3D) AND VAR3D>80;
VAR41:=5;
DRAWTEXT(CROSS(VAR41,NL),30,'★做底'),COLORWHITE;
信号很多,就做一个“看涨”的选股吧。
选股公式如下:
QW1:=(HIGH+LOW+CLOSE*2)/4;QW3:=EMA(QW1,10);QW4:=STD(QW1,10);QW5:=(QW1-QW3)*100/QW4;QW6:=EMA(QW5,5);RK7:=EMA(QW6,10);ZD1:=EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED;ZD2:=EMA(ZD1,4),LINETHICK1,COLORFFFF34;AA:=IF(CROSS(ZD1,ZD2) AND ZD2<-10,30,0),LINETHICK1,COLORFF00FF;AA>0;测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件
胜率55.63%
END
|