大智慧凤凰线指标副图源码
-
相关简介:大智慧凤凰线指标副图源码 参数.N.缺省1最小1.最大30.步长1. xopen:=(ref(o,N)+ref(c,N))/2; xclose:=close; xhigh:=max(high,xopen); xlow:=min(low,xopen); volality:=ma(xhigh-xlow,8); 凰线:ma(xclose,5)+volality/2; 凤线:ma(xclose,5)-volality/2; bu:=cross(xclose,凰线); sel:=cross(凤线,xclo
-
文章来源:股海网作者:股海网发布时间:2012-10-17浏览次数:
大智慧凤凰线指标副图源码
参数.N.缺省1最小1.最大30.步长1.
xopen:=(ref(o,N)+ref(c,N))/2;
xclose:=close;
xhigh:=max(high,xopen);
xlow:=min(low,xopen);
volality:=ma(xhigh-xlow,8);
凰线:ma(xclose,5)+volality/2;
凤线:ma(xclose,5)-volality/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;
凤凰线:凤凰线由蓝、绿、黄、红四种颜色的线柱和凤线(黄色)、凰线(白色)共同组成。凤凰线是对K线形态的进一步变形,因为经过一系列数据模型的演变,因此形态更加流畅,上涨、下跌的形态也更加明显。处于凤线上方的红、黄两色线柱代表资金流入动作明显,当资金持续流入,该指标上会出现红色向上箭头提示投资者买进;反之,处于凰线下方蓝、绿两色表示资金正在流出,若资金持续流出,该指标会发出绿色向下箭头提示投资者卖出。