系统交易论坛 - 开拓者期货自动交易平台's Archiver

白痴 发表于 2010-5-31 13:27

平仓后反手如何编写

比如:持有多仓当价格下创5日收盘新低平多并开空。
if(  MarketPosition==1 && close<highest(close[1],5))
{
Sell(1,Close);
}
可不可以直接在Sell(1,Close);后面加上sellshort(1,Close);

lh948 发表于 2010-5-31 13:50

if(  MarketPosition==1 && low<highest(close[1],5))
{
       sellshort(1,close);
}
反手,平仓单和开空单会同时发送委托

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.