- 精华
- 0
- 在线时间
- 70 小时
- UID
- 6061
- 积分
- 383
- 帖子
- 100
- 阅读权限
- 50
- 注册时间
- 2009-12-4
- 最后登录
- 2019-3-30
- 精华
- 0
- UID
- 6061
- 积分
- 383
- 帖子
- 100
- 主题
- 17
- 阅读权限
- 50
- 注册时间
- 2009-12-4
- 最后登录
- 2019-3-30
|
if(marketposition==1)
{
maxprofit_buy = ContractProfit;
if (maxprofit_buy<maxprofit_buy[1]*0.5&&maxprofit_buy>50||CrossUnder(close,ma20))
{sell;}
}
if(marketposition==-1)
{
maxprofit_sell = ContractProfit;
if(maxprofit_sell<maxprofit_sell[1]*0.5&&maxprofit_sell>50 ||crossover(close,ma20))
{buytocover;}
}
老大帮我看下,为什么只有做空可以实现获利回吐平仓,而做多却不行,不知道哪里写错了! |
|