以下是新指标凤凰线买卖点清晰

新指标《凤凰线》买卖点清晰
 

源码:
xopen:=(ref(o,N)+ref(c,N))/2;
xclose:=close;
xhigh:=max(high,xopen);
xlow:=min(low,xopen);
vulality:=ma(xhigh-xlow,8);
凰线:ma(xclose,5)+vulality/2;
凤线:ma(xclose,5)-vulality/2;
bu:=cross(xclose,凰线);
sel:=cross(凤线,xclose);
var1:=barslast(bu);
var2:=barslast(sel);
drawicon(ref(var1,1)>var2 and var1=0,xlow,7),align1,valign0;
drawicon(ref(var2,1)>var1 and var2=0,xhigh,8),align1,valign2;
STICKLINE(xclose>xopen and var1<var2,xclose,xopen ,8,0 ),colorred;
STICKLINE(xclose>xopen and var1<var2,xhigh,xclose ,0.5,0 ),colorred;
STICKLINE(xclose>xopen and var1<var2,xopen,xlow ,0.5,0 ),colorred;
STICKLINE(xclose<=xopen and var1<var2,xclose,xopen ,8,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,xhigh,xopen ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,xclose,xlow ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1>var2,xclose ,xopen ,8,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,xopen ,xhigh ,0.5,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,xclose,xlow ,0.5,0 ),colorgreen;
STICKLINE(xclose>xopen and var1>var2,xclose ,xopen ,8,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,xclose,xhigh ,0.5,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,xopen,xlow ,0.5,0 ),colorblue;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。