- 精华
- 0
- 在线时间
- 113 小时
- UID
- 95458
- 积分
- 129
- 帖子
- 43
- 阅读权限
- 40
- 注册时间
- 2012-2-4
- 最后登录
- 2014-4-21
- 精华
- 0
- UID
- 95458
- 积分
- 129
- 帖子
- 43
- 主题
- 9
- 阅读权限
- 40
- 注册时间
- 2012-2-4
- 最后登录
- 2014-4-21
|
lh948 发表于 2012-4-12 09:52
这句没有的
EntryCondition=(highestValue - Low)/(highestValue - lowestValue)>TrailingSet&&(Low>(highestValue -(highestValue - lowestValue)*StopLossSet));
If(EntryCondition)
{
myEntryPrice = highestValue - (HighestValue - LowestValue ) * TrailingSet;
myEntryPrice = IntPart(myEntryPrice / (PriceScale()*MinMove)) *(PriceScale()*MinMove);
If(myEntryPrice >= low && myEntryPrice <= High)
{
Buy(1,MyEntryPrice);
}
}
这样能实现开仓吗?会不会出现未来情况? |
|