- 精华
- 0
- 在线时间
- 55 小时
- UID
- 121786
- 积分
- 40
- 帖子
- 19
- 阅读权限
- 10
- 注册时间
- 2013-7-28
- 最后登录
- 2016-10-14
- 精华
- 0
- UID
- 121786
- 积分
- 40
- 帖子
- 19
- 主题
- 2
- 阅读权限
- 10
- 注册时间
- 2013-7-28
- 最后登录
- 2016-10-14
|
读书山林 发表于 2011-7-14 13:39
发现一个问题,还请老师帮忙解决一下
mtBarCnt = MtBar(TimeFrame,BarsBack,refCurBar,refOpen,refHigh, ...
你可以这样子取:
if(BarType == 0) { //日线
BarInterval_ = BarInterval * 1440;
} else if(BarType == 1) { //分钟线
BarInterval_ = BarInterval;
} else if(BarType == 4) { //周线
BarInterval_ = BarInterval * 10080;
} else if(BarType == 5) { //月线
BarInterval_ = BarInterval * 40320;
}
PlotNumeric("mtClose[10]:", mtClose[10 * TimeFrame / BarInterval_]); |
|