- 精华
- 3
- 在线时间
- 12229 小时
- UID
- 5
- 积分
- 26584
- 帖子
- 12686
- 阅读权限
- 200
- 注册时间
- 2007-7-20
- 最后登录
- 2021-11-3
- 精华
- 3
- UID
- 5
- 积分
- 26584
- 帖子
- 12686
- 主题
- 49
- 阅读权限
- 200
- 注册时间
- 2007-7-20
- 最后登录
- 2021-11-3
|
- Params
- Numeric length1(n);
- Numeric length2(m1);
- Numeric Length3(m2);
- Vars
- NumericSeries RSV;
- NumericSeries KValue;
- NumericSeries DValue;
-
- Begin
- RSV=(Close-lowest(low,length1))/(Highest(high,length1)-lowest(low,length1))*100;
- KValue=sma(RSV,length2,1);
- DValue=sma(KValue,length3,1);
- PlotNumeric("K",KValue,White);
- PlotNumeric("D",DValue,Yellow);
- PlotNumeric("j",3*KValue-2*DValue,Magenta);
- PlotNumeric("Ref1",20);
- PlotNumeric("Ref2",80);
- End
复制代码 |
|