Rss & SiteMap

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

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

标题:测试说无法成交

1楼
jjjfk 发表于:2016/6/13 15:54:33
编写的一套系统,想要测试,可弹出对话框说信号是有的,但是都无法成交,请问会是什么原因呢?谢谢!
代码如下:

a1:=ref(high,1);
a2:=ref(low,1);
a3:high>a1 and low<a2 and close>a1;
a4:high>a1 and low<a2 and close<a2;
a5:time>010500 and time<185000;

if a5 and holding<=0 and a3 then begin
buy(1,1,close);
end

if a5 and holding>=0 and a4 then begin
buyshort(1,1,close);
end

if time>=185500 and holding<>0 then begin
sell(holding>0,0,close);
sellshort(holding<0,0,close);
end
2楼
yukizzc 发表于:2016/6/13 16:00:41

buy(1,1,limiter,close);

限价写法

3楼
jjjfk 发表于:2016/6/13 16:36:05
谢谢!
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01172 s, 2 queries.