<?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>信易科技用户论坛| uyesino | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/uyesino/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/uyesino/activity/feed/" rel="self" type="application/rss+xml" />
	<description>uyesino的动态信息。</description>
	<lastBuildDate>Fri, 17 Apr 2026 15:49:36 +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">43d0176c472da697e53b00be0ca7dba4</guid>
				<title>uyesino 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=19900</link>
				<pubDate>Thu, 18 Nov 2021 09:43:31 +0800</pubDate>

									<content:encoded><![CDATA[<p>正确写法：</p>
<p>for k,v in position.items():</p>
<p>print(v.pos_long)</p>
<p>不过即使这样，也不一定会打印0，</p>
<p>如果当天没有持仓、平仓，则position为空，不打印任何信息。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">5318b1e9479f247974f6fa1f80446ae7</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=19518</link>
				<pubDate>Wed, 27 Oct 2021 01:13:39 +0800</pubDate>

									<content:encoded><![CDATA[<p>因为wait_update是阻塞的，所以该用到deadline，但是用的过程发现问题。</p>
<p>while True:<br />
deadline = time.time() + 1<br />
api.wait_update(deadline=deadline)<br />
if is_changing(kline.iloc[-1], &#8216;datetime&#8217;)<br />
do_sth()</p>
<p>这段程序在夜盘早盘开市前启动，还未进入交易时间就不 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7cb210b70eb2a5eae1c9666ef111c0bc</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=19344</link>
				<pubDate>Mon, 25 Oct 2021 08:57:04 +0800</pubDate>

									<content:encoded><![CDATA[<p>今天获取日线周期的k线数据后打印出来，发现当天交易日的k线时间与实际不符，如取DCE.a2201，今天交易日应该为2021-10-25，但是k线最后一个datetime为1.635091e+18，tqsdk自带函数time_to_datetime转换为2021-10-24 23:56:40，实际应该为1.6350912e+18（2021-10-25 00:00:00）。</p>
<p>无论盘前（09:00之前）还是盘后（现在16:36） [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/11890f39bf503dd8bd0a1026bb9e4f6c5b700cc6_69.PNG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6a73c1e9d8819da938eb3a449d0883e7</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=17385</link>
				<pubDate>Mon, 13 Sep 2021 06:39:57 +0800</pubDate>

									<content:encoded><![CDATA[<p>这段时间测试，免费账号使用tqsdk模拟账户，或者simnow，之前也试过实盘账户。实时行情较之datetime.now()延时有2秒多，有些品种少些，有些品种多些。有些交易日少些，一天有几十次，最多有两三千次。极端6秒多(极少，但有)。好的时候quote.datetime比datetime.now晚200ms左右。</p>
<p>我用的云服务器，百度，阿里，腾讯，天翼，主机在广州，上海，内蒙的都有，基本情况差不多。配置主要是1C2G， [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7e42aefa8d20bd4a22924c706d762aa6</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=17089</link>
				<pubDate>Thu, 02 Sep 2021 06:51:52 +0800</pubDate>

									<content:encoded><![CDATA[<p>这几天收到的行情quote.datetime与本机datetime.now()差了1.5-2秒以上，基本上每一个wait_update后都是超时1.5秒的。</p>
<p>我看了这个帖子，理解两个时间是没对齐的，但是超过这么多应该是不正常的了吧。</p>
<p>（如何能测试行情服务器到本地的延时：https://www.shinnytech.com/question/15598/answer/15599/）</p>
<p>程序里一直有监测延时的逻辑，之前偶尔收 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">94607ab9efe8d921b398394519c21288</guid>
				<title>uyesino 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=15601</link>
				<pubDate>Wed, 28 Apr 2021 03:01:55 +0800</pubDate>

									<content:encoded><![CDATA[<p>在百度搜索一下，python给钉钉、企业微信发信，利用聊天机器人即可</p>
<p>我一直都用。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">237d4003ea348f02479b9535f15809c7</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=15362</link>
				<pubDate>Mon, 29 Mar 2021 07:43:33 +0800</pubDate>

									<content:encoded><![CDATA[<p>请教一下，如果当日发生多次开平仓，open_price_long、open_price_short是按照当日所有交易记录（包括已经平仓的）计算，还是只计算目前持仓的价格和仓位计算呢？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">be51c73ce12cbd73768b98c64fa6e219</guid>
				<title>uyesino 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=15106</link>
				<pubDate>Mon, 08 Feb 2021 13:28:07 +0800</pubDate>

									<content:encoded><![CDATA[<p>关闭程序，提前过春节！</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">fe64a51beeaed16e80a0e3e9c442e2af</guid>
				<title>uyesino 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=15105</link>
				<pubDate>Mon, 08 Feb 2021 13:26:22 +0800</pubDate>

									<content:encoded><![CDATA[<p>短时间修复不了了吗？</p>
<p>在外面呢，还得跑回家找电脑才改得了。看来以后还得将连接失败自动转去备用服务器连接。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">69ffc8ae5dacd3b78ea68f491e2580d5</guid>
				<title>uyesino 回答了 一个问题</title>
				<link>https://www.shinnytech.com/?p=15099</link>
				<pubDate>Mon, 08 Feb 2021 13:11:47 +0800</pubDate>

									<content:encoded><![CDATA[<p>俺的也一样，不行了，咋回事！</p>
<p>幸亏今天下午收市前手动平了仓。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">661e9ea07e38f5de64e76e41c8df6154</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=14445</link>
				<pubDate>Tue, 22 Dec 2020 14:22:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>在模拟交易中，以下程序打印行情时间及本机时间，开始相差几秒，后来突然正常了，datetime.now()突然由23秒退回到19秒，于是时间对上了。<br />
有谁遇到这么灵异的情况吗？<br />
                    if self.api.is_changing(self.quote, &#8216;last_price&#8217;):<br />
                        print(self.quote.datetime,&#8217;&#8212;- [&hellip;] <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/01fb6f73d26be1873a645bd7d6dd280ae6461e64_69.JPG" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6731dc9dc1e09dd4f76b5ff3e0c8b223</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=14275</link>
				<pubDate>Thu, 03 Dec 2020 11:52:15 +0800</pubDate>

									<content:encoded><![CDATA[<p>用快期模拟交易，au2102合约，大前天晚上从晚上11点，程序运行比较混乱，出现莫名其妙的1秒开仓1秒平仓的情况，连续开平了差不多1000次，直到收市。</p>
<p>以前没出现这种情况，稳定运行了一个多月，开平仓逻辑一直正常，查不出原因，不过昨天对网络延时进行检查，发现前天晚上也是差不多11点多开始就出现延时的情况（之前可能也有，只是没有关注到），用quote.datetime和datetime.now()比较，差不多1秒多的样子。 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d611588b218a35a0fd986f86ee35bb94</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=12492</link>
				<pubDate>Thu, 27 Aug 2020 09:20:51 +0800</pubDate>

									<content:encoded><![CDATA[<p>老师您好！</p>
<p>7月的时候用手机快期APP登录是可以监控tqsdk模拟交易的账户情况的，后来更新了APP新版本之后再登录，出现的账户就似乎是恢复初始的了（资金变为1000万，似乎），但是从tqsdk模拟交易打印出来的账户情况看这两个不一样了。</p>
<p>麻烦看一下这两个账户怎么能相通呢</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e614f675cd73a156535e831ed3fb5c0b</guid>
				<title>uyesino 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=10558</link>
				<pubDate>Wed, 20 May 2020 09:40:22 +0800</pubDate>

									<content:encoded><![CDATA[<p>按照k线的更新规则：</p>
<p>规则2: K线序列 (例如上面例子中的ka1, ka2) 总是按周期推进. 每根K线在创建时和结束时各更新一次</p>
<p>在刚创建时，最新这个k线的各个价格值（high=low=close）是一样的 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>