龙听期货论坛's Archiver

龙听 发表于 2018-10-25 16:02

博易指标公式(顶底奇准合并版)

公式如下:[code]
RV:=(CLOSE-LLV(LOW,29))/(HHV(HIGH,29)-LLV(LOW,29))*100;
VAR89:=SMA(RV,3,1);
VAR98:=SMA(VAR89,3,1);
PARTLINE(VAR98>REF(VAR98,1),VAR89),COLORRED,LINETHICK2;
PARTLINE(VAR98<REF(VAR98,1),VAR89),COLORGREEN,LINETHICK2;
VAR1:=LLV(LOW,34);
VAR2:=HHV(HIGH,34);
VAR3:=REF(CLOSE,1);
VAR4:=EMA((CLOSE-VAR1)/(VAR2-VAR1),3)*100;
VAR7:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100,COLORRED;
VAR5:=(VAR4-LLV(VAR4,21))/(HHV(VAR4,21)-LLV(VAR4,21))*100;
Q1:IF(CROSS(VAR5,90) AND VAR4<40,18,10);
Q2:IF(CROSS(VAR7,12) AND REF(VAR4,5)<20 AND REF(VAR4,3)<20,18,10);
P1:IF(CROSS(84,VAR7),82,90),COLOR99FF33;
P2:IF(CROSS(84,VAR4),82,90),COLORCYAN;
DRAWTEXT(Q1>10 OR Q2>10,20,'多'),COLOR0000FF;
DRAWTEXT(P1<90 OR P2<90,80,'空'),COLOR00FF00;
[/code]

效果如下:
[attach]4886[/attach]

龙听 发表于 2018-10-25 16:02

原地址:[url]http://blog.sina.com.cn/s/blog_505cc3030100n9iz.html[/url]

页: [1]