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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件策略编写求助区 → 求帮忙写出

   

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


  共有5383人关注过本帖平板打印复制链接

主题:求帮忙写出

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


加好友 发短信
等级:新手上路 帖子:66 积分:125 威望:0 精华:0 注册:2012/2/7 13:12:58
  发帖心情 Post By:2013/12/9 17:24:49 [只看该作者]

h1:=ref(hhv(h,30),1);
l1:=ref(llv(l,30),1);
h2:=ref(hhv(h,2),1);
l2:=ref(llv(l,2),1);
h3:=ref(hhv(h,3),1);
l3:=ref(llv(l,3),1);
VARIABLE:m1=0,m2=0,m3=0,m4=0;

if c>h1 and m1=0 and m2=0 THEN
begin
buy(1,1,limit,close);
m1:=close;
m2:=open;
end

if c<m1 then
BEGIN 
 sell(1,1,limit,m2);
 sell(1,1,limit,l2);
m1:=0;
m2:=0;
 end

if c>m1 then
BEGIN
sell(1,1,limit,l3);
m1:=0;
m2:=0;
end

if c<l1 and m3=0 and m4=0 then BEGIN
sellshort(1,1,limit,close);
end

if c>m3 then
BEGIN
sellshort(1,1,limit,m4);
sellshort(1,1,limit,h2);
m3:=0;
m4:=0;
end

if c<m3 then 
BEGIN
sellshort(1,1,limit,h3);
m3:=0;
m4:=0;
end

您看我这么写对不对!

 回到顶部