- 精华
- 0
- 在线时间
- 26 小时
- UID
- 254243
- 积分
- 4
- 帖子
- 3
- 阅读权限
- 10
- 注册时间
- 2017-7-20
- 最后登录
- 2017-9-13
- 精华
- 0
- UID
- 254243
- 积分
- 4
- 帖子
- 3
- 主题
- 0
- 阅读权限
- 10
- 注册时间
- 2017-7-20
- 最后登录
- 2017-9-13
|
If(barssinceentry==0&&marketposition==1&&low<myentryprice-stoplossset*minpoint)
{
buystoploss=true;
Sell(lots,myentryprice-stoplossset*minpoint);
}
If(barssinceentry==0&&marketposition==-1&&high>myentryprice+stoplossset*minpoint)
{
sellshortstoploss=true;
BuyToCover(lots,myentryprice-stoplossset*minpoint);
}
If(buycondition&&!buystoploss)Buy(lots,buyprice);
If(sellcondition&&!sellshortstoploss)SellShort(lots,buyprice);
我的思路 你看行不?
|
|