<?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>信易科技用户论坛| 591221824 | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/9aee9a3b-56b8-4a21-872e-3f44d0a27603/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/9aee9a3b-56b8-4a21-872e-3f44d0a27603/activity/feed/" rel="self" type="application/rss+xml" />
	<description>591221824的动态信息。</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">b3820b46ad0eb26630dff7102665c12c</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21676</link>
				<pubDate>Mon, 13 Jun 2022 01:09:37 +0800</pubDate>

				
				
							</item>
					<item>
				<guid isPermaLink="false">9f4e6d865e9779d77f25d5d7f4e53c0c</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21675</link>
				<pubDate>Mon, 13 Jun 2022 01:08:29 +0800</pubDate>

									<content:encoded><![CDATA[<p>下单实际上是在 api.wait_update() 中进行的，可以在下单之后，检验订单状态确定下单完成之后再获取持仓信息。</p>
<p>15天勤基于状态/自动调仓函数的策略框架 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/512818270" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/512818270</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">8f143d0ccf3a1ebd6cfd8b3f3f127896</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21670</link>
				<pubDate>Fri, 10 Jun 2022 01:07:20 +0800</pubDate>

									<content:encoded><![CDATA[<p>因为你的开仓平仓条件太相近了，如果最新价大于ma15开仓，小于等于ma15平仓。如果最新价一直在ma15附近波动，那么你就会反复开平仓。解决这一问题的方式是把开平条件做时间/空间上的分隔，比如必须开仓10s之后才判断平仓条件，或者开仓之后止损止盈设置的离开仓价远一点</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">63aa5b12ea4152c941b311f25ca2ed8c</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21665</link>
				<pubDate>Wed, 08 Jun 2022 08:59:19 +0800</pubDate>

									<content:encoded><![CDATA[<p>重复下单是因为开仓条件满足，一直报单。</p>
<p>8.天勤量化如何避免重复下单 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/475650273" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/475650273</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a9300d73b159a5c4b3f544c0028127c6</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21652</link>
				<pubDate>Mon, 06 Jun 2022 01:41:09 +0800</pubDate>

									<content:encoded><![CDATA[<p>有。。。。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">93748003cedb4426f1610f26d15a3b22</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21651</link>
				<pubDate>Mon, 06 Jun 2022 01:40:34 +0800</pubDate>

									<content:encoded><![CDATA[<p>刚开盘的时候获取一下id，之后获取k线id与之比较一下就好。</p>
<p>或者设置一个变量，当k线更新后+1，记录当天的1分钟k线数目</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7b0f4576d8cb23b9d1903ba058fa8d0e</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21640</link>
				<pubDate>Mon, 30 May 2022 00:51:51 +0800</pubDate>

									<content:encoded><![CDATA[<p>12天勤主力合约换月/回测 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/486538059" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/486538059</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">53d11adc2bf10a5a5488e9b4268c054d</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21639</link>
				<pubDate>Mon, 30 May 2022 00:43:21 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.天勤k线时间：比如你想获取2小时的k线，就是从1970年1月1日开始，每2小时划一根，所以会出现部分k线不在交易时间内的情况。</p>
<p>2.天勤/快期的k线和其它软件的不一样，其它软件的k线也有区别，没有谁对谁错。可以参考这个文章：</p>
<p>为什么天勤（快期）的k线与其它软件的不一样 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/468139849" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/468139849</a></p>
<p>3.计算的指标不一样，除了k线（数据）的 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">80c35896a83153fe310af964ad21a184</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21593</link>
				<pubDate>Tue, 24 May 2022 01:24:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>if api.is_changing(klines.iloc[-1], &#8220;datetime&#8221;): </p>
<p>这句的意思是当k线时间更新后才执行，如果1根k线10秒，那就是10秒更新1次</p>
<p>如果想每个tick更新，可以订阅quote，或者改成if api.is_changing(klines.iloc[-1])</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">bb0524924b594e2c28cbd16f7a958c23</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21578</link>
				<pubDate>Mon, 23 May 2022 01:25:55 +0800</pubDate>

									<content:encoded><![CDATA[<p>11天勤insert_order平仓（平今平昨字段的确定） &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/484745920" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/484745920</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">25ddcce9018d8ef315ca09678ede5da7</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21577</link>
				<pubDate>Mon, 23 May 2022 01:13:22 +0800</pubDate>

									<content:encoded><![CDATA[<p>可参考天勤文档：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ed8747ff38bc375fb88361aacadabb93</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21575</link>
				<pubDate>Mon, 23 May 2022 01:05:43 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以，关于主力合约换月可以参考:</p>
<p>12天勤主力合约换月/回测 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/486538059" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/486538059</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ac767dfe026cb36406a60381eb0233c4</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21536</link>
				<pubDate>Mon, 16 May 2022 01:00:43 +0800</pubDate>

									<content:encoded><![CDATA[<p>主动买卖的信息是无法获取的，</p>
<p>7.期货软件中红红绿绿的&#8221;多开，空开，空平，多平，多换，空换，双开，双平，换手&#8221;是什么意思? &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/479742691" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/479742691</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">907863602abef277f57c053cc9b04ed6</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21526</link>
				<pubDate>Fri, 13 May 2022 02:04:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.前者（200根）</p>
<p>为了避免数据不够，无法计算，可以加个判断</p>
<p>            api.wait_update()<br />
            if api.is_changing(quote):<br />
                # 如果最新的几根k线有nan，则跳过本次计算<br />
                if any(np.isnan(klines.close.il [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">27781888a9a239c527534d291a85c055</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21519</link>
				<pubDate>Fri, 13 May 2022 01:49:23 +0800</pubDate>

									<content:encoded><![CDATA[<p>支持的</p>
<p>在天勤量化中，用 insert_order 函数开仓的字段为‘OPEN’；如果用户想用 insert_order 函数平仓，需要明确平仓字段为‘CLOSE’还是‘CLOSETODAY’(上期所和能源所分平今/平昨, 平今用&#8221;CLOSETODAY&#8221;, 平昨用&#8221;CLOSE&#8221;; 其他交易所直接用&#8221;CLOSE&#8221; 按照交易所的规则平仓)。</p>
<p>可以参考这一篇文章，https://zhuanlan.zhihu.com/p/484745920</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1eb81c92a10efc7996330e0739c75f6d</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21491</link>
				<pubDate>Fri, 06 May 2022 08:54:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>用天勤的快期账户登录后，可以在快期专业版（快期模拟）上看到同步信息。</p>
<p>模拟账户的同步关系可以参考这个文章：</p>
<p>2.天勤/快期模拟账号关系 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/479189264" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/479189264</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1dae96dfc34f41185f8a99750d6c2add</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21348</link>
				<pubDate>Wed, 06 Apr 2022 00:58:22 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤用主力回测可以参考这个文章</p>
<p>12天勤主力合约换月/回测 &#8211; A BC的文章 &#8211; 知乎 <a href="https://zhuanlan.zhihu.com/p/486538059" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/486538059</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2a4e584a98866dfe2c5100348d7c6215</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21347</link>
				<pubDate>Wed, 06 Apr 2022 00:54:29 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤文档搜索：</p>
<p>query_quotes</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">935ca5e9510c8ad65ec287180f1dada6</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21344</link>
				<pubDate>Wed, 06 Apr 2022 00:52:17 +0800</pubDate>

									<content:encoded><![CDATA[<p>long_avg.iloc[-2]指的是 long_avg 的倒数第二行，你需要明确  long_avg 是什么</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3821a3f80992a3d0cd400645af343007</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21343</link>
				<pubDate>Wed, 06 Apr 2022 00:50:09 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.你发的代码暴露账号密码了，建议删除</p>
<p>2.下单不能直接用‘KQ.m@CFFEX.IF’</p>
<p>可以先用以下程序获取主力代码的具体合约名称，之后再下单</p>
<p>详情可参考：</p>
<p>12天勤主力合约换月/回测 – A BC的文章 – 知乎 <a href="https://zhuanlan.zhihu.com/p/486538059" rel="nofollow ugc">https://zhuanlan.zhihu.com/p/486538059</a></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ecd3f6f6cd4b7450c468697dec4d7858</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21339</link>
				<pubDate>Wed, 06 Apr 2022 00:29:39 +0800</pubDate>

									<content:encoded><![CDATA[<p>想用主力合约回测可以参考这个文章</p>
<p>12天勤主力合约换月/回测 &#8211; A BC的文章 &#8211; 知乎</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c557bb7470d603b69a4d4a6c20d85281</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21338</link>
				<pubDate>Wed, 06 Apr 2022 00:28:28 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.你暴露账号密码了，建议你把这个删了</p>
<p>2.</p>
<p>from tqsdk import tafunc</p>
<p>tafunc.time_to_str(klines.datetime.iloc[-1])</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">cc70c4a102796dac083cce90de7b1df9</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21216</link>
				<pubDate>Tue, 15 Mar 2022 06:29:23 +0800</pubDate>

									<content:encoded><![CDATA[<p>关于多空开平的计算，可以参考这篇文章：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2c74d09902b67c345edbd76766ecb4b7</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21127</link>
				<pubDate>Tue, 01 Mar 2022 01:59:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>可参考天勤文档：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2e37fd3a7f1c63680d26eb67ba9dcae6</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21126</link>
				<pubDate>Tue, 01 Mar 2022 01:58:04 +0800</pubDate>

									<content:encoded><![CDATA[<p>symb=&#039;KQ.m@SHFE.rb&#039;<br />
quote = api.get_quote(symb)<br />
klines = api.get_kline_serial(quote.underlying_symbol,duration_seconds=10)<br />
[/apcode]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a73caeb6cce2b5615fcd0ee482a813dd</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=21054</link>
				<pubDate>Thu, 24 Feb 2022 02:03:31 +0800</pubDate>

									<content:encoded><![CDATA[<p>为什么天勤的k线和其它软件的k线不一样，可以参考这篇文章</p>
<p>五.为什么天勤（快期）的k线与其它软件的不一样 &#8211; A BC的文章 &#8211; 知乎</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">85400009d80691711124df46a8bb2d62</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=20984</link>
				<pubDate>Tue, 15 Feb 2022 08:09:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以使用wait_update()函数中的deadline参数，或者直接判断时间到14：59分就退出</p>
<p>可以参考我的知乎文章：https://zhuanlan.zhihu.com/p/467616302</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6a5a7839befd2eb1c2b166c50886a549</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=19845</link>
				<pubDate>Tue, 09 Nov 2021 06:44:43 +0800</pubDate>

									<content:encoded><![CDATA[<p>klines = api.get_kline_serial(&#8216;DCE.m2201&#8217;, duration_seconds = 60*60*24, data_length=20)<br />
klines190 = klines[klines[&#8216;id&#8217;]==190]<br />
print(klines190[&#8216;close&#8217;])</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b5d7e2a417e1766cd4887797764555cb</guid>
				<title>591221824 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=19380</link>
				<pubDate>Tue, 26 Oct 2021 00:50:14 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤文档是：https://doc.shinnytech.com/tqsdk/latest/usage/index.html</p>
<p>天勤的量化交流群是：619870862</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>