Vars
Numeric Mp(0)
Begin
Mp=marketposion;
if (close>high(1) and close>high(2) and mp<>1)
{buy(1,0,true);
}
if (close<low(1) and close<low(2) and mp<>-1)
{sellshort(1,0,true)
}
While (time>0.145900);
{ buy(1,0);
sellshort(1,0);
}
End作者: talent900 时间: 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作者: nopain 时间: 2007-12-28 11:16:24