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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请问如何将逐K线模式改写定成固定轮模式

   

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


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

主题:请问如何将逐K线模式改写定成固定轮模式

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


加好友 发短信
等级:论坛游侠 帖子:334 积分:0 威望:0 精华:0 注册:2013/8/29 9:26:12
请问如何将逐K线模式改写定成固定轮模式  发帖心情 Post By:2014/4/10 16:05:57    Post IP:182.148.40.228[只看该作者]

 老师你好,麻烦把下面的逐K线模式改写固定轮询模式,谢谢:

entertime:=time<=151000 and time>=091500;
exittime:=time>=151400;
smx:=ma(c,20);
long:=smx>ref(smx,1);      //开多平空条件
short:=smx<ref(smx,1);     //开空平多条件

if long then begin
   sellshort(1,0,marketr),orderqueue;
   buy(holding=0 and entertime,1,marketr),orderqueue;
end

if short then begin
   sell(1,0,marketr),orderqueue;
   buyshort(holding=0 and entertime,1,marketr),orderqueue;
end

if enterprice-c>=zs or exittime then sell(1,0,marketr),orderqueue;
if c-enterprice>=zs or exittime then sellshort(1,0,marketr),orderqueue;

 回到顶部