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


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

   

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


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

主题:编程求助!

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


加好友 发短信
等级:新手上路 帖子:35 积分:210 威望:0 精华:0 注册:2012/9/7 14:11:07
编程求助!  发帖心情 Post By:2012/10/22 13:59:56    Post IP:183.66.51.207[只看该作者]

 价在60线上平空开多价在60线下平多开空损20%


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


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

ma60:=ma(c,60);

if c>ma60 then begin

sellshort(holding<0,0,market);

buy(holding=0,1,market);

end

 

if c<ma60 then begin

sell(holding>0,0,market);

buyshort(holding=0,1,market);

end

 

if (c-enterprice)/enterprice>=20% and holding<0 then sellshort(holding<0,0,market);

 

if (enterprice-c)/c>=20% and holding>0 then sell(holding>0,0,market);

 

仅供参考,不负责盈亏

请您根据自己交易经验,进行修改后再实际应用



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

客户服务部

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

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

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


加好友 发短信
等级:新手上路 帖子:35 积分:210 威望:0 精华:0 注册:2012/9/7 14:11:07
求助  发帖心情 Post By:2012/10/26 3:26:27    Post IP:183.66.30.219[只看该作者]

:

 

60线

 

 

 

:

ma60:=ma(c,60);

if c>ma60 then begin

sellshort(holding<0,0,market);

buy(holding=0,1,market);

end

 

if c<ma60 then begin

sell(holding>0,0,market);

buyshort(holding=0,1,market);

end

 

if (c-enterprice)/enterprice>=20% and holding<0 then sellshort(holding<0,0,market);

 

if (enterprice-c)/c>=20% and holding>0 then sell(holding>0,0,market);

 


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


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

input:n(60,1,300,10);

 

ma60:=ma(c,N);

if c>ma60 then begin

sellshort(holding<0,0,market);

buy(holding=0,1,market);

end

 

if c<ma60 then begin

sell(holding>0,0,market);

buyshort(holding=0,1,market);

end

 

if (c-enterprice)/enterprice>=0.2 and holding<0 then sellshort(holding<0,0,market);

 

if (enterprice-c)/c>=0.2 and holding>0 then sell(holding>0,0,market);



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

产品部

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

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

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