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


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

   

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


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

主题:开仓信号

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


加好友 发短信
等级:论坛游民 帖子:270 积分:0 威望:0 精华:0 注册:2015/10/11 9:07:21
开仓信号  发帖心情 Post By:2015/12/18 8:41:01    Post IP:124.152.32.98[只看该作者]


图片点击可在新窗口打开查看此主题相关图片如下:捕获.png
图片点击可在新窗口打开查看
老师,怎么限定1根K只开1次

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

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

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


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

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


加好友 发短信
等级:论坛游民 帖子:270 积分:0 威望:0 精华:0 注册:2015/10/11 9:07:21
  发帖心情 Post By:2015/12/18 9:14:21    Post IP:124.152.32.98[只看该作者]

我放到后台, TTYPE(1,3 ),是开空信号,出现与预定参数不符

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


加好友 发短信
等级:论坛游民 帖子:270 积分:0 威望:0 精华:0 注册:2015/10/11 9:07:21
  发帖心情 Post By:2015/12/18 9:23:29    Post IP:124.152.32.98[只看该作者]

老师,我只限定一下1根k成交1次,但是放到图表上也没有信号啊

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

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


加好友 发短信
等级:论坛游民 帖子:270 积分:0 威望:0 精华:0 注册:2015/10/11 9:07:21
  发帖心情 Post By:2015/12/18 9:39:58    Post IP:124.152.32.98[只看该作者]

if upper-MID>100*mindiff and upper-MID>80*mindiff and c>ma30 and tholding2=ref(tholding2,1) then begin
tbuyshort(1,1,mkt);
end

if upper-MID>120*mindiff and  upper-MID>100*mindiff and c>ma30 and tholding2=ref(tholding2,1) then begin
tbuyshort(1,2,mkt);
end 

if   upper-MID>120*mindiff and c>ma30 and tholding2=ref(tholding2,1) then begin
tbuyshort(1,3,mkt);
end

if upper-MID<100*mindiff and  upper-MID<80*mindiff and c<ma30 and tholding2=ref(tholding2,1) then begin
tbuy(1,1,mkt);
end

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

if   MID-LOWER<120*mindiff and c<ma30 and tholding2=ref(tholding2,1) then begin
tbuy(1,3,mkt);
end

老师,改成后台这样对吗??

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

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


加好友 发短信
等级:论坛游民 帖子:270 积分:0 威望:0 精华:0 注册:2015/10/11 9:07:21
  发帖心情 Post By:2015/12/18 10:35:57    Post IP:124.152.32.98[只看该作者]

老师,后台还是没有限制住1根K成交1次的问题


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

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