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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 记录初始开仓价位任何写?

   

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


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

主题:记录初始开仓价位任何写?

帅哥哟,离线,有人找我吗?
系统使用者
  11楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/5 16:32:38    Post IP:222.209.117.253[只看该作者]

variable:n=0;

if (TIME>=085600 AND TIME<=90000) then begin
tbuy(1,100,lmt,DYNAINFO(54),0);
tbuyshort(1,100,lmt,DYNAINFO(55),0);
if THOLDING2=0 and (currenttime>=94000 and currenttime>=144000) then begin
tbuy(val2>0,100,lmt,O,0);
tbuyshort(val2>0,100,lmt,O,0);
   N:=n+1;
  End
 End 
 ee:=valuewhen(n=1,enterprice);//这就是所求的第一次开仓价

If h-ENTERPRICE>=2 then begin
  tsellShort(1,10,lmt,ee+2,0);
 End
If h-ENTERPRICE>=4 then begin
  tsell(1,10,lmt,ee+4,0);
 End

后台交易应该如何改?
能具体帮我该来看看吗?谢谢

 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  12楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/5 17:24:36    Post IP:222.209.117.253[只看该作者]

也解决上次开仓价问题。后台交易这样编写对否?

if (TIME>=085600 AND TIME<=90000) then begin
tbuy(1,100,lmt,DYNAINFO(54),0);
tbuyshort(1,100,lmt,DYNAINFO(55),0);
end
if THOLDING2=0 and (currenttime>=93000 and currenttime>=144000) then begin
tbuy(val1>0,100,lmt,O,0);
tbuyshort(val1>0,100,lmt,O,0);
end

ee:=tenterprice;
If h-ee>=1 then begin
  tsellShort(1,10,lmt,ee+1,0);
 End
If h-ee>=2 then begin
  tsell(1,10,lmt,ee+2,0);
 End
If ee-l>=1 then begin
  tsell(1,10,lmt,ee-1,0);
 End
If ee-l>=2 then begin
  tsellshort(1,10,lmt,ee-2,0);
 End



 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  13楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/5 17:25:43    Post IP:222.209.117.253[只看该作者]

有没有语句问题,还有循环BUG

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


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

那么我写的东西体现在哪里?没贴出来吗?


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

客户服务部

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

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

 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  15楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/5 18:20:48    Post IP:182.149.129.232[只看该作者]

加载你写的程序出现错误提示。

 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  16楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/5 18:22:32    Post IP:182.149.129.232[只看该作者]

我这样写要得不?正确?
买了8800的反而不会使用后台交易了,以前都是图表交易。学习后台交易,请包含,很多不明白

 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  17楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/5 23:17:53    Post IP:182.149.129.232[只看该作者]

那么我写的东西体现在哪里?没贴出来吗?
if (TIME>=085600 AND TIME<=90000) then begin
tbuy(1,100,lmt,DYNAINFO(54),0);
tbuyshort(1,100,lmt,DYNAINFO(55),0);
end
if THOLDING2=0 and (currenttime>=93000 and currenttime>=144000) then begin
tbuy(val1>0,100,lmt,O,0);
tbuyshort(val1>0,100,lmt,O,0);
end
if extgbdata('biaoji')=0 then begin
 extgbdataset('biaoji',1);
 extgbdataset('kaicangjia',tenterprice);
end
ee:=extgbdataset('kaicangjia',tenterprice);
If h-ee>1 then begin
  tsellShort(1,10,lmt,ee+1,0);
 End
If h-ee>2 then begin
  tsell(1,10,lmt,ee+2,0);
 End
If ee-l>1 then begin
  tsell(1,10,lmt,ee-1,0);
 End
If ee-l>2 then begin
  tsellshort(1,10,lmt,ee-2,0);
 End

if CURRENTTIME>=145800 and currenttime<=145900 then begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end

 if time=closetime(0) then BEGIN
 extgbdataset('biaoji',0);
 extgbdataset('kaicangjia',drawnull);
end

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


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

如果你指的错误信息是这个,那么就不要管
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看


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

客户服务部

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

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

 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  19楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/6 11:20:04    Post IP:182.149.130.245[只看该作者]

就是这错误

 回到顶部
帅哥哟,离线,有人找我吗?
系统使用者
  20楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:黑侠 帖子:808 积分:667 威望:0 精华:0 注册:2011/4/9 16:17:57
  发帖心情 Post By:2014/5/6 11:20:48    Post IP:182.149.130.245[只看该作者]

那么我写的东西体现在哪里?没贴出来吗?
if (TIME>=085600 AND TIME<=90000) then begin
tbuy(1,100,lmt,DYNAINFO(54),0);
tbuyshort(1,100,lmt,DYNAINFO(55),0);
end
if THOLDING2=0 and (currenttime>=93000 and currenttime>=144000) then begin
tbuy(val1>0,100,lmt,O,0);
tbuyshort(val1>0,100,lmt,O,0);
end
if extgbdata('biaoji')=0 then begin
 extgbdataset('biaoji',1);
 extgbdataset('kaicangjia',tenterprice);
end
ee:=extgbdataset('kaicangjia',tenterprice);
If h-ee>1 then begin
  tsellShort(1,10,lmt,ee+1,0);
 End
If h-ee>2 then begin
  tsell(1,10,lmt,ee+2,0);
 End
If ee-l>1 then begin
  tsell(1,10,lmt,ee-1,0);
 End
If ee-l>2 then begin
  tsellshort(1,10,lmt,ee-2,0);
 End

if CURRENTTIME>=145800 and currenttime<=145900 then begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end

 if time=closetime(0) then BEGIN
 extgbdataset('biaoji',0);
 extgbdataset('kaicangjia',drawnull);
end
这样可以了吗?没有逻辑错误,可以后台交易???

 回到顶部
总数 21 上一页 1 2 3 下一页