<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>信易科技用户论坛| Z Liu | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/idle0/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/idle0/activity/feed/" rel="self" type="application/rss+xml" />
	<description>Z Liu的动态信息。</description>
	<lastBuildDate>Sun, 05 Apr 2026 13:01:37 +0800</lastBuildDate>
	<generator>https://buddypress.org/?v=10.4.0</generator>
	<language>zh-CN</language>
	<ttl>30</ttl>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>2</sy:updateFrequency>
	
						<item>
				<guid isPermaLink="false">ecaa8bacb9fed33b8b65c0bdf3c03fe2</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11860</link>
				<pubDate>Tue, 28 Jul 2020 03:42:22 +0800</pubDate>

									<content:encoded><![CDATA[<p>开盘时间，各种操作不了，着急啊，一看磁盘100%！！<br />
各种折腾，各种操作&#8230;<br />
一开始我定位到Kcore，可是&#8230;最后最后我找到了/root/.tqsdk下一堆的小log&#8230;<br />
它占完了所有的磁盘空间，没有提示，没有压缩，没有回滚&#8230;<br />
一上午默默的过去了&#8230;</p>
<p>请将log交给用户</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0a9761a01ee121039e432fccafd6f85c</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11524</link>
				<pubDate>Fri, 10 Jul 2020 04:40:57 +0800</pubDate>

									<content:encoded><![CDATA[<p>版本：1.8.2<br />
期货公司是：国金期货<br />
最近几天连接都是：websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 500<br />
client 2020.7.10中午测试错误依旧。</p>
<p>第一次连瞬间就reject，防火墙DDoS？还 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d803f8f63cf5b52100aef8212bf9f2ac</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11515</link>
				<pubDate>Thu, 09 Jul 2020 11:21:56 +0800</pubDate>

									<content:encoded><![CDATA[<p>版本：1.8.1 和 1.8.2<br />
期货公司是：国金期货<br />
最近几天连接都是：websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 500</p>
<p>client通过阿里云、移动网、广电网连接过去，均是第一次出现 HTTP 500 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">fa41e6b399b854497820bc0ba6587891</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11493</link>
				<pubDate>Tue, 07 Jul 2020 13:27:41 +0800</pubDate>

									<content:encoded><![CDATA[<p>2020.7.7晚8：50~9：10，程序登录时报出异常然后退出。<br />
反复重启程序多次后登录成功。</p>
<p>在使用天勤量化之前，默认您已经知晓并同意以下免责条款，如果不同意请立即停止使用：https://www.shinnytech.com/blog/disclaimer/<br />
SSL error in data received<br />
protocol:<br />
transport:<br />
Traceback (most recent call la [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e0cf24d4f880ece5ea73ddb6e650d798</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11412</link>
				<pubDate>Thu, 02 Jul 2020 03:39:01 +0800</pubDate>

									<content:encoded><![CDATA[<p>log信息后反复确认，get_position后程序存在逻辑错误。该逻辑错误存在普遍性，几乎所有的类似编码结构都受影响。</p>
<p>日志信息如下（注：有一手隔夜持仓，晚间程序kill掉，9:01启动程序）：<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
2020-07-02 09:01:11 &#8211; DCE.jd2008 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">673d75de196468a270d4723a9ffde79f</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11340</link>
				<pubDate>Sun, 28 Jun 2020 04:19:04 +0800</pubDate>

									<content:encoded><![CDATA[<p>position = api.get_position(SYMBOL)时，我要确认position更新完毕（一定是最新持仓信息后）才到while True&#8230;执行，查遍所有文档未得到确切答案，请官方给个例子，谢谢！</p>
<p>例：<br />
api = T [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6b8756f71c41324273116052bf0edc31</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11297</link>
				<pubDate>Wed, 24 Jun 2020 02:32:34 +0800</pubDate>

									<content:encoded><![CDATA[<p>如图，卖出点应该是2，但是1.8.1回测时候卖出点都是1。 1.7有过该问题，论坛提出后1.8修正了该问题，1.8.1重新引入了该问题。</p>
<p>DCE.jd2007 卖 平 3256 1 2020-05-06 09:00:00 PYSDK_target_536602e7a67ead9f05814275e28a4bbc|1<br />
DCE.jd2007 买 开 3457 1 2020-04-30 11:22:59 PY [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/2a9a30a78c9c789661abffdd7f3e604b18b090df_1628.PNG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">cb614c23db1fd7468db90c1f6da4604a</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11237</link>
				<pubDate>Sat, 20 Jun 2020 09:42:24 +0800</pubDate>

									<content:encoded><![CDATA[<p>INFO &#8211; 模拟交易下单 74fe4ecb40bf1b5997ccf6075220be9e: 时间:2020-05-15 20:59:59.999999,合约:DCE.p2009,开平:OPEN,方向:BUY,手数:1,价格:4496.0<br />
INFO &#8211; 模拟交易委托单 74fe4ecb40bf1b5997ccf6075220be9e: 下单失败, 不在可交易时间段内 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">4201c4553b1d73f389c0535ad267a2d6</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11204</link>
				<pubDate>Thu, 18 Jun 2020 03:23:30 +0800</pubDate>

									<content:encoded><![CDATA[<p>问题描述：<br />
1. 论坛中多次提到一个问题：原来持仓1手隔夜，次日早上开盘瞬间会对出一对 “买-卖”操作，长期以来该问题一直存在。每天忍受着每次开盘时无故多出的一对“买卖”+滑点损失。</p>
<p>（注：隔夜1手持仓，晚间程序被kill掉，早上9：0 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2678fed48d7b842ea1d319bde25e9bd2</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11084</link>
				<pubDate>Tue, 09 Jun 2020 07:41:29 +0800</pubDate>

									<content:encoded><![CDATA[<p>tqsdk现在可以做股票实盘吗？</p>
<p>支持哪些证券公司？</p>
<p>文档呢？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">15a105a458d1897f77f2a60e597d2c51</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11026</link>
				<pubDate>Thu, 04 Jun 2020 13:31:52 +0800</pubDate>

									<content:encoded><![CDATA[<p>无数次了，出现下面的情况，无故多出一对 “买-卖”操作! 损失滑点+手续费。</p>
<p>代码：<br />
if 条件==True:<br />
if position.pos_long == 0:<br />
target_pos.set_target_volume(1)</p>
<p>2020-06-04 21:01:10,896 &#8211; INFO &#8211; 通知: 登录成功<br />
2020-06-04 21:01:12,222 &#8211; INFO &#8211; 通知: 下单成功<br />
20 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">250d80607b524369e0d601e8c3627eef</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=10336</link>
				<pubDate>Mon, 11 May 2020 13:38:19 +0800</pubDate>

									<content:encoded><![CDATA[<p>单进程，单合约。（以下错误看起来好像我同时运行了两个程序，但是查询后台确认是单个进程，单个合约）</p>
<p>满足条件时，执行了：target_pos.set_target_volume(-1)</p>
<p>日志显示：<br />
2020-05-11 21:01:09,865 &#8211; INFO &#8211; 通知: 下单成功<br />
2020-05-11 21:01:09,893 &#8211; INFO &#8211; 通知: 成交通知,合约:DCE.a2009,手数:1<br />
2020-05-11 2 [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/4fb6ff0e414c4bb356128924b81c3a0c02275d01_1628.PNG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d72e4aacf186a27678d735be662e3320</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=10006</link>
				<pubDate>Tue, 21 Apr 2020 05:15:16 +0800</pubDate>

									<content:encoded><![CDATA[<p>jd2006  2020-4-21 9:00:00 快期报价：最低价3192.</p>
<p>其他任何报价系统该值都是3198，怎么回事？</p>
<p> <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/a9cf5236260f042d277b6e9cbae85609b50b9256_1628.PNG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">61e373e66f7e860f692ee0055685dc79</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9975</link>
				<pubDate>Sun, 19 Apr 2020 11:50:11 +0800</pubDate>

									<content:encoded><![CDATA[<p>上图是1.6.3版本，类似的跳空都会发生异常交易。交易时间、成交价格都不对。实际成交价格应该在红箭头处。</p>
<p>INFO &#8211; 模拟交易下单 9ed669424deab399bf48527acaef9306: 时间:2020-01-21 21:00:00.000000,合约:SHFE.ag2006,开平:CLOSE,方向:SELL,手数:1,价格:4369.0<br />
INFO &#8211; 模拟交易委托单 9ed669424deab [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/2cc95884108057486cf1e4f6a0a9e939b92d47ce_1628.PNG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">196d666f90cf5f28948b68996e72db5e</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9943</link>
				<pubDate>Sun, 19 Apr 2020 10:22:29 +0800</pubDate>

									<content:encoded><![CDATA[<p>感谢发布1.7版本，发现1.7版本修正了很多问题。</p>
<p>但是更新到tqsdk1.7后发现回测时平仓动作不可预测！很担心实盘时候是不是会出现类似的问题。<br />
例子很多，下面是 SHFE.ag2006 start_dt=date(2020, 1, 21), end_dt=date(2020, 1, 23))<br />
的截图，并对比1.6.3版本<br />
1.7版本：</p>
<p>debug发现红色箭头开始一直在执行target_pos.set_target_v [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/38acd9d32476cdff60164ede5eb5bfab89c98750_1628.PNG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1238a9145d01e30466aabd281bc4dba9</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9872</link>
				<pubDate>Sat, 18 Apr 2020 15:20:03 +0800</pubDate>

									<content:encoded><![CDATA[<p>程序大致如下：<br />
klines = api.get_kline_serial(SYMBOL, 60 * 30)<br />
while True:<br />
api.wait_update()<br />
if api.is_changing(klines1.iloc[-1],&#8221;close&#8221;):<br />
ma1,ma2 = &#8230;<br />
if ma1 &gt; ma2:<br />
target_pos.set_target_volume(1)<br />
if ma1 &lt; ma2:<br />
target_p [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">708f7a0fdb9da097d932026c38b1f0be</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9871</link>
				<pubDate>Sat, 18 Apr 2020 14:54:08 +0800</pubDate>

									<content:encoded><![CDATA[<p>更新1.7.0后回测总是报错。提示“不在可交易时间段内”，然后整个程序异常退出！</p>
<p>有很多品种报错，如：jd2005，原 klines = api.get_kline_serial(SYMBOL, 60 * 30 )报错，</p>
<p>改为：klines = api.get_kline_serial(SYMBOL, 60 * 29 )jd2005能过去，不报错。</p>
<p>cu2005 klines = ap [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">382010041d5951923e435017ad4947d9</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9821</link>
				<pubDate>Thu, 16 Apr 2020 08:59:57 +0800</pubDate>

									<content:encoded><![CDATA[<p>tqsdk计算指标值和快期3不一致（参数完全一致）。<br />
我看tqsdk中ta.py计算方法比较固定，同一个指标：ta.py中仅使用sma计算均线；而快期3中可选sma、ema等计算均线。</p>
<p>参数调整为完全一致，也不能让tqsdk和快期3得到指标值一致。<br />
不一致的原因是什么？<br />
交易时tqsdk和快期3都会用到，如何让他们尽量保持一致？谢谢！</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e57b1a7e07c249023e4ec9d39a8b2e4c</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9819</link>
				<pubDate>Thu, 16 Apr 2020 08:47:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>klines = api.get_kline_serial(SYMBOL, 60 * 60 * 1)</p>
<p>api.wait_update()</p>
<p>if api.is_changing(klines.iloc[-1], &#8220;datetime&#8221;):<br />
ma1 = [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">80569a27fc1dc7b53a53dff67e080aae</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9737</link>
				<pubDate>Wed, 15 Apr 2020 03:35:40 +0800</pubDate>

									<content:encoded><![CDATA[<p>最近经常发现测试服务器连接不上。<br />
我想测试时：第一次从服务器取数据，并保存到本地（数据库or文本，或类似建立一个127.0.0.1的server）；<br />
第二次之后的所有测试从本地取数据，既加快了速度，又减少服务器负担，不能联网时也能离线测试。<br />
能否给个代码例子？</p>
<p>Traceback (most recent call last):<br />
File “D:Python37libsite-packagesurllib3con [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">567f246e8bed77403202c3df0fb6704c</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9736</link>
				<pubDate>Wed, 15 Apr 2020 03:28:43 +0800</pubDate>

									<content:encoded><![CDATA[<p>程序因登录失败而退出运行，不能手工二次运行的情况下，代码如何保证 持续的尝试重新登录？</p>
<p>请给个例子，谢谢！</p>
<p>2020-04-15 09:00:00,158 &#8211; INFO &#8211; 通知: 与 wss://openmd.shinnytech.com/t/md/front/mobile 的网络连接已建立<br />
2020-04-15 09:00:30,589 &#8211; WARNING &#8211; 通知: 与 wss://kq.c [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9e1dd5dcb1fbbf4154ff4b4549677ba5</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9666</link>
				<pubDate>Mon, 13 Apr 2020 09:43:02 +0800</pubDate>

									<content:encoded><![CDATA[<p>测试服务器连接不上？ 实盘时会不会出现类似情况？</p>
<p>Traceback (most recent call last):<br />
File &#8220;D:Python37libsite-packagesurllib3connectionpool.py&#8221;, line 603, in urlopen<br />
chunked=chunked)<br />
File &#8220;D:Python37libsite-packagesurllib3connec [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">63c2edf7aa7b061088544e92688b4053</guid>
				<title>Z Liu 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=9537</link>
				<pubDate>Tue, 07 Apr 2020 09:43:55 +0800</pubDate>

									<content:encoded><![CDATA[<p>klines[“ma_MAIN1”] = macg.ma</p>
<p>klines[“ma_MAIN2”] = manx.ma</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b0be33d0cb9105ba3bf66ae2717180e9</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9531</link>
				<pubDate>Tue, 07 Apr 2020 08:49:27 +0800</pubDate>

									<content:encoded><![CDATA[<p>类似图上数据，用tqsdk回测时我发现回测交易buy点会发生在1位置；但是实际交易时会在位置2。</p>
<p>这种滑点是因为回测数据“已知”后面的数据导致了指标计算时的变异吗？ 还是其他什么原因？</p>
<p>回测时如何避免这种“神”预测？ <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/4edf5c66af102ae8cb581c3555701bef2314502f_1628.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7695cbde7bfd5ea15da21dc2dd1551dc</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9530</link>
				<pubDate>Tue, 07 Apr 2020 08:47:04 +0800</pubDate>

									<content:encoded><![CDATA[<p>以下是同一品种一天的交易k线图</p>
<p>  1h线   其他交易软件</p>
<p> 1h线  快期client 及 tqsdk</p>
<p> 2h线   其他交易软件</p>
<p> 2h线   快期client及 tqsdk</p>
<p> 30分  其他交易软件</p>
<p> 30分  快期client及 tqsdk</p>
<p>我的问题：1.我如何调整tqsdk的属性来使的k线和其他软件保持一致？</p>
<p> 	快期这种k线绘制方式可能的影响 [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/d9dee7c00968b4a98bf97668132ab90a35bc256f_1628.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b2cd578bced9bf14f8e766504eec165e</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9445</link>
				<pubDate>Wed, 01 Apr 2020 06:26:16 +0800</pubDate>

									<content:encoded><![CDATA[<p>web_gui 如何将副图指标更改为其他指标，如改为MACD？请给个例子。</p>
<p>web_gui编程可参考的资料哪里可以找到？</p>
<p>谢谢！</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ef0371d60a7370aee7ba2b6a79c2b3e8</guid>
				<title>Z Liu 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=9264</link>
				<pubDate>Mon, 23 Mar 2020 03:22:24 +0800</pubDate>

									<content:encoded><![CDATA[<p>用 tqsdk 开发 策略 c1.py  , c2.py, c3.py， 策略各不相同。</p>
<p>使用机器1运行 python c1.py</p>
<p>使用机器2运行 python c2.py</p>
<p>使用机器3运行 python c3.py</p>
<p>c1.py c2.py c3.py操作同一个账户且同一个品种，请问会冲突吗？如不会冲突，那操作结果预期是怎样？</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>