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


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

   

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


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

主题:编程求助!

帅哥哟,离线,有人找我吗?
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%


 回到顶部
帅哥哟,离线,有人找我吗?
a290380438
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | 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);

 


 回到顶部