- 精华
- 0
- 在线时间
- 88 小时
- UID
- 27018
- 积分
- 142
- 帖子
- 11
- 阅读权限
- 40
- 注册时间
- 2011-2-28
- 最后登录
- 2013-7-9
- 精华
- 0
- UID
- 27018
- 积分
- 142
- 帖子
- 11
- 主题
- 3
- 阅读权限
- 40
- 注册时间
- 2011-2-28
- 最后登录
- 2013-7-9
|
下面的代码,是博易文华等其他软件用的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 |
|