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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 高手帮忙,谢谢了

   

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


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

主题:高手帮忙,谢谢了

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


加好友 发短信
等级:新手上路 帖子:14 积分:91 威望:0 精华:0 注册:2012/5/31 16:51:16
高手帮忙,谢谢了  发帖心情 Post By:2012/6/1 10:53:22    Post IP:222.216.160.120[只看该作者]

cc:=CALLSTOCK(STKLABEL,VTCLOSE,6);
c5:=CALLSTOCK(STKLABEL,VTCLOSE,2);
jx5:=ma(cc,5);
jx20:=ma(cc,20);
jx5f5:=ma(c5,5);
jx5f20:=ma(c5,20);
sc:=cross(jx5f5,jx5f20);
xc:=cross(jx5f20,jx5f5);
money:=holding*c;                    
total0:=money+cash(0);
total1:=money+cash(1);

if jx5>jx20 then
begin
sellshort(holding<0,0,thisclose);
buy(sc and  holding=0,40%,thisclose);
end

if jx20>jx5 then
begin
sell(holding>0,0,thisclose);
buyshort(xc and holding=0,40%,thisclose);
end


 

if ENTERPRICE*1.3>=h and holding>0 then;
begin
sell(holding>entervol/2,entervol/2,thisclose);
end

if ENTERPRICE*0.7<=l and holding<0 then;
begin
sellshort(holding<entervol/2,entervol/2,thisclose);
end


 谁能帮看下,获利30%平仓一半语句有何问题,程序在检测时无法按照此意愿平仓

[此贴子已经被作者于2012-6-1 11:05:15编辑过]

 回到顶部