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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 老师,看一下我这套策略写的对不对

   

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


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

主题:老师,看一下我这套策略写的对不对

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


加好友 发短信
等级:新手上路 帖子:59 积分:0 威望:0 精华:0 注册:2015/9/30 10:02:52
老师,看一下我这套策略写的对不对  发帖心情 Post By:2015/10/12 9:28:38    Post IP:27.225.195.31[显示全部帖子]

variable:bj=0,n=1,m=2;
variable:t=1,s=2;
Valuewhen(date<>ref(date,1),open);
if open>1*n  and bj=0 and m=n+1 then begin
 buy(1,1,market);
 n:=n+1;
 m:=m+1;
end


if holding>0 and bj=0 and openprofit>=1000 then BEGIN
 sell(1,0,market);
 bj:=1;
end

if open>valuewhen(t=1,close)+1*t and bj=1 and s=t+1 then begin
 buy(1,1,market);
 t:=t+1;
 s:=s+1;
end

if bj=1 and holding>0 and openprofit>=1000 then begin
 sell(1,0,market);
 t:=1;
 s:=2;
end

variable:n=1,m=2;
variable:t=1,s=2;
Valuewhen(date<>ref(date,1),open);;

 

if open<valuewhen(t=1,close)-1*t  and s=t+1 then begin
 buyshort(1,1,market);
 t:=t+1;
 s:=s+1;
end

if holding<0 and openprofit>=1000 then begin
 sellshort(1,0,market);
 t:=1;
 s:=2;
end

variable:bj=0,n=1,m=2;
variable:t=1,s=2;
Valuewhen(date<>ref(date,1),open);
if open>30*n  and bj=0 and m=n+1 then begin
  buyshort(1,1,market);
 n:=n+1;
 m:=m+1;
end

variable:n=1,m=2;
variable:t=1,s=2;
Valuewhen(date<>ref(date,1),open);;

 

if open<valuewhen(t=1,close)-30*t  and s=t+1 then begin
 buy(1,1,market);
 t:=t+1;
 s:=s+1;
end


 回到顶部