Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:求助:开盘价买入,收盘价卖出

1楼
phui999 发表于:2012/8/5 10:43:18

开多条件,如果昨天是阴线(C<O),就以开盘价买入,收盘价平仓;

开空条件,如果昨天是阳线(C>O),就以开盘价卖出,收盘价平仓;

 

 

2楼
RogarZ 发表于:2012/8/6 9:08:27
if ref(c<o,1) then buy(1,1,o);
if ref(c>o,1) then buyshort(1,1,o);
if time>145500 then
begin
sell(1,1,mkt);
sellshort(1,1,mkt);
end
3楼
phui999 发表于:2012/8/6 10:17:09

不行啊,测试通过,但是没有成交。

4楼
jinzhe 发表于:2012/8/6 10:35:30
if ref(c<o,1) then buy(1,1,o);
if ref(c>o,1) then buyshort(1,1,o);
 
改成
 
if ref(c<o,1) then buy(1,1,limitr,o);
if ref(c>o,1) then buyshort(1,1,limitr,o);
5楼
董小球 发表于:2012/8/6 10:36:45

if ref(c<o,1) then begin
buy(1,1,limit,o);
sell(1,1,limit,close);
end
if ref(c>o,1) then begin
 buyshort(1,1,limit,o);
 sellshort(1,1,limit,close);
 end
共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.