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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 老师 请问盈利10个点平仓

   

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


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

主题:老师 请问盈利10个点平仓

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


加好友 发短信
等级:论坛游侠 帖子:509 积分:0 威望:0 精华:0 注册:2017/1/16 8:48:14
  发帖心情 Post By:2017/3/28 14:37:09    Post IP:221.0.140.101[显示全部帖子]

老师 这个能编译cond:=c<=ref(CLOSE,5);
ma5:=ma(c,5),
if cond then aa:ma5;
else bb:ma5;
partline(c<=ref(CLOSE,5),ma5, COLORGREEN),linethick1;
partline(c>ref(CLOSE,5),ma5,COLORred),linethick1;
cond1:=c<=ref(CLOSE,5);
ma10:=ma(c,10);
if cond1 then aa1:ma10;
else bb1:ma10;
partline(c<=ref(CLOSE,10),ma10, COLORGREEN),linethick1;
partline(c>ref(CLOSE,10),ma10,COLORred),linethick1;
cond2:=c<=ref(CLOSE,15);
ma15:=(ma(c,30)+ma(c,72))/2;
if cond2 then aa2:ma15;
else bb2:ma15;
partline(c<=ref(CLOSE,15),ma15, COLORGREEN),linethick1;
partline(c>ref(CLOSE,15),ma15,COLORred),linethick1;
variable:i=0,w=0;
kong:=c<ref(CLOSE,5)and c<ref(CLOSE,10)and c<ref(CLOSE,15);
duo:=c>ref(CLOSE,5and c>ref(CLOSE,10)and c>ref(CLOSE,15);
if kong then begin
i:=i+1;
w:=0;
end
if duo then begin
w:=w+1;
i:=0;
end
SS:=1;
 
if cross(w=1,0), then begin
sellshort(1,holding,thisclose),orderqueue;
buy(holding=0,ss,thisclose),orderqueue;
end
if cross(i=1,0) then begin
sell(1,holding,thisclose),orderqueue;
buyshort(holding=0,ss,thisclose),orderqueue;
end
if c-enterprice>=5 and holding>0 then begin ,
sell(1,0,limitr,enterprice+5);
end
if enterprice-c>=5 and holding<0 then begin
sellshort(1,0,limitr,enterprice-5);
end

if c-enterprice>=10 and holding<0 then begin /
sellshort(1,0,limitr,enterprice+10);
end
if enterprice-c>=10 and holding>0 then begin
sell(1,0,limitr,enterprice-10);
end

 回到顶部
总数 12 上一页 1 2