欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请版主等高手修改一下模型

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有3795人关注过本帖树形打印复制链接

主题:请版主等高手修改一下模型

帅哥哟,离线,有人找我吗?
kiiik
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:21 积分:128 威望:0 精华:0 注册:2012/9/24 22:45:36
请版主等高手修改一下模型  发帖心情 Post By:2012/11/2 20:02:41    Post IP:124.226.23.157[只看该作者]

初始200万资金 满仓交易 每次开仓自动检索可用开仓的资金,进行满仓交易。平仓自动满仓反手,加载在个个周期都是一样的。都要满仓交易。

hi:=ref(hhv(h,20),1);
lo:=ref(llv(l,20),1);
entertime:=time<=144500;
exittime:=time>=145700;
buycond:=c>hi;
sellcond:=c<lo;
if holding>0 and (sellcond or exittime) then sell(1,1,market),orderqueue;
if holding<0 and (buycond or exittime) then sellshort(1,1,market),orderqueue;
if holding=0 and entertime and buycond then buy(1,1,market),orderqueue;
if holding=0 and entertime and sellcond then buyshort(1,1,market),orderqueue;

 


 回到顶部
帅哥哟,离线,有人找我吗?
RogarZ
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:3534 积分:10003 威望:0 精华:5 注册:2012/5/25 0:00:01
  发帖心情 Post By:2012/11/4 12:25:01    Post IP:101.224.52.66[只看该作者]

hi:=ref(hhv(h,20),1);
lo:=ref(llv(l,20),1);
entertime:=time<=144500;
exittime:=time>=145700;
buycond:=c>hi;
sellcond:=c<lo;
if holding>0 and (sellcond or exittime) then sell(1,0,market),orderqueue;
if holding<0 and (buycond or exittime) then sellshort(1,0,market),orderqueue;
if holding=0 and entertime and buycond then buy(1,0,market),orderqueue;
if holding=0 and entertime and sellcond then buyshort(1,0,market),orderqueue;

 



金字塔—专业程序化交易量化投资平台

产品部

-----------------------------------------------------------

欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com
 回到顶部
帅哥哟,离线,有人找我吗?
kiiik
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:21 积分:128 威望:0 精华:0 注册:2012/9/24 22:45:36
  发帖心情 Post By:2012/11/4 20:12:49    Post IP:124.226.19.197[只看该作者]

以下是引用RogarZ在2012-11-4 12:25:01的发言:

hi:=ref(hhv(h,20),1);
lo:=ref(llv(l,20),1);
entertime:=time<=144500;
exittime:=time>=145700;
buycond:=c>hi;
sellcond:=c<lo;
if holding>0 and (sellcond or exittime) then sell(1,0,market),orderqueue;
if holding<0 and (buycond or exittime) then sellshort(1,0,market),orderqueue;
if holding=0 and entertime and buycond then buy(1,0,market),orderqueue;
if holding=0 and entertime and sellcond then buyshort(1,0,market),orderqueue;

这个不对的。

我就是这样做的。在个个周期的仓位都不同 如在1分钟能开18 手。10分钟只能开13手。

 


 回到顶部
帅哥哟,离线,有人找我吗?
kiiik
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:21 积分:128 威望:0 精华:0 注册:2012/9/24 22:45:36
  发帖心情 Post By:2012/11/4 20:14:12    Post IP:124.226.19.197[只看该作者]

如果全自动 你全仓 系统会给你减仓。

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2012/11/5 9:22:48    Post IP:58.246.57.26[只看该作者]

请往前查看k线图上的信号,估计是有所亏损所以导致仓位的减少


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
kiiik
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:21 积分:128 威望:0 精华:0 注册:2012/9/24 22:45:36
  发帖心情 Post By:2012/11/5 11:41:49    Post IP:116.8.235.160[只看该作者]

以下是引用jinzhe在2012-11-5 9:22:48的发言:
请往前查看k线图上的信号,估计是有所亏损所以导致仓位的减少




这样搞怎么行啊。没交易怎么会亏损呢。你们什么价算的啊。收盘价?有些隔个合约跳空就大亏了。还怎么开仓。能不能只算当天的K线?

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  7楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2012/11/5 13:24:28    Post IP:58.246.57.26[只看该作者]

图表是虚拟的,图表上虚拟的算下来亏了,那么就会影响信号, 和实际账户没有关系


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部