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


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

   

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


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

主题:请帮忙编写下

帅哥哟,离线,有人找我吗?
一叶知秋
  11楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:87 积分:0 威望:0 精华:0 注册:2014/4/1 8:54:25
  发帖心情 Post By:2014/12/4 16:10:02    Post IP:60.181.11.229[只看该作者]

 


if holding>0 and c<=enterprice-w*mindiff then sell(1,0,market);

if holding<0 and c>=enterprice+w*mindiff then sellshort(1,0,market);

 

 

if holding>0 and n=0 and  h>=enterprice+w*mindiff  then begin
 sell(1,50%,market);
 n:=1;
end

if holding=x/2 and n=1 and c<=enterprice-w*mindiff then begin
 sell(1,0,market);
 n:=0;
end

if holding<0 and m=0 and l<=enterprice-w*mindiff then begin
 sellshort(1,50%,market);
 m:=1;
end

if abs(holding)=x/2 and m=1 and c>=enterprice+w*mindiff then begin
 sellshort(1,0,market);
 m:=0;
end
 我是这样写的


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


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

怎么写的没关系,你好好的参考下上面的说明,而不是一味的找代码的原因


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

客户服务部

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

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

 回到顶部
总数 12 上一页 1 2