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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件金字塔软件问题提交 → 请教

   

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


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

主题:请教

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


加好友 发短信
等级:金字塔养老院 帖子:1323 积分:6764 威望:0 精华:0 注册:2011/6/14 17:27:11
  发帖心情 Post By:2011/10/11 11:03:10 [只看该作者]

long1:=tsellholdingex('12202822',' ',1)>0 and c>ma4+5*mindiff ;
long2:=tsellholdingex('12202822',' ',1)=0 and c>ma4+5*mindiff and ma42>ref(ma4,1) ;
if long1 then

begin

tsellshort(1,0,mkt,0,0,'12202822');

end

if long2 then

begin
tbuy(1,1,mkt,0,0,'12202822');

end

 

short1:=tbuyholdingex('12202822',' ',1)>0 and c<ma42-5*mindiff ;
short2:=tbuyholdingex('12202822',' ',1)=0 and c<ma42-5*mindiff and ma4<ref(ma4,1) ;
if short1 then

begin

tsell(1,0,mkt,0,0,'12202822');

end

if short2 then

begin
tbuyshort(1,1,mkt,0,0,'12202822');

end
改成这样试试



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

客户服务部

-----------------------------------------------------------

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

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