|
input:n(20,1,30),n1(20,1,30),n2(20,1,30),n3(1.8,1,5),m(10,1,60);
ma20:ma(c,20),colorwhite;
ma120:ma(c,120),colorcyan;
ma250:ma(c,250),colorred;
va1:=barslast(cross(ma120,ma250))<N;
va2:=barslast(cross(ma20,ma120))<N1;
va3:=barslast(cross(ma250,ma120))<N2;
顺三线开花:=va1 and cross(ma20,ma120);
drawtext(顺三线开花,ma250-0.1,'顺三线开花'),coloryellow;
drawicon(顺三线开花,ma250-0.09,10);
逆三线开花:=(cross(ma250,ma120) and va2) or (va3 and cross(ma20,ma250));
DRAWTEXT(逆三线开花,ma250-0.1,'逆三线开花'),coloryellow;
drawicon(逆三线开花,ma250-0.09,10);
aa:=(ma120+ma250)/2;
up:=aa*(n3/100)+aa;
dn:=aa-aa*(n3/100);
bx:=count(between(ma120,up,dn) and between(ma250,up,dn),m)=m;
var1:=ma120>ma250;
var2:=ma120<MA250;
var3:=cross(ma20,ma120);
var4:=cross(ma20,ma250);
并三线开花:=(bx and var1 and var4) or (bx and var2 and var3);
drawtext(并三线开花,ma250-0.1,'并三线开花'),coloryellow;
drawicon(并三线开花,ma250-0.09,10);
顺选:顺三线开花;
逆选:逆三线开花;
并选:并三线开花; |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
×
|