- 精华
- 0
- 在线时间
- 25 小时
- UID
- 121359
- 积分
- 44
- 帖子
- 20
- 阅读权限
- 10
- 注册时间
- 2013-7-16
- 最后登录
- 2014-2-27
- 精华
- 0
- UID
- 121359
- 积分
- 44
- 帖子
- 20
- 主题
- 9
- 阅读权限
- 10
- 注册时间
- 2013-7-16
- 最后登录
- 2014-2-27
|
Params
Numeric Lots(1);
Vars
Bool bc(True);
Bool sc(True);
NumericSeries ac;
Begin
If(BarStatus==2 && Time==0.091500 && CurrentTime <= 0.091500)
{
return;
}
ac = (High[1]+low[1])*0.5;
bc= High>=ac[1] ;
sc= low<=ac[1] ;
if(MarketPosition == 0 )
{
if( bc)
{
Buy(Lots,Max(open,ac[1]));
}
}
Else
If( sc)
{
SellShort(Lots,Min(open,ac[1]));
}
if( sc)
{
SellShort(Lots,Min(open,ac[1]));
}
else
if( bc)
{
Buy(Lots,Max(open,ac[1]));
}
End
|
|