公式如下:

V1:=LLV(LOW,10);

V2:=HHV(HIGH,30);

价格线:EMA(((CLOSE-V1)/(V2-V1))*(100),4),COLORGREEN;

IF(价格线> REF(价格线,1)*1.01,价格线 ,DRAWNULL),COLORRED;

IF(价格线< REF(价格线,1),价格线 ,DRAWNULL),COLORBLUE;

VAR06:=(2*CLOSE+HIGH+LOW)/4;

VAR07:=LLV(LOW,13);

DRAWTEXT_FIX(C>O,0.01,0.9,0,微信公众号:水鸭的投资日记),COLORRED;

VAR08:=HHV(HIGH,13);

VAR09:=EMA((VAR06-VAR07)/(VAR08-VAR07)*100,13);

VARA1:=EMA(0.667*REF(VAR09,1)+0.333*VAR09,2);

{A:VAR9-50;

B:VARA1-50;

STICKLINE(A> B,A,B,2,0),COLORRED;

STICKLINE(A<= B,A,B,2,0),COLORGREEN;

0,COLORRED;}

STICKLINE(VAR09> VARA1,VAR09,VARA1,3,0),COLORRED;

STICKLINE(VAR09<= VARA1,VAR09,VARA1,3,0),COLORGREEN;

80,COLORRED,DOTLINE;

20,,COLORGREEN,DOTLINE;

DRAWTEXT(ISLASTBAR,80,顶点),COLORRED;

DRAWTEXT(ISLASTBAR,20,低点),COLORGREEN;

DRAWTEXT_FIX(1,0,0,0, A – 见红关注-逢低买入 ),COLORRED;

DRAWTEXT_FIX(1,0.14,0,0, B – 见绿警示-逢高减仓 ),COLORGREEN;

DRAWTEXT_FIX(1,0.28,0,0, C – 见蓝风险-高抛避险 ),COLORCYAN;

观察:

似乎“由绿转红”时,会有一段行情,就用这个做选股公式吧

选股公式如下

V1:=LLV(LOW,10);

V2:=HHV(HIGH,30);

价格线:=EMA(((CLOSE-V1)/(V2-V1))*(100),4);

价格线> REF(价格线,1)*1.01 AND REF(价格线,1)<REF(价格线,2)*1.01;

测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件。

声明:本站为非盈利性赞助网站,本站所有软件来自互联网,版权属原著所有,如有需要请购买正版。如有侵权,敬请来信联系我们,我们立即删除。