- 精华
- 0
- 在线时间
- 40 小时
- UID
- 862
- 积分
- 124
- 帖子
- 21
- 阅读权限
- 40
- 注册时间
- 2007-12-2
- 最后登录
- 2019-4-1
- 精华
- 0
- UID
- 862
- 积分
- 124
- 帖子
- 21
- 主题
- 3
- 阅读权限
- 40
- 注册时间
- 2007-12-2
- 最后登录
- 2019-4-1
|
发表于 2007-12-28 11:10:45
|显示全部楼层
还有这一段,也不能成功编译?
Vars
Numeric Highprice
Numeric lowprice
Numeric mp
Begin
Mp=marketposion
While (time>0.0900 and time<0.0930)
{
highprice=max(high,highprice);
lowprice=min(low,lowprice);
}
While(time>0.0930)
{if (close>highprice and mp<>1)
{buy(1,0,true)}
If(close<lowprice and mp<>-1)
{sellshort(1,0,true)}
}
While (time>0.145900)
{ buy(1,0);
sellshort(1,0)
}
End |
|