- 精华
- 0
- 在线时间
- 58 小时
- UID
- 179663
- 积分
- 59
- 帖子
- 35
- 阅读权限
- 30
- 注册时间
- 2014-1-22
- 最后登录
- 2020-1-2
- 精华
- 0
- UID
- 179663
- 积分
- 59
- 帖子
- 35
- 主题
- 7
- 阅读权限
- 30
- 注册时间
- 2014-1-22
- 最后登录
- 2020-1-2
|
请问这是怎么回事,在设置止损单时,怎么会提示小括号不匹配?谢谢
QQ-599196908
就是下面这一行:
If (BarssinceEntry > 0 and MarketPosition == 1)
{StopLine=HigherAfterEntry[1]* (1 – TrailingStop/1000 );
If(Low<=StopLine)
{Sell(0,Min(Open,StopLine));
bLongStoped=True;
}
}Else If (BarssinceEntry > 0 and MarketPosition == -1)
{StopLine=LowerAfterEntry[1]* (1 + TrailingStop/1000 );
If(High>=StopLine)
{BuyToCover(0,Max(Open,StopLine));
bShortStoped=True;
}
}
End
|
|