<?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>信易科技用户论坛| macro sun | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/ms68/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/ms68/activity/feed/" rel="self" type="application/rss+xml" />
	<description>macro sun的动态信息。</description>
	<lastBuildDate>Mon, 27 Apr 2026 09:01:20 +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">38727076e0c94c4dac2cb597c1336b23</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=21267</link>
				<pubDate>Tue, 22 Mar 2022 13:49:12 +0800</pubDate>

									<content:encoded><![CDATA[<p>这样的下单指令：<br />
B1 = api.insert_order(symbol=SYMBOL1, direction=&#8221;BUY&#8221;, offset=&#8221;OPEN&#8221;,limit_price=Ask1,  volume=lots, advanced=&#8221;FAK&#8221;)<br />
运行中出现这样的成效回报：</p>
<p>2022-03-22 21:31:41 &#8211; INFO &#8211; 通知 058972: 下单失败,已撤单报单已提交,委托,SHFE.au2206,39 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b9f56e7b30818fe674035db5593fbfbd</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=16012</link>
				<pubDate>Thu, 24 Jun 2021 15:14:07 +0800</pubDate>

									<content:encoded><![CDATA[<p>程序中的指令：</p>
<p>…………<br />
B1 = api.insert_order(symbol=SYMBOL1, direction=&#8221;BUY&#8221;, offset=&#8221;OPEN&#8221;,limit_price=Ask1, volume=１, advanced=&#8221;FAK&#8221;)</p>
<p>…………</p>
<p>当运行中出现以下提示：</p>
<p>2021-06-24 23:06:53,727 &#8211; INFO &#8211; 通知: 下单失败,已撤单报单已提交,委托,SHFE.sn210 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">489a4be0a8f7b232f99bba2967e132a0</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=12617</link>
				<pubDate>Fri, 04 Sep 2020 02:44:52 +0800</pubDate>

									<content:encoded><![CDATA[<p>实盘交易中出以下大段提示，之后自己以正常了，有问题吗？</p>
<p>Task was destroyed but it is pending!<br />
task:<br />
Task was destroyed but it is pending!<br />
task:<br />
Exception ignored in:<br />
Traceback (most recent call last):<br />
File &#8220;C:Python37libsite-package [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b5ae0c1fdeac8ffcb7e7e1dc26ffa115</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=12081</link>
				<pubDate>Mon, 10 Aug 2020 10:08:28 +0800</pubDate>

									<content:encoded><![CDATA[<p>使用1.8.３版本，测试运行中的错误信息：</p>
<p>Traceback (most recent call last):<br />
File &#8220;c:/TianQin/strategies/AB振埋单Y.py&#8221;, line 572, in<br />
B2 = api.insert_order(symbol=SYMBOL1, direction=&#8221;SELL&#8221;, offset=&#8221;CLOSETODAY&#8221;,limit_price=Bid1, [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e89495534eb8e3587ef6282ab47c3081</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=12056</link>
				<pubDate>Sun, 09 Aug 2020 12:29:00 +0800</pubDate>

									<content:encoded><![CDATA[<p>错误信息：</p>
<p>Traceback (most recent call last):<br />
File &#8220;c:/TianQin/strategies/AB振埋单Y.py&#8221;, line 572, in<br />
B2 = api.insert_order(symbol=SYMBOL1, direction=&#8221;SELL&#8221;, offset=&#8221;CLOSETODAY&#8221;,limit_price=Bid1, volume=lots, ad [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">92bd58c62e0b4f754ab40b0faa9f6a43</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11492</link>
				<pubDate>Tue, 07 Jul 2020 09:23:48 +0800</pubDate>

									<content:encoded><![CDATA[<p>请教：同时运行两个策略，分别是独立的*.py，操作不同合约，但接入同一个期货账户，可以运行吗？会出什么问题吗？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">50ee3b1562717ceb70dd3e6de5bec60e</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=11418</link>
				<pubDate>Thu, 02 Jul 2020 04:53:13 +0800</pubDate>

									<content:encoded><![CDATA[<p>运行时不打印成交信息可以吗？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">096db6f68d0aa1e8846030c1b595f7c5</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=10539</link>
				<pubDate>Wed, 20 May 2020 00:11:40 +0800</pubDate>

									<content:encoded><![CDATA[<p>代码：<br />
# 获得 fu2007 的持仓引用，当持仓有变化时 position 中的字段会对应更新<br />
position = api.get_position(SYMBOL1)</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;<br />
while True:<br />
&#8230;&#8230;&#8230;&#8230;..<br />
# 空仓均价<br />
S1cj = position.open_price_short</p>
<p>tqsdk连续运行，第一天连续运行没问题。第二天取就不到开仓均价了， [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a347a82022764cad78cb651a088aa297</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8765</link>
				<pubDate>Wed, 26 Feb 2020 04:49:50 +0800</pubDate>

									<content:encoded><![CDATA[<p>现在ＴＱＳＤＫ　在Visual Studio Code　不能显示Ｋ线图，只有图标。</p>
<p>如何才能在Visual Studio Code　显示Ｋ线图？</p>
<p>请指教</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">4bd168a31b1eafd765bd56e1fb3d323a</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8741</link>
				<pubDate>Tue, 25 Feb 2020 03:42:42 +0800</pubDate>

									<content:encoded><![CDATA[<p>１、在ＳＤＫ文档中说明：limit_price (float): [可选]下单价格, 默认市价单 (上期所、原油和中金所不支持市价单, 需填写此参数值) 。那么如果这样下单会什么结果？报错？</p>
<p>api = TqApi()</p>
<p>order = api.insert_order(symbol=&#8221;SHFE.ni2005&#8243;, direction [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e4c6768ccf442491dd37e355b0890cce</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8740</link>
				<pubDate>Tue, 25 Feb 2020 03:33:05 +0800</pubDate>

									<content:encoded><![CDATA[<p>１、在ＳＤＫ文档中说明：limit_price (float): [可选]下单价格, 默认市价单 (上期所、原油和中金所不支持市价单, 需填写此参数值)<br />
那么如果这样下单会什么结果？报错？<br />
api = TqApi()<br />
order = api.insert_order(symbol=&#8221;SHF [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7e1072863f553de912fd80a406074fe9</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8449</link>
				<pubDate>Fri, 17 Jan 2020 13:49:34 +0800</pubDate>

									<content:encoded><![CDATA[<p>请问现在是在vscode中不支持Ｋ线图了，还是我的版本或使用有问题？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">62b95eec263015d9c5945546ea27b715</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8432</link>
				<pubDate>Thu, 16 Jan 2020 14:31:53 +0800</pubDate>

									<content:encoded><![CDATA[<p> 代码：</p>
<p>　　　# 获取SYMBOL1合约的1秒K线<br />
　　klines = api.get_kline_serial(“SHFE.ni2004”, 1)<br />
………</p>
<p>       LL = tafunc.llv(klines.low, N)  # 求Ｎ个周期最高价, 即Ｎ周期高点(包含当前k线)<br />
       print(LL)</p>
<p>执行后出来结果是：<br />
Name: low, Length: [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">728de3ea3bf2d8aa33f68803f3e1b790</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8416</link>
				<pubDate>Wed, 15 Jan 2020 15:01:07 +0800</pubDate>

									<content:encoded><![CDATA[<p>代码：</p>
<p>from tqsdk import TqApi,TqAccount</p>
<p>……<br />
# 天勤SDK使用。创建api实例，设置web_gui=True生成图形化界面<br />
#api = TqApi(web_gui=True)</p>
<p>api = TqApi(TqAccount(“H徽商期货”, “875223”, “6567345”, front_broker=”8899″, front_url=”tcp:// [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">5284fc7144038477e2c6532cd5630fd1</guid>
				<title>macro sun的资料已被更新</title>
				<link>https://forum.shinnytech.com/%e5%8a%a8%e6%80%81/p/2116/</link>
				<pubDate>Mon, 13 Jan 2020 03:31:44 +0800</pubDate>

				
									<slash:comments>0</slash:comments>
				
							</item>
					<item>
				<guid isPermaLink="false">9642ed201f51ef189232e89087431d95</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8330</link>
				<pubDate>Mon, 13 Jan 2020 02:33:59 +0800</pubDate>

									<content:encoded><![CDATA[<p>代码：</p>
<p>&#8230;&#8230;<br />
# 天勤SDK使用。创建api实例，设置web_gui=True生成图形化界面<br />
#api = TqApi(web_gui=True)</p>
<p>api = TqApi(TqAccount(&#8220;H徽商期货&#8221;, &#8220;875223&#8221;, &#8220;6567345&#8221;, front_broker=&#8221;8899&#8243;, front_url=&#8221;tcp://27.115.12.1:46205&#8243;))<br />
&#8230;&#8230;</p>
<p>为实盘帐户 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">78bf56ded6b936e25c3b65ece0ed9587</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8276</link>
				<pubDate>Thu, 09 Jan 2020 03:51:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>代码：</p>
<p>&#8230;&#8230;&#8230;<br />
# 获取SYMBOL1合约的10秒K线<br />
klines = api.get_kline_serial(SYMBOL1, 1)<br />
&#8230;&#8230;&#8230;<br />
# 技术指标 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">729d153af01a7559090d89635dd90b1b</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8270</link>
				<pubDate>Wed, 08 Jan 2020 10:54:20 +0800</pubDate>

									<content:encoded><![CDATA[<p>请教完成TQSDK升级后，为何策略及回测都不能运行了？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0545c9f21cb7a1b6f65a29dde8d94abc</guid>
				<title>macro sun 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8168</link>
				<pubDate>Tue, 31 Dec 2019 05:55:42 +0800</pubDate>

									<content:encoded><![CDATA[<p>如何撤销全部委托单，或如何取得现有所有委托单号，再用api.cancel_order()进行撤单？</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>