- 精华
- 0
- 在线时间
- 33 小时
- UID
- 133611
- 积分
- 7
- 帖子
- 6
- 阅读权限
- 10
- 注册时间
- 2013-6-18
- 最后登录
- 2018-11-29
- 精华
- 0
- UID
- 133611
- 积分
- 7
- 帖子
- 6
- 主题
- 1
- 阅读权限
- 10
- 注册时间
- 2013-6-18
- 最后登录
- 2018-11-29
|
Params
Numeric FirstTime(9.04);
Vars
NumericSeries FirstPrice;
Begin
If(Time<FirstPrice/100)
{
FirstPrice=Close;
}
Else
{
If(Time==FirstPrice/100)
{
FirstPrice=Average(Close,BarsSinceToday+1);
}
Else
{
FirstPrice=FirstPrice[1];
}
}
Commentary("BarsSinceToday:"+Text(BarsSinceToday+1));//当天开盘的第一根K线BarsSinceToday==0;
PlotNumeric("FirstPrice",FirstPrice);
Commentary("Time:"+Text(Time));
End
显示FirstPrice都是等于0,是什么原因啊?请各位高手、老师指点。 |
|