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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 语句未尾缺少分号

   

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


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

主题:语句未尾缺少分号

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


加好友 发短信
等级:新手上路 帖子:71 积分:360 威望:0 精华:0 注册:2012/3/19 7:50:43
语句未尾缺少分号  发帖心情 Post By:2012/5/10 17:01:43    Post IP:119.139.27.37[只看该作者]

 

加入到教程提示  

 

“语句未尾缺少分号”

       

variable:a=0;

 

if con1 and holding=0 then beign

buy(1,1,market);

a:=h;

end

if h>a then sell(holding>0,0,market);


 

例三:30分钟翻转系统

//《日内30分钟翻转系统》

//适用于1分钟周期

//编写日期:20100812-JYL


 

//准备需要的中间变量

h30 := ref(hhv(h,30),1);

l30 := ref(llv(l,30),1);


 

//建立多头的进场条件

long := h>h30 and time>093000 and time<145000;


 

if long then

begin

sellshort(holding < 0, 0, limitr, h30);

buy(holding = 0, 1, limitr, h30);

end


 

//画出多头的止损线

partline(holding>0, l30,colorred);


 

//开空条件

short := l < l30 and time > 093000 and time < 145000;


 

if short then

begin

sell(holding > 0, 0, limitr, l30);

buyshort(holding = 0, 1, limitr, l30);

end


 

//画出空头的止损线

partline(holding<0, h30, colorgreen);


 

//收盘前5分钟平仓

if time > 145500 then

begin

sell(holding > 0, 0, thisclose);

sellshort(holding < 0, 0, thisclose);

end

 


 回到顶部