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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 为什么显示的不完全

   

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


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

主题:为什么显示的不完全

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


加好友 发短信
等级:论坛游民 帖子:115 积分:20 威望:0 精华:0 注册:2013/5/20 17:19:38
为什么显示的不完全  发帖心情 Post By:2014/4/23 17:07:32    Post IP:218.26.159.82[只看该作者]

runmode:0;
input:V1(1,1,100,1);
input:f1(0.4);
input:f2(0.07);
input:f3(0.18);
input:m(0.9); 
input:x(3,1,10,1);

variable:up=0;
variable:bsetup=0;
variable:senter=0;
variable:benter=0;
variable:bbreak=0;
variable:sbreak=0;
variable:ltoday=0;
variable:h0=999999;
variable:sn=0;
variable:div=0;
variable:rf=false;

i:=m*(callstock(stklabel,vtopen,6,0)/100);

if barpos=1 then begin
sn:=0;
div:=max(x,1);//xdiv
end

hh:ref(h0,1),noaxis;
cc:=ref(close,1);
ll:=ref(ltoday,1);

if date>ref(date,1) then begin
sn:=sn+1;

up:=hh+f1*(cc-ll);
senter:=((1+f2)/2)*(hh+cc)-f2*ll;
benter:=((1+f2)/2)*(ll+cc)-f2*hh;
bsetup:=ll-f1*(hh-cc);
bbreak:=up+f3*(up-bsetup);
sbreak:=bsetup-f3*(up-bsetup);

h0:=high;
ltoday:=low;

rf:=hh-cc>=0.2{rangemin};
end

if high>h0 then h0:=high;
if low<ltoday then ltoday:=low;

if time>=opentime(1) and time<closetime(0)-500 and sn>=2 and rf thenbegin
if h0>=up and holding>=0 then begin
if low<=senter+(h0-up)/div then begin
sell(1,v1,thisclose);
buyshort(1,v1,thisclose);
end 
end

if ltoday<=bsetup and holding<=0 then begin
if high>=benter-(bsetup-ltoday)/div then begin
if high>=benter-(bsetup-ltoday)/div then begin
sellshort(1,v1,thisclose);
buy(1,v1,thisclose);
end
end
end

if holding<0 then begin
if high-enterprice>=i then
sellshort(1,v1,thisclose);
end

if holding>0 then begin
if enterprice-low>=i then
sell(1,v1,thisclose);
end

if holding=0 then begin
if high>=bbreak then
buy(1,v1);
end

if holding=0 then begin
if low<=sbreak then
buyshort(1,v1);
end
end

if time>=closetime(0)-500 then begin
if holding<0 then
sellshort(1,v1);

if holding>0 then
sell(1,v1); 
end
资产:asset,noaxis,coloryellow,linethick2;

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


加好友 发短信
等级:论坛游民 帖子:115 积分:20 威望:0 精华:0 注册:2013/5/20 17:19:38
  发帖心情 Post By:2014/4/23 17:08:07    Post IP:218.26.159.82[只看该作者]

为个模型显示不全,原因在哪里

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


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

要显示什么?不全在哪些方面?哪些没有显示出来?


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

客户服务部

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

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

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


加好友 发短信
等级:论坛游民 帖子:115 积分:20 威望:0 精华:0 注册:2013/5/20 17:19:38
  发帖心情 Post By:2014/4/23 17:15:55    Post IP:218.26.159.82[只看该作者]

就是不显示信号


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


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

有信号,但是少,你多弄点k线出来就行
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看


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

客户服务部

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

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

 回到顶部