• 欢迎访问第一股票指标公式网,汇集目前最全,最新的各种股票公式,股票指标公式,公式下载等股票软件指标公式源码

凤凰线指标 做为主图,让原K线显示

常见公式 第一股票指标公式网 5天前 5次浏览 0个评论 扫描二维码

股友提问要求:

171415.com解答:

 网友求助:

N:=1;
xopen:=(ref(o,N)+ref(c,N))/2;
xclose:=close;
xhigh:=max(high,xopen);
xlow:=min(low,xopen);
volality:=ma(xhigh-xlow,8);
w:ma(xclose,5)+volality/2;

k:ma(xclose,5)-volality/2;

bu:=cross(xclose,w);
sel:=cross(k,xclose);
var1:=barslast(bu);
var2:=barslast(sel);
drawicon(ref(var1,1)>var2 and var1=0,xlow,7),align1,valign0;

 

STICKLINE(xclose>xopen and var1<var2,xclose,xopen ,8,0 ),colorff00ff;
STICKLINE(xclose>xopen and var1<var2,xhigh,xclose ,0.5,0 ),colorff55ff;

STICKLINE(xclose>xopen and var1<var2,xopen,xlow ,0.5,0 ),colorff55ff;

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;

 

解答如下:
N:=1;
xopen:=(ref(o,N)+ref(c,N))/2;
xclose:=close;
xhigh:=max(high,xopen);
xlow:=min(low,xopen);
volality:=ma(xhigh-xlow,8);
w:ma(xclose,5)+volality/2;
k:ma(xclose,5)-volality/2;
bu:=cross(xclose,w);
sel:=cross(k,xclose);
var1:=barslast(bu);
var2:=barslast(sel);
drawicon(ref(var1,1)>var2 and var1=0,xlow,7),align1,valign0;
STICKLINE(xclose>xopen and var1<var2,close,open ,8,0 ),colorff00ff;
STICKLINE(xclose>xopen and var1<var2,high,close ,0.5,0 ),colorff55ff;
STICKLINE(xclose>xopen and var1<var2,open,low ,0.5,0 ),colorff55ff;
STICKLINE(xclose<=xopen and var1<var2,close,open ,8,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,high,open ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,close,low ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1>var2,close ,open ,8,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,open ,high ,0.5,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,close,low ,0.5,0 ),colorgreen;
STICKLINE(xclose>xopen and var1>var2,close ,open ,8,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,close,high ,0.5,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,open,low ,0.5,0 ),colorblue;
 

 


第一股票指标公式网所有股票公式及文章来源于网络仅供学习研究,请勿以此为依据进行股票交易。 版权投诉邮箱:313707241@qq.com 投放广告公式交流 QQ:313707241
喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址