- 精华
- 0
- 在线时间
- 832 小时
- UID
- 644
- 积分
- 3332
- 帖子
- 284
- 阅读权限
- 80
- 注册时间
- 2007-10-30
- 最后登录
- 2021-10-16
- 精华
- 0
- UID
- 644
- 积分
- 3332
- 帖子
- 284
- 主题
- 28
- 阅读权限
- 80
- 注册时间
- 2007-10-30
- 最后登录
- 2021-10-16
|
If(high>dtck)
{
Buy(0,dtck);
}
If(low<Ktck)// 如果当前无持仓当出现最低价下穿穿空头头参考价时
{
SellShort(0,ktck); // 卖出开仓
}
//止损条件-/
SetStopLoss(1, ContractUnit *BigPointValue *zsds, true); // 止损平仓
//多头止赢条件
if(close<open And MarketPosition==1)
{SetPercentTrailing(Open*0.04*ContractUnit *BigPointValue,htfd,True);
}
if(close>open And MarketPosition==-1 )
{SetPercentTrailing(Open*0.04*ContractUnit *BigPointValue,htfd,True); } |
|