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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 2.3版画线的疑问

   

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


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

主题:2.3版画线的疑问

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


加好友 发短信 原leevolvo
等级:版主 帖子:2160 积分:10563 威望:0 精华:11 注册:2010/11/3 11:21:19
2.3版画线的疑问  发帖心情 Post By:2011/1/25 14:11:17    Post IP:59.57.143.198[只看该作者]

variable:zs=0,zy=0,flag=0,mmj=0;
ma5:=ma(c,5);
ma18:=ma(c,18);
ma6:=ma(c,6);
ma12:=ma(c,12);
ifkd:=cross(ma5,ma18);
ifpd:=cross(ma12,ma6);
ifkk:=cross(ma18,ma5);
ifpk:=cross(ma6,ma12);
aa:holding,linethick0;

 

if L<zs and holding>0 then sell(1,1,limitr,min(o,zs));
if h>zy and holding>0 then sell(1,1,limitr,max(o,zy));
if ifpd and holding>0 then sell(1,1,thisclose);
if h>zs and holding<0 then sellshort(1,1,limitr,max(o,zs));
if L<zy and holding<0 then sellshort(1,1,limitr,min(o,zy));
if ifpk and holding<0 then sellshort(1,1,thisclose);

 

if ifkd and holding=0 then
begin
  buy(1,1,thisclose);
  zs:=c-30;
  zy:=c+90;
  mmj:=c;
end

 

if ifkk and holding=0 then
begin
  buyshort(1,1,thisclose);
  zs:=c+30;
  zy:=c-90;
  mmj:=c;
end

 

if holding>0 and h>mmj+30 then
begin
  zs:=mmj;
  mmj:=mmj+30;
end

 

if holding<0 and L<mmj-30 then
begin
  zs:=mmj;
  mmj:=mmj-30;
end

 

if holding>0 then zc:zs;
if holding<0 then yl:zs;//记得以前的版本,条件成立的时候才有线条,没成立就没线条。现在却不是,什么问题?

[此贴子已经被作者于2011-1-25 14:12:36编辑过]

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


加好友 发短信
等级:管理员 帖子:5082 积分:17642 威望:0 精华:6 注册:2010/7/15 9:05:58
  发帖心情 Post By:2011/1/25 14:43:32    Post IP:58.246.57.26[只看该作者]

确实显示画线有问题(不影响对ZS的判断和使用),已经在查原因了.

感谢!



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

客户服务部

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

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

service@weistock.com

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

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


加好友 发短信 原leevolvo
等级:版主 帖子:2160 积分:10563 威望:0 精华:11 注册:2010/11/3 11:21:19
  发帖心情 Post By:2011/1/25 14:59:15    Post IP:59.57.143.198[只看该作者]

恩。好的

 回到顶部