Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共11 条记录, 每页显示 10 条, 页签: [1] [2]
[浏览完整版]

标题:关于日志

1楼
leonxu 发表于:2015/3/30 11:20:01
交易日志里,因为某行信号发生交易,但查回程序里那一行并不是交易动作,或信号的,请问这个行数是否算上空行的
2楼
jinzhe 发表于:2015/3/30 11:23:14

 

交易日志没有记录那就说明那里的下单不是程序下单

3楼
leonxu 发表于:2015/3/30 15:27:33
晕,当然是程序下单
4楼
leonxu 发表于:2015/3/30 15:28:20
他是说程序里的哪一行出现信号,但对回程序,那并不是交易行,也不是行号行,只是end之类的东西,所以金字塔的行号标识是不是不问题

5楼
jinzhe 发表于:2015/3/30 15:31:59
不会是这样的,你举实例说明一下
6楼
leonxu 发表于:2015/3/30 15:33:38
 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  
能解释这段程序为什么一两秒内会在同价位反复开平单吗
7楼
jinzhe 发表于:2015/3/30 15:34:42
看下单日志,看看是那句话触发的,触发下单说明条件满足
8楼
leonxu 发表于:2015/3/30 16:58:00
他说程序第几行,但第几行没有下单语句的,所以我问是不是空行的都不算行号
9楼
jinzhe 发表于:2015/3/30 17:01:38
这里有具体的行数,不会数的可以看这里的标记
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看
10楼
leonxu 发表于:2015/3/30 17:04:29
就是对不上
共11 条记录, 每页显示 10 条, 页签: [1] [2]


Powered By Dvbbs Version 8.3.0
Processed in 0.03516 s, 3 queries.