股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 新指标《凤凰线》买卖点清晰


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-22 17:20:44
新指标《凤凰线》买卖点清晰介绍

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

源码:
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;




 



gd13840

回复

举报

QQ|

GMT+8, 2024-11-18 07:47

快速回复 返回顶部 返回列表