Rss & SiteMap

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

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

标题:信号异常问题

1楼
qq代人发帖 发表于:2017/6/5 15:27:26
 //后台持仓同步系统
cc:=holding;
if tholding>0 and kkcond then sell(1,ss,market);
if tholding<0 and kdcond then sellshort(1,ss,market);
if tholding=0 and buycond then buy(1,ss,market);
if tholding=0 and sellcond then buyshort(1,ss,market);
tm:=20;//撤单时间
wt:=tremainqty(0,'',stklabel);
buyhold:=tbuyholdingex('',stklabel,1);
sellhold:=tsellholdingex('',stklabel,1);
if wt>0.5 and tsubmit(0)>tm then tcancelex(1,0,'',stklabel);
if wt<0.5 then begin
 kc1:=max(cc,0)-buyhold;
 kc2:=abs(min(cc,0))-sellhold;
 if kc1<-0.5 then tsell(1,abs(kc1),mkt,0,0,''),allowrepeat;
 if kc2<-0.5 then tsellshort(1,abs(kc2),mkt,0,0,''),allowrepeat;
 if sellhold<0.5 and kc1>0.5 then tbuy(1,kc1,mkt,0,0,''),allowrepeat;
 if buyhold<0.5  and kc2>0.5 then tbuyshort(1,kc2,mkt,0,0,''),allowrepeat;
end
 

图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看此主题相关图片如下:2.png
图片点击可在新窗口打开查看
出现的是这样???
2楼
系统使用者 发表于:2017/6/5 15:46:22
allowrepeat? 问题?
3楼
pyd 发表于:2017/6/5 16:20:36

图2没有除权数据吧?

右键-》数据-》除权数据看下是不是没有除权数据

4楼
系统使用者 发表于:2017/6/5 20:50:37
有除权数据
5楼
王锋 发表于:2017/6/5 20:57:17
看不懂你在描述什么,你意识是2个图上的信号不同?
共5 条记录, 每页显示 10 条, 页签: [1]


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