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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 关于日志

   

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


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

主题:关于日志

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


加好友 发短信
等级:黑侠 帖子:791 积分:856 威望:0 精华:0 注册:2011/11/16 23:34:34
关于日志  发帖心情 Post By:2015/3/30 11:20:01    Post IP:125.94.38.182[显示全部帖子]

交易日志里,因为某行信号发生交易,但查回程序里那一行并不是交易动作,或信号的,请问这个行数是否算上空行的

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


加好友 发短信
等级:黑侠 帖子:791 积分:856 威望:0 精华:0 注册:2011/11/16 23:34:34
  发帖心情 Post By:2015/3/30 15:27:33    Post IP:125.94.38.182[显示全部帖子]

晕,当然是程序下单

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


加好友 发短信
等级:黑侠 帖子:791 积分:856 威望:0 精华:0 注册:2011/11/16 23:34:34
  发帖心情 Post By:2015/3/30 15:28:20    Post IP:125.94.38.182[显示全部帖子]

他是说程序里的哪一行出现信号,但对回程序,那并不是交易行,也不是行号行,只是end之类的东西,所以金字塔的行号标识是不是不问题


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


加好友 发短信
等级:黑侠 帖子:791 积分:856 威望:0 精华:0 注册:2011/11/16 23:34:34
  发帖心情 Post By:2015/3/30 15:33:38    Post IP:125.94.38.182[显示全部帖子]

 if (CS<CS1 or (nBE>=nBE1+0.4)) then begin//排名上升,上升一个区间
if tholding2>-e then begin
if tholding2<e then begin
if not(TORDERPRICE(4,1)=BE) then sc:=0;
if not(TORDERPRICE(1,1)=BE) then bo:=0;
if tholding2>=0 then begin
if tsellholding(1)>0 then begin//加了限制
if sc=0 then tsellshort(close-nBE>m,1,lmt,BE);
sc:=1;bo:=1;
end
if tsellholding(1)=0 then begin
if bo=0 then tbuy(close-nBE>m,1,lmt,BE);
bo:=1;sc:=1;
end
end
if tholding2=-1 then begin
if tsellholding(1)>1 then begin
if sc=0 then tsellshort(close-nBE>m,2,lmt,BE);
sc:=1;bo:=1;
end
if tsellholding(1)=1 then begin
if sc=0 then tsellshort(close-nBE>m,1,lmt,BE);
sc:=1;
if bo=0 then tbuy(close-nBE>m,1,lmt,BE);
bo:=1;
end
if tsellholding(1)=0 then begin
if bo=0 and sc=0 then tbuy(close-nBE>m,2,lmt,BE);
bo:=1;sc:=1;
end
end
if tholding2<-1 then begin 
if tsellholding(1)>2 then begin
if sc=0 then tsellshort(close-nBE>m,3,lmt,BE);
sc:=1;bo:=1;
end
if tsellholding(1)>1 then begin
if sc=0 then tsellshort(close-nBE>m,2,lmt,BE);
sc:=1;
if bo=0 then tbuy(close-nBE>m,1,lmt,BE);
bo:=1;
end
if tsellholding(1)=1 then begin
if sc=0 then tsellshort(close-nBE>m,1,lmt,BE);
sc:=1;
if bo=0 then tbuy(close-nBE>m,1,lmt,BE);
bo:=1;
end
if tsellholding(1)=0 then begin
if bo=0 and sc=0 then tbuy(close-nBE>m,2,lmt,BE);
bo:=1;sc:=1;
end
end
end
if tholding2>=e then begin//极限再平空开多
if not(TORDERPRICE(4,1)=BE) then sc:=0;
if not(TORDERPRICE(1,1)=BE) then bo:=0;
if ERSI1>=-32 then bo:=1;
if sc=0 and ERSI1<-32 and tsellholding(1)>1 then begin
tsellshort(close-nBE>m,2,lmt,BE);
sc:=1;
end
if sc=0 and ERSI1<-32 and tsellholding(1)=1 then begin
tsellshort(close-nBE>m,1,lmt,BE);
sc:=1;
end
if bo=0 then begin
tbuy(close-nBE>m,1,lmt,BE);
bo:=1;
end
end
end
if tholding2<=-e and taccount(4)<0 and ERSI1<32 then begin
if not(TORDERPRICE(4,1)=BE) then sc:=0;
if not(TORDERPRICE(1,1)=BE) then bo:=0;
if sc=0 and tsellholding(1)>2 then begin
tsellshort(close-nBE>m,3,lmt,BE);
sc:=1;
bo:=1;
end
if sc=0 and tsellholding(1)>1 then begin
tsellshort(close-nBE>m,2,lmt,BE);
sc:=1;
end
if sc=0 and tsellholding(1)=1 then begin
tsellshort(close-nBE>m,1,lmt,BE);
sc:=1;
end
if bo=0 then begin
tbuy(close-nBE>m,1,lmt,BE);
tbuy(close-nBE>m,1,lmt,BE);
tbuy(close-nBE>m,1,lmt,BE);
bo:=1;
end
end
end  
能解释这段程序为什么一两秒内会在同价位反复开平单吗

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


加好友 发短信
等级:黑侠 帖子:791 积分:856 威望:0 精华:0 注册:2011/11/16 23:34:34
  发帖心情 Post By:2015/3/30 16:58:00    Post IP:125.94.38.182[显示全部帖子]

他说程序第几行,但第几行没有下单语句的,所以我问是不是空行的都不算行号

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


加好友 发短信
等级:黑侠 帖子:791 积分:856 威望:0 精华:0 注册:2011/11/16 23:34:34
  发帖心情 Post By:2015/3/30 17:04:29    Post IP:125.94.38.182[显示全部帖子]

就是对不上

 回到顶部