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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 帮忙把这个改成后台。

   

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


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

主题:帮忙把这个改成后台。

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


加好友 发短信
等级:论坛游民 帖子:182 积分:910 威望:0 精华:0 注册:2011/4/12 15:24:59
帮忙把这个改成后台。  发帖心情 Post By:2011/4/18 16:56:11    Post IP:59.56.204.65[显示全部帖子]



KAIDUO:=longcond and close>ma3;
KAIKONG:=shortcond AND BEIH and close<ma3;
PINGDUO:=shortcond AND BEIH OR close<ma3;
PINGKONG:=longcond AND BEIL OR close>ma3;


if holding>0 then begin //平多
 if PINGDUO then
  sell(1,holding,limitr,open);
 end
 if holding=0 then begin
 if PINGDUO then
 buyshort(1,10,limitr,open);
 end
 
 if time=145700 then
  sell(1,holding,limitr,open);


if holding<0 then begin  //平空
 if PINGKONG then
  sellshort(1,holding,limitr,open);
 end
if holding=0 then begin
  if PINGKONG then
  buy(1,10,limitr,open);
 end
 if time=145700 then
  sellshort(1,holding,limitr,open);

    
收益:asset,noaxis,colorred;
次数:totaltrade,linethick0;
胜率:percentwin,linethick0;
连亏:maxseqloss,linethick0;
连赢:maxseqwin,linethick0;
 俺自己改了,测试都没成交啊,最好改成现价成交!谢谢!
[此贴子已经被作者于2011-4-18 16:57:23编辑过]

 回到顶部