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


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

   

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


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

主题:请老师帮忙。。。谢谢!

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


加好友 发短信
等级:论坛游民 帖子:172 积分:0 威望:0 精华:0 注册:2014/1/3 14:22:36
请老师帮忙。。。谢谢!  发帖心情 Post By:2015/1/12 14:02:10 [只看该作者]

用户已被锁定

 回到顶部
美女呀,离线,留言给我吧!
pyd
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:8439 积分:0 威望:0 精华:0 注册:2014/7/14 13:43:36
  发帖心情 Post By:2015/1/13 16:53:51 [只看该作者]

VARIABLE:n1=0,n2=0,n3=0,n4=0;
if d2 then n:=1;
if n=1 and d1 then begin
buy(holding=0,1,market);
n:=0;
end
if d3 then n2:=1;
if n2=1 and d4 then begin
buy(holding=0,1,market);
n2:=0;
end
if pd1 then sell(holding>0,0.5*holding,market);
if pd2 then sell(holding>0,0.5*holding,market);
if pd3 then sell(holding>0,holding,market);
if pd4 then sell(holding>0,holding,market);
if pd5 then sell(holding>0,holding,market);
if pd6 then sell(holding>0,holding,market);

if k2 then n3:=1;
if n3=1 and k1 then begin
buyshort(holding=0,1,market);
n3:=0;
end
if k3 then n4:=1;
if n4=1 and k4 then begin
buyshort(holding=0,1,market);
n4:=0;
end
if pk1 then sellshort(holding<0,0.5*holding,market);
if pk2 then sellshort(holding<0,0.5*holding,market);
if pk3 then sellshort(holding<0,holding,market);
if pk4 then sellshort(holding<0,holding,market);
if pk5 then sellshort(holding<0,holding,market);
if pk6 then sellshort(holding<0,holding,market);


 回到顶部