- 精华
- 0
- 在线时间
- 1 小时
- UID
- 243612
- 积分
- 5
- 帖子
- 3
- 阅读权限
- 10
- 注册时间
- 2016-11-24
- 最后登录
- 2016-12-13
- 精华
- 0
- UID
- 243612
- 积分
- 5
- 帖子
- 3
- 主题
- 2
- 阅读权限
- 10
- 注册时间
- 2016-11-24
- 最后登录
- 2016-12-13
|
发表于 2016-12-12 20:42:42
|显示全部楼层
If(Date<>Date[1])
{
HighAfterLongEntry=High;
LowAfterShortEntry=low;
MyRealMp=0;
PlotNumeric("h1",HighAfterLongEntry);
PlotNumeric("l1",LowAfterShortEntry);
}
Else
{
HighAfterLongEntry=Max(HighAfterLongEntry,High);
LowAfterShortEntry=Min(LowAfterShortEntry,Low);
PlotNumeric("h2",HighAfterLongEntry);
PlotNumeric("l2",LowAfterShortEntry);
}
这个模型中,HighAfterLongEntry和LowAfterShortEntry为全局变量,初始值设为0,加载之后发现有的输出值为空值,麻烦看看这段模型是什么意思 |
|