<?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>信易科技用户论坛| Shoe X | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/shoe/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/shoe/activity/feed/" rel="self" type="application/rss+xml" />
	<description>Shoe X的动态信息。</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">898988c7ec0e87ddee6618bef626204c</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13935</link>
				<pubDate>Fri, 30 Oct 2020 10:00:27 +0800</pubDate>

									<content:encoded><![CDATA[<p>当天平仓后（实际持仓为0）的合约也包含在里面，</p>
<p>文档说明如下：<br />
注意: 为保留一些可供用户查询的历史信息, 如 volume_long_yd(本交易日开盘前的多头持仓手数) 等字段, 因此服务器会返回当天已平仓合约( pos_long 和 pos_short 等字段为0)的持仓信息</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6a900c551473c1e7f65ca55b8a21e03b</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13803</link>
				<pubDate>Thu, 22 Oct 2020 10:03:49 +0800</pubDate>

									<content:encoded><![CDATA[<p>根据你的描述，一个简单的办法是在每次调仓动作后都写入文件，以免遗漏。</p>
<p>于是，找到仅有的一处target_pos.set_target_volume()，它出现在def set_position()中，</p>
<p>例如这样：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c484f8cbb0851d3d4d27c65bc33074db</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13722</link>
				<pubDate>Thu, 15 Oct 2020 15:40:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>get_position</p>
<p>文档说：<br />
注意: 为保留一些可供用户查询的历史信息, 如 volume_long_yd(本交易日开盘前的多头持仓手数) 等字段, 因此服务器会返回当天已平仓合约( pos_long 和 pos_short 等字段为0)的持仓信息<br />
于是，遇到当天有平仓时，pos_len == 0 为False，则不会退出循环。</p>
<p>试试这样写：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">769877cc3b800665ea13021d4f4bdd1d</guid>
				<title>Shoe X发布了一条新的动态评论</title>
				<link>https://forum.shinnytech.com/%e5%8a%a8%e6%80%81/p/7394/#acomment-7399</link>
				<pubDate>Sun, 11 Oct 2020 13:08:13 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以加我qq：109184412</p>
				<strong>回复于</strong> -
				<a href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/phdlh/" rel="nofollow ugc">phdlh</a>发布了更新 <a href='https://www.shinnytech.com/%e6%88%90%e5%91%98/shoe/' rel="nofollow ugc">@shoe</a> 谢谢朋友的建议，我下单的价格就是用涨停价和跌停价的。请问可以留个联系方式，交个朋友吗？			]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">cee53a898ca6f2d6efcb248f1b0a014f</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13620</link>
				<pubDate>Sun, 11 Oct 2020 12:57:38 +0800</pubDate>

									<content:encoded><![CDATA[<p>嗯，刚才查看论坛邮件，才知道phdlh的回复，于是对上面的回答做了修正。</p>
<p>另，上期所默认可获得5档行情，但其它所不能。这一点可以参阅快期App[交易]界面中的盘口信息。</p>
<p>另，我记得曾收到过期货公司的《关于谨慎使用市价单或涨停板位限价单的通知》，大致是说：由于部分合约流动性较差，买卖委托量较少，请在这些合约上谨慎使用市价单或涨跌停板价位的限价单，避免交易价格偏离正常价格的情况出现。</p>
<p>检查平仓order，如果不是限价=‘n [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a6258afa118eca7f558ff599ab99d1f0</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13612</link>
				<pubDate>Fri, 09 Oct 2020 15:20:06 +0800</pubDate>

									<content:encoded><![CDATA[<p>涨停价 quote.upper_limit</p>
<p>跌停价 quote.lower_limit</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">4ebc3c6b2c9d60ec48cc28b529d1e577</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13610</link>
				<pubDate>Fri, 09 Oct 2020 12:51:28 +0800</pubDate>

									<content:encoded><![CDATA[<p>委托单有触发，天勤打印委托单已提交，但是app上查不到委托单，这个问题我也遇到过。</p>
<p>当时，我想挂单在买5的位置，limit_price = quote.ask_price5</p>
<p>问题就出在这里。</p>
<p>上期所的品种能读取到ask_price5，但其它所的品种读ask_price5 = &#8216;nan&#8217;</p>
<p>所以，如果某个参数是无效的，可能就会下单失败。 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">16ca52b9efa4c0b0329a031f8f50d0d0</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13497</link>
				<pubDate>Wed, 30 Sep 2020 04:49:25 +0800</pubDate>

									<content:encoded><![CDATA[<p>根据lookis的指引，打印K的datetime后发现，由于品种交易时间是固定值，所以只需要粗略统计相同day的k线总数，而不必按夜盘等时间段细分。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">41ab7d78b79ec0499a37ac04c0733476</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13453</link>
				<pubDate>Tue, 29 Sep 2020 02:55:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>试试用变量锁定开仓的次数，然后每次k更新时初始化变量</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">900a923435795b519a64327ee6dea079</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13335</link>
				<pubDate>Thu, 24 Sep 2020 15:49:08 +0800</pubDate>

									<content:encoded><![CDATA[<p>get_order()可以得到之前的委托单，包括快期2/3中的委托单</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9920ef76c1042a0c854ede90cdd336d4</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=13123</link>
				<pubDate>Wed, 23 Sep 2020 16:05:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>刚才试着跑了一下，并没有报错。</p>
<p>我觉得，这个报错可能是在58行或者66行</p>
<p>58行 mark_high[-1] &gt; mark_high[-2]<br />
66行 mark_low[-1] &lt; mark_low[-2]</p>
<p>假设当天空仓开多，到76行addend一个值。<br />
现在是持仓状态，到57行再addend一个值，<br />
58行 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">70435b73019e01974dec38db3447a1d8</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=12936</link>
				<pubDate>Mon, 21 Sep 2020 16:28:14 +0800</pubDate>

									<content:encoded><![CDATA[<p>补充一点：</p>
<p>api.close() 放在async def 定义的函数中，会报这个错：<br />
raise Exception(&#8220;不能在协程中调用 close, 如需关闭 api 实例需在 wait_update 返回后再关闭&#8221;)<br />
Exception: 不能在协程中调用 close, 如需关闭 api 实例需在 wait_update 返回后再关闭<br />
with closing会负责close，所以不必再写api.close()</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">27276ddb80a3c842a4291ce50352c390</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=12935</link>
				<pubDate>Mon, 21 Sep 2020 16:05:33 +0800</pubDate>

									<content:encoded><![CDATA[<p>试试这样，详细请查楼上文档</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b50b25120713ee23c1a86887db355aed</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=12787</link>
				<pubDate>Fri, 11 Sep 2020 15:41:12 +0800</pubDate>

				
				
							</item>
					<item>
				<guid isPermaLink="false">c0749568723fc4b0d5d9e4042ac973ee</guid>
				<title>Shoe X 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=12741</link>
				<pubDate>Thu, 10 Sep 2020 01:40:21 +0800</pubDate>

									<content:encoded><![CDATA[<p>用到的原型</p>
<p>Aberration 策略 (难度：初级)</p>
<p>完成后代码如下</p>
<p>此处完全照搬ringo老师的代码，改编如有错误之处请删帖，我怕误人</p>
<p>我觉得：</p>
<p> 	通常不需要import asyncio<br />
 	并不是所有函数都要加async，通常需要等待(阻塞)的才加。<br />
 	第一次获得K需要api.is_serial_ready()，用K计算前万万注意啊<br />
 	while True: api.wait_upda [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/b1559ab966b640335fb00980d7173a67d35b7ac8_1512.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">87affbe35abef9168c6899162410e180</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=12523</link>
				<pubDate>Mon, 31 Aug 2020 10:48:27 +0800</pubDate>

									<content:encoded><![CDATA[<p>我是这样写close()的，把while True放入异常捕获try中，感觉有效果，每次按Ctr+C都能打印出“中止”。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ecc7873b5970b2c3456ed39c7e3ebcd0</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=12211</link>
				<pubDate>Tue, 18 Aug 2020 01:40:05 +0800</pubDate>

									<content:encoded><![CDATA[<p>trade_chan (TqChan): [可选]成交通知channel, 当有成交发生时会将成交 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">77da417f499e74e71c8030224fa9d636</guid>
				<title>Shoe X 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=12159</link>
				<pubDate>Wed, 12 Aug 2020 14:38:26 +0800</pubDate>

									<content:encoded><![CDATA[<p>今日模拟交易中出现一个换月问题，当它对DCE.p开仓时，它检测到DCE.pg具有相同的前缀，于是错误的对pg平仓。并参考ringo老师的建议，进行了修改。</p>
<p>测试代码如下（）：</p>
<p>_________________________________________________________________________</p>
<p>__________________这是一条分割线，以下是早先有误的内容___________ [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">347c2223d5fc1680cde14643dee4d62e</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=12157</link>
				<pubDate>Wed, 12 Aug 2020 13:34:07 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.<br />
while [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d5e92b459f0e55a210096a87cd605a57</guid>
				<title>Shoe X 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11835</link>
				<pubDate>Sat, 25 Jul 2020 02:01:00 +0800</pubDate>

									<content:encoded><![CDATA[<p>我今天尝试使用螺纹主连，发现与主力合约的开盘价不相等，会是我打开方式有误吗？</p>
<p>得到的结果是这样的（运行时间2020/7/25 09:50 ）：<br />
高 3785.0 3785.0<br />
开 3754.0 3750.0<br />
低 3746.0 3746.0<br />
收 3777.0 3777.0<br />
然后查看快期小Q的螺纹主连，开盘价是3750，</p>
<p>烦请管理员查看一下，谢谢！</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7097507fbd35bc8669db007ea096bd0f</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=11782</link>
				<pubDate>Tue, 21 Jul 2020 15:35:46 +0800</pubDate>

									<content:encoded><![CDATA[<p>我不知道为何需要DataFrame类型的上下轨，也不知道如何转换，</p>
<p>不过，你可以尝试使用tafunc.hhv，tafunc.llv，tafunc.max等内置序列函数，例如：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c37e73952864a8ae88049aa5defebea1</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=9051</link>
				<pubDate>Tue, 10 Mar 2020 05:32:17 +0800</pubDate>

									<content:encoded><![CDATA[<p>你问的大概是这样吧，参数N是你想获取的历史K线数量，默认不填将订阅200根。</p>
<p>get_kline_serial具体用法请阅读示例：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">16ffa3ce9a992d95e3261a8f805b9dda</guid>
				<title>Shoe X 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=8980</link>
				<pubDate>Sat, 07 Mar 2020 14:30:57 +0800</pubDate>

									<content:encoded><![CDATA[<p>这样写试试看</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">fc2279e9729a83907bb101df376d1802</guid>
				<title>Shoe X 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8973</link>
				<pubDate>Sat, 07 Mar 2020 03:10:42 +0800</pubDate>

									<content:encoded><![CDATA[<p>考虑为仓位命名，比如这样：</p>
<p>set_target_volume(volume: int, name: str)</p>
<p>name属性默认不填或为&#8221;&#8221;，否则，只调整name指向的仓位。</p>
<p>比如：A策略先开多仓set_target_volume(1,&#8221;A&#8221;)，过后B策略又开了空仓set_target_volume(-1,&#8221;B&#8221;)，这样他们互不干扰。</p>
<p>此时，平仓必须指定仓位名，否则set指向的是名字为&#8221;&#8221;的默认仓位。</p>
<p>请问，这方便实现么？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0057008bd7599fb79151b11728a382a0</guid>
				<title>Shoe X 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8940</link>
				<pubDate>Thu, 05 Mar 2020 15:47:20 +0800</pubDate>

									<content:encoded><![CDATA[<p>我按照示例，写了一段简陋的代码，+10是模拟简单的取值后计算。如果是我代码的错误，请指出。</p>
<p>打印出来的信息，截取自最后几行：<br />
新价<br />
取-2值 3434.0 3430.0 3428.0 3432.0<br />
取-1值 3432.0 3432.0 3432.0 3432.0<br />
新价<br />
取-2值 3434.0 3430.0 3428.0 3432.0<br />
取-1值 3432.0 3432.0 3432.0 3432.0<br />
新价<br />
取-2值 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3ace2953b95b0c9ab9b5e39f39893992</guid>
				<title>Shoe X 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8771</link>
				<pubDate>Wed, 26 Feb 2020 08:17:06 +0800</pubDate>

									<content:encoded><![CDATA[<p>看了关于《实盘交易最佳实践》（如下链接）</p>
<p>但我很好奇，能否在Android手机端运行天勤量化策略，从而实现手机端自动交易？</p>
<p>目前手机端可用QPython搭建Python环境，并相比电脑它不会停电、不会断网、方便携带等诸多优点，对于非高频策略，我很乐意用手机去运行它。</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>