有两段代码运行不过去,提示错误 逻辑运算语句的左右值的数据类型必须属于BOOL类,在线老师帮帮忙
2022-01-17 20:49
If(MarketPosition ==( 1 and Close[1])<(AvgEntryPrice - save*minpoint And BarsSinceEntry>0))
{
Sell(lots,Open);
Commentary("多单止损出场");
}
If(MarketPosition==(-1 And Close[1])>(AvgEntryPrice + save*minpoint And BarsSinceEntry>0))
{
BuyToCover(lots,Open);
Commentary("空单止损出场");
}
评论区
查看全部