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


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

   

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


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

主题:老师帮忙看一下

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


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

oo +n 开1手,n是一个变量,是1,3,7,9,;比如oo开盘价是100,则在101成交1手,103成交1手,107成交1手,109成交1手,就这几个点上面成交,,其它价位则不成交,并且在60日 均线上方才成交,如果101在60日均线下方则没有成交,则103在60日均线上方的时候成交第1手仓,或者107在60日均线上方开第一次仓。

variable:n=0,n1=0,n2=0,n3=0,n4=0;
variable:m1=0,m2=0,m3=0;
oo:=VALUEWHEN(todaybar=1,o);
ma60:=ma(c,60);
 
if c>oo+1 and n<2 and c>ma60 then begin
buy(1,1,market);
n:=n+1;
end

if c>oo+3 and 2>n1<4 and c>ma60 then begin
buy(1,1,market);
n1:=n+1;
end

if c>oo+5 and 4>n2<6 and c>ma60 then begin
buy(1,1,market);
n2:=n+1;
end

if c>oo+7 and 6>n3<8 and c>ma60 then begin
buy(1,1,market);
n3:=n+1;
end

if c>oo+9 and 8>n4<10 and c>ma60 then begin
buy(1,1,market);
n4:=n+1;
end



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


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

老师咋是这样呢??

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


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


图片点击可在新窗口打开查看此主题相关图片如下:捕获.png
图片点击可在新窗口打开查看

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


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

老师你觉得还需要修改一下哪??
variable:n=0,n1=0,n2=0,n3=0,n4=0;
variable:m1=0,m2=0,m3=0;
variable:tt=0,tt1=0,tt2=0,tt3=0,tt4=0;
oo:=VALUEWHEN(todaybar=1,o);
ma60:=ma(c,60);
 
if c>oo+1 and n<2 and c>ma60 and n=0 and time<>tt then begin
buy(1,1,market);
n:=n+1;
tt:=time;
end

if c>oo+3 and 2>n1<4 and c>ma60 and n=0 and time<>tt1 then begin
buy(1,1,market);
n1:=n+1;
tt1:=time;
end

if c>oo+5 and 4>n2<6 and c>ma60  and n=0 and time<>tt2 then begin
buy(1,1,market);
n2:=n+1;
tt2:=time;
end

if c>oo+7 and 6>n3<8 and c>ma60 and  n=0 and time<>tt3 then begin
buy(1,1,market);
n3:=n+1;
tt3:=time;
end

if c>oo+9 and 8>n4<10 and c>ma60 and n=0 and time<>tt4 then begin
buy(1,1,market);
n4:=n+1;
tt4:=time;
end
if time=closetime(0) then n:=0;
if time=closetime(0) then n1:=0;
if time=closetime(0) then n2:=0;
if time=closetime(0) then n3:=0;
if time=closetime(0) then n4:=0;

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


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

抱歉,你的需求无法实现


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

客户服务部

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

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

 回到顶部