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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请教:引用后。。。。

   

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


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

主题:请教:引用后。。。。

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


加好友 发短信
等级:论坛游民 帖子:209 积分:0 威望:0 精华:0 注册:2014/9/15 21:05:19
请教:引用后。。。。  发帖心情 Post By:2014/12/1 16:58:00    Post IP:113.120.54.136[只看该作者]


图片点击可在新窗口打开查看此主题相关图片如下:未命名.jpg
图片点击可在新窗口打开查看

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


加好友 发短信
等级:论坛游民 帖子:209 积分:0 威望:0 精华:0 注册:2014/9/15 21:05:19
  发帖心情 Post By:2014/12/1 16:58:37    Post IP:113.120.54.136[只看该作者]

buycond:=( stopprice)<做多;
sellcond:=(stopprice)>做空;
//平多
if extgbdata('t1_flag')>0 and sellcond  and barpos>extgbdata('bar')  then  begin
  tsell(1,ss,mkt);
  extgbdataset('t1_flag',0);
  end
//平空
if extgbdata('t1_flag')<0 and buycond and barpos>extgbdata('bar')  then  begin
  tsellshort(1,ss,mkt);
  extgbdataset('t1_flag',0);
  end 
//开多
if extgbdata('t1_flag')=0 and buycond then  begin
  tbuy(1,ss,mkt);
  extgbdataset('t1_flag',1);
  extgbdataset('bar',barpos);
  end
//开空
if extgbdata('t1_flag')=0 and sellcond then
    begin
    tbuyshort(1,ss,mkt);
    extgbdataset('t1_flag',-1);
    extgbdataset('bar',barpos);
    end

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


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

参考最后一条的解决方案
[此贴子已经被作者于2014/12/1 16:59:13编辑过]


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

客户服务部

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

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

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


加好友 发短信
等级:论坛游民 帖子:209 积分:0 威望:0 精华:0 注册:2014/9/15 21:05:19
  发帖心情 Post By:2014/12/1 17:03:29    Post IP:113.120.54.136[只看该作者]

buycond:=( stopprice)<做多;
sellcond:=(stopprice)>做空;
//平多
if extgbdata('t1_flag')>0 and sellcond  and barpos>extgbdata('bar')  then  begin
  tsell(1,ss,mkt);
  extgbdataset('t1_flag',0);
  end
//平空
if extgbdata('t1_flag')<0 and buycond and barpos>extgbdata('bar')  then  begin
  tsellshort(1,ss,mkt);
  extgbdataset('t1_flag',0);
  end 
//开多
if extgbdata('t1_flag')=0 and buycond then  begin
  tbuy(1,ss,mkt);
  extgbdataset('t1_flag',1);
  extgbdataset('bar',barpos);

 

从这里引用的:

http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=53236&skin=0

 不知道如何让处理,请帮忙处理一下吧,


 


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


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

http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=48570

公式编辑器里面的提示链接是这个



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

客户服务部

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

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

 回到顶部