- 精华
- 20
- 在线时间
- 2981 小时
- UID
- 4
- 积分
- 22709
- 帖子
- 4802
- 阅读权限
- 255
- 注册时间
- 2007-7-20
- 最后登录
- 2024-1-15
- 精华
- 20
- UID
- 4
- 积分
- 22709
- 帖子
- 4802
- 主题
- 64
- 阅读权限
- 255
- 注册时间
- 2007-7-20
- 最后登录
- 2024-1-15
|
看这里:
- Params
- Numeric length(200);
- Vars
- NumericSeries thja;
- NumericSeries thjb;
- Numeric zhenghezhi;
- Numeric fuhezhi;
- Begin
- If(Close>=Close[1])
- {
- thja = (Close-Close[1])/Vol;
- thjb = 0;
- }else
- {
- thja = 0;
- thjb = (Close-Close[1])/Vol;
- }
- zhenghezhi=Summation(thja,length);
- fuhezhi=abs(Summation(thjb,length));
- PlotNumeric("zhenghezhi",zhenghezhi);
- PlotNumeric("fuhezhi",fuhezhi);
- end
复制代码 |
|