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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → [求助]移动止盈问题

   

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


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

主题:[求助]移动止盈问题

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


加好友 发短信
等级:论坛游侠 帖子:227 积分:614 威望:0 精华:0 注册:2013/2/5 16:21:44
[求助]移动止盈问题  发帖心情 Post By:2013/5/13 14:01:41    Post IP:220.161.150.162[显示全部帖子]

//移动止盈
//多单
variable:win=0;
if 开多条件 and holding=0 then begin
BUY(1,手数,THISCLOSE);;
win:=c-enterprice;
end
 
if c-enterprice>win then win:=c-enterprice;
if win>=10 and c-enterprice<=3 then sell(1,0,THISCLOSE);
if win>=15 and c-enterprice<=6 then sell(1,0,THISCLOSE);
if win>=20 and c-enterprice<=12 then sell(1,0,THISCLOSE);
if win>=25 and c-enterprice<=20 then sell(1,0,THISCLOSE);

//空单
variable:win1=0;
if 开空条件 and holding=0 then begin
BUYSHORT(1,手数,THISCLOSE);
win1:=enterprice-c;
end
 
if enterprice-c>win1 then win1:=enterprice-c;
if win1>=10 and enterprice-c<=5 then sellshort(1,0,THISCLOSE);
if win1>=15 and enterprice-c<=6 then sellshort(1,0,THISCLOSE);
if win1>=20 and enterprice-c<=12 then sellshort(1,0,THISCLOSE);
if win1>=25 and enterprice-c<=20 then sellshort(1,0,THISCLOSE);



为什么没有起作用   怎么修改

 回到顶部
帅哥哟,离线,有人找我吗?
rfgvb
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游侠 帖子:227 积分:614 威望:0 精华:0 注册:2013/2/5 16:21:44
  发帖心情 Post By:2013/5/13 14:09:52    Post IP:220.161.150.162[显示全部帖子]

股指   10点是点位 

 回到顶部
帅哥哟,离线,有人找我吗?
rfgvb
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游侠 帖子:227 积分:614 威望:0 精华:0 注册:2013/2/5 16:21:44
  发帖心情 Post By:2013/5/13 16:31:15    Post IP:220.161.150.162[显示全部帖子]

好的  谢谢  我再试试

 回到顶部