- 精华
- 0
- 在线时间
- 30 小时
- UID
- 115532
- 积分
- 74
- 帖子
- 28
- 阅读权限
- 30
- 注册时间
- 2013-2-15
- 最后登录
- 2013-4-28
- 精华
- 0
- UID
- 115532
- 积分
- 74
- 帖子
- 28
- 主题
- 7
- 阅读权限
- 30
- 注册时间
- 2013-2-15
- 最后登录
- 2013-4-28
|
本帖最后由 任任任 于 2013-3-29 20:24 编辑
Params
Numeric M(25);
Numeric LOTS(1);
Vars
Numeric offset;
Numeric offset1;
NumericSeries MA1;
NumericSeries MA2;
Numeric spread;
Numeric OPENP;
Begin
offset = MinMove()*PriceScale();
spread=Max(HighD(1)-CloseD(1),CloseD(1)-LowD(1));
OPENP=OpenD(0);
MA1=OPENP+0.01*M*spread;
MA2=OPENP-0.01*M*spread;
if(Time>0.0915 && Time<=0.1450)
{
If(l[1]<MA2 )
{
SellShort(LOTS,l[1]-offset);
}
If(h[1]>ma1 )
{
Buy(LOTS,h[1]+offset);
}}
if(Time*100>=15.12 and Time<0.1600)
{
if(marketposition==-1)
{
BuyToCover(0,Open+offset);
PlotString("Vol","平12",Low,blue);
Return;
}
if(marketposition==1)
{
Sell(0,Open-offset);
PlotString("Vol","平11",high,Red);
Return;
}}
End
|
|