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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件策略编写求助区 → 请编写模型高手帮忙!循环的问题

   

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


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

主题:请编写模型高手帮忙!循环的问题

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


加好友 发短信 czt
等级:蜘蛛侠 帖子:1445 积分:6114 威望:0 精华:3 注册:2012/1/16 10:31:19
  发帖心情 Post By:2012/6/14 11:55:56 [只看该作者]

cond1:c>=llv(l,enterprice)+100;
cond2:hhv(h,enterprice)>=c+100;
cond3:holding=0 and c>=llv(l,0)+100;
variable:a:=0;
if holding=0 and c>=llv(l,0)+100 and a=0 then
begin
buy(cond3,1,market);
a:=1;
end

if cond1   then
begin
   sellshort(1,0,market);
   buy(holding=0,1,market);
end
if cond2  then
begin
    sell(1,0,market);
    buyshort(holding=0,1,market);
   
end


 回到顶部
总数 21 1 2 3 下一页