- 精华
- 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
|
- Vars
- NumericSeries dayhigh;
- NumericSeries daylow;
- NumericSeries Nhigh;
- NumericSeries Nlow;
- Begin
- if(barstatus==0 || time==0.09 )
- {
- dayhigh = high;
- daylow = low;
- }else if(time >0.09 && time<=0.15)
- {
- dayhigh = Max(dayhigh,high);
- daylow = min(daylow,low);
- }
- if(barstatus ==0 || time==0.21)
- {
- Nhigh = high;
- Nlow = low;
- }else if(time>0.21 || time<0.08)
- {
- Nhigh = Max(Nhigh,high);
- Nlow = Min(Nlow,low);
- }
- if(time>=0.09 && time<=0.15)
- {
- PlotNumeric("dayhigh",dayhigh);
- PlotNumeric("daylow",daylow);
- }
- if(time>=0.21 || time<0.08)
- {
- PlotNumeric("Nhigh",Nhigh);
- PlotNumeric("Nlow",Nlow);
- }
- end
复制代码 |
|