Rss & SiteMap

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

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

标题:请帮我写个日内交易模型

1楼
a290380438 发表于:2012/9/14 10:40:51

      1,价线单,线单,过1%

早上和下午开盘后3分钟内不进行交易,上午和下午收盘前3分钟全部平仓。
    2,另外,本模型再帮我做一个非日内模型,以便测试历史收益。 

2楼
jinzhe 发表于:2012/9/14 10:50:18

time1:= time>090300 and time<112700 or (time>133300 and time<145700);

time:= time> 112700 and time<113000 or (time>145700 and time<150000);

if c>均线 and time1 then begin

sellshort();

buy();

end//价在均线上平空开多

 

if c<均线 and time1  then begin

sell();

buyshort();

end//价在均线下平多开空

 

if c<0.99*enterprice and holding>0 then sell();//1%多头止损

if c>enterprice*1.01 and holding<0 then sellshort();//1%空头止损

 

if time2 then begin//收盘前平仓

sell();

sellshort();

end

 

 

3楼
a290380438 发表于:2012/9/14 17:40:12
!()线
4楼
a290380438 发表于:2012/9/14 17:41:25
!()线
5楼
王锋 发表于:2012/9/14 17:46:31
客服只是将代码的逻辑给你写出来了,具体的下单细节需要自己学习,并进行改写
6楼
a290380438 发表于:2012/9/14 18:55:07
7楼
王锋 发表于:2012/9/14 18:58:27

http://www.weistock.com/bbs/dispbbs.asp?boardid=9&Id=11048 

新手,请仔细先从基础开始学起

8楼
a290380438 发表于:2012/10/2 11:42:17

把914

 

请问金字塔怎样同时测试多品种

 

9楼
王锋 发表于:2012/10/2 12:00:57
交易菜单->单策略程序化测评->第5步里, 添加你所有要测评的品种
10楼
a290380438 发表于:2012/10/2 18:41:58

这个模型请帮我把日内时间限制和止损帮我去掉,

 

 

time1:= time>090300 and time<112700 or (time>133300 and time<145700);

time:= time> 112700 and time<113000 or (time>145700 and time<150000);

if c>均线 and time1 then begin

sellshort();

buy();

end//价在均线上平空开多

 

if c<均线 and time1  then begin

sell();

buyshort();

end//价在均线下平多开空

 

if c<0.99*enterprice and holding>0 then sell();//1%多头止损

if c>enterprice*1.01 and holding<0 then sellshort();//1%空头止损

 

if time2 then begin//收盘前平仓

sell();

sellshort();

end

 

共14 条记录, 每页显示 10 条, 页签: [1] [2]


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