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


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

   

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


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

主题:开仓信号

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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/12/18 9:00:39    Post IP:58.246.57.26[显示全部帖子]

if upper-MID<100*mindiff and  upper-MID<80*mindiff and c<ma30 and typebar(1,1)>0 then begin
buy(1,1,MARKETR);
end

if MID-LOWER<120*mindiff and upper-MID<100*mindiff and c<ma30 and typebar(1,1)>0 then begin
buy(1,2,MARKETR);
end

if   MID-LOWER<120*mindiff and c<ma30 and typebar(1,1)>0 then begin
buy(1,3,MARKETR);
end



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

客户服务部

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

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

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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/12/18 9:29:10    Post IP:58.246.57.26[显示全部帖子]

if upper-MID<100*mindiff and  upper-MID<80*mindiff and c<ma30 and holding=ref(holding,1) then begin
buy(1,1,MARKETR);
end

if MID-LOWER<120*mindiff and upper-MID<100*mindiff and c<ma30 and holding=ref(holding,1) then begin
buy(1,2,MARKETR);
end

if   MID-LOWER<120*mindiff and c<ma30 and holding=ref(holding,1) then begin
buy(1,3,MARKETR);
end

 

如果还不对,请将全部代码贴出



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

客户服务部

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

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

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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/12/18 9:29:37    Post IP:58.246.57.26[显示全部帖子]

我用的typebar不是type,type你那样写,自然是参数错误


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

客户服务部

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

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

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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/12/18 10:02:48    Post IP:58.246.57.26[显示全部帖子]

后台不能这样用,要这样改:

GLOBALVARIABLE:tt=0;

if upper-MID>100*mindiff and upper-MID>80*mindiff and c>ma30 and tt<>time then begin
tbuyshort(1,1,mkt);

tt:=time;
end

 

if upper-MID>120*mindiff and  upper-MID>100*mindiff and c>ma30 and tt<>time then begin
tbuyshort(1,2,mkt);
tt:=time;

end 

 

if   upper-MID>120*mindiff and c>ma30 and tt<>time then begin
tbuyshort(1,3,mkt);

tt:=time;
end



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

客户服务部

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

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

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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/12/18 10:45:40    Post IP:58.246.57.26[显示全部帖子]

if upper-MID>100*mindiff and upper-MID>80*mindiff and c>ma30 and extgbdata('tt')<>time  then begin
tbuyshort(1,1,mkt);

extgbdata('tt')<>time;

end

 

if upper-MID>120*mindiff and  upper-MID>100*mindiff and c>ma30 and extgbdata('tt')<>time then begin
tbuyshort(1,2,mkt);
extgbdata('tt')<>time;

end 

 

if   upper-MID>120*mindiff and c>ma30 and extgbdata('tt')<>time  then begin
tbuyshort(1,3,mkt);

extgbdata('tt')<>time;

end

 

请改成这样的格式



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

客户服务部

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

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

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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/12/18 11:06:44    Post IP:58.246.57.26[显示全部帖子]

以下是引用么么在2015/12/18 10:58:46的发言:
extgbdata使用单局变量是不跨品种跨周期都要后面的变量改一下是吧??

请问这句要如何断句?连一起不太明白在说什么



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

客户服务部

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

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

 回到顶部