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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 帮忙编写下 谢谢

   

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


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

主题:帮忙编写下 谢谢

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


加好友 发短信
等级:新手上路 帖子:22 积分:93 威望:0 精华:0 注册:2013/3/14 18:23:59
帮忙编写下 谢谢  发帖心情 Post By:2013/9/28 17:37:39    Post IP:122.240.114.92[只看该作者]

固定止损:7个跳动点,
移动止盈:盈利20个跳动点后,如果盈利回撤20%就执行止盈,     

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


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

写了一个大概的框架,需要把对应的下单条件,下单平仓语句填写进去就行

 

下单条件:=;

variable:n=0;

 

if 下单条件  and holding=0 then begin

   下单语句;

   n:=h;

end

 

if h>n then n:=h;

 

if holding>0 and enterprice-c>7*mindiff then 平仓语句;

 

if n-enterprice>20*mindiff and (n-h)/n<=0.2 then 平仓语句;

[此贴子已经被作者于2013/9/29 10:10:50编辑过]


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

客户服务部

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

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

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


加好友 发短信
等级:新手上路 帖子:22 积分:93 威望:0 精华:0 注册:2013/3/14 18:23:59
  发帖心情 Post By:2013/10/1 10:55:23    Post IP:122.240.119.107[只看该作者]

弄不懂。。
开多条件:A1 and holding=0 and time<144500 and time>91800;//开多条件
平空条件:A1 and holding<0 ;//平空条件
开空条件:=A2  and holding=0 and time<144500 and time>91800;//开空条件
平多条件:=A2 and holding>0 ;//平多条件


帮忙完整编下 谢谢


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


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

开多条件:A1 and holding=0 and time<144500 and time>91800;//开多条件
平空条件:A1 and holding<0 ;//平空条件
开空条件:=A2  and holding=0 and time<144500 and time>91800;//开空条件
平多条件:=A2 and holding>0 ;//平多条件

variable:n=0;

 

if 开多条件  and holding=0 then begin

   buy(1,1,market);

   n:=h;

end

 

if h>n then n:=h;

 

if holding>0 and enterprice-c>7*mindiff then sell(1,0,market);//固定止损多

 

if n-enterprice>20*mindiff and (n-enterprice)/enterprice<=0.2 then sell(1,0,market);//移动止盈多

 

if 平多条件 then sell(holding>0,0,market);

 

 

if 开空条件 and holding=0 then begin

   buyshort(1,1,market);

   n:=l;

end

 

if l<n then n:=l; 

 

if holding<0 and enterprice-c>7*mindiff then sell(1,0,market);//固定止损空

 

if enterprice-n>20*mindiff and (enterprice-n)/n<=0.2 then sell(1,0,market);//移动止盈空

 

if 平空条件 and holding<0 then sellshort(1,0,market);



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

客户服务部

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

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

 回到顶部