顶背离、底背离划线公式

[复制链接]
查看38 | 回复0 | 2022-7-24 07:36:13 | 显示全部楼层 |阅读模式

N是参数,请自调,默认为6
 

A:CLOSE-REF(CLOSE,12),COLORSTICK;
AAA2:MA(A,5),COLORRED,LINETHICK2;
AAA3:MA(A,10),COLORBLUE,LINETHICK2;
DRAWBAND(AAA3,RGB(0,0,255),AAA2,RGB(255,51,51));
AAA1:MA(A,3),COLORGREEN;
强:IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL),COLORYELLOW,LINETHICK2;
N:=6;
C1:=A;
AA1:=REF(C1,N)=HHV(C1,2*N+1);
BB1:=BACKSET(AA1,N+1);
CC1:=FILTER(BB1,N) AND C1=HHV(C1,N+1);
A1:=BARSLAST(REF(CC1,1));
顶背离:=REF(CLOSE,A1+1)<CLOSE AND REF(C1,A1+1)>C1 AND CC1;
DRAWLINE(CC1,C1,FILTER(顶背离>0,5),C1,0),COLORGREEN,LINETHICK2;
AA2:=REF(C1,N)=LLV(C1,2*3+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND C1=LLV(C1,N+1);
AA2A:=BARSLAST(REF(CC2,1));
底背离:=REF(C,AA2A+1)>CLOSE AND REF(C1,AA2A+1)<C1 AND CC2;
DRAWLINE(CC2,C1,FILTER(底背离>0,5),C1,0),COLORRED,LINETHICK2;

033477235.PNG

033477235.PNG

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则