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


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

   

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


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

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

帅哥哟,离线,有人找我吗?
FJ6008
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | 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

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


 


 回到顶部