- 精华
- 0
- 在线时间
- 234 小时
- UID
- 120991
- 积分
- 224
- 帖子
- 109
- 阅读权限
- 40
- 注册时间
- 2013-7-5
- 最后登录
- 2014-3-13
- 精华
- 0
- UID
- 120991
- 积分
- 224
- 帖子
- 109
- 主题
- 3
- 阅读权限
- 40
- 注册时间
- 2013-7-5
- 最后登录
- 2014-3-13
|
Params
Numeric n(0.7);
Vars
NumericSeries mm;
BoolSeries nn;
BoolSeries aa;
BoolSeries nn1;
BoolSeries bb;
Begin
mm=High[1]-Low[1];
nn=High[1]-High[2]>=mm*n;
aa=Close[1]<Close[2];
nn1=Low[2]-Low[1]>=mm*n;
bb=Close[1]>Close[2];
If(Time*100>=9.15 and Time*100<14.00)
{
If(MarketPosition==0 and nn and aa)
{
SellShort(1,Open);
}
If(MarketPosition==0 and nn1 and bb)
{
Buy(1,Open);
}
}
If(Time*100>15.10)
{
BuyToCover(0,open);
Sell(0,open);
}
End
|
|