设为首页收藏本站

 找回密码
 注册
查看: 1952|回复: 0
打印 上一主题 下一主题

在1分钟K线中用dataconvert 调用下面的KDJ五分钟指标 [复制链接]

Rank: 3Rank: 3

精华
0
UID
27018
积分
142
帖子
11
主题
3
阅读权限
40
注册时间
2011-2-28
最后登录
2013-7-9
跳转到指定楼层
1#
发表于 2013-3-11 16:08:58 |只看该作者 |倒序浏览
下面的代码,是博易文华等其他软件用的KDJ指标,那位大神能在1分钟用dataconert函数调用5分钟该KDJ指标,要能在副图显示,和该指标在5分钟的值完全一样。下面是KDJ源代码。论坛中给的跨周期调用例子太复杂,现在需要简单的调用。
Params

     Numeric length1(9);

     Numeric length2(3);

     Numeric Length3(3);

Vars

     NumericSeries RSV;

     NumericSeries KValue;

     NumericSeries DValue;


Begin

     RSV=(Close-lowest(low,length1))/(Highest(high,length1)-lowest(low,length1))*100;

     KValue=mysma(RSV,length2,1);

     DValue=mysma(KValue,length3,1);

     PlotNumeric("K",KValue,0,White);

     PlotNumeric("D",DValue,0,Yellow);

     PlotNumeric("j",3*KValue-2*DValue,0,Magenta);
end
简单就是实用
您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-5-13 00:53

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部