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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请问版主一个问题

   

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


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

主题:请问版主一个问题

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


加好友 发短信
等级:新手上路 帖子:30 积分:0 威望:0 精华:0 注册:2011/7/26 1:54:53
请问版主一个问题  发帖心情 Post By:2015/4/3 14:38:02    Post IP:220.160.235.169[只看该作者]

一个图表策略,跟信号用手动操作。能否在信号处添加提示音?


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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/4/3 14:43:36    Post IP:58.246.57.26[只看该作者]

使用playsound函数,playsound的条件写开仓条件


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

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


加好友 发短信
等级:新手上路 帖子:30 积分:0 威望:0 精华:0 注册:2011/7/26 1:54:53
  发帖心情 Post By:2015/4/3 15:02:05    Post IP:220.160.235.169[只看该作者]

请版主帮忙改一下。

 

if holding=0 and myfailtrade=1 and time<151500 then begin
 if entrylongcond then
  buy(1,1,limitr,max(open,entryupperband));
end

if holding=0 and myfailtrade=1 and time<151500 then begin
 if entryshortcond then
  buyshort(1,1,limitr,min(open,entrylowerband));
end

if holding>0 then begin
 if exitlongcond then
  sell(1,holding,limitr,min(open,exitlowerband));
end

if holding<0 then begin
 if exitshortcond then
  sellshort(1,holding,limitr,max(open,exitupperband));
end


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


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2015/4/3 15:09:22    Post IP:58.246.57.26[只看该作者]

if holding=0 and myfailtrade=1 and time<151500 then begin
 if entrylongcond then
  buy(1,1,limitr,max(open,entryupperband));

  playsound(1,'所需要播放声音的路径名');
end

if holding=0 and myfailtrade=1 and time<151500 then begin
 if entryshortcond then
  buyshort(1,1,limitr,min(open,entrylowerband));

  playsound(1,'所需要播放声音的路径名');

end

if holding>0 then begin
 if exitlongcond then
  sell(1,holding,limitr,min(open,exitlowerband));

  playsound(1,'所需要播放声音的路径名');

end

if holding<0 then begin
 if exitshortcond then
  sellshort(1,holding,limitr,max(open,exitupperband));

  playsound(1,'所需要播放声音的路径名');

end



金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

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


加好友 发短信
等级:新手上路 帖子:30 积分:0 威望:0 精华:0 注册:2011/7/26 1:54:53
  发帖心情 Post By:2015/4/3 15:15:19    Post IP:220.160.235.169[只看该作者]

O,谢谢版主!!

 回到顶部