<?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>信易科技用户论坛| 赞群 彭 | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/mylovepzq/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/mylovepzq/activity/feed/" rel="self" type="application/rss+xml" />
	<description>赞群 彭的动态信息。</description>
	<lastBuildDate>Fri, 03 Apr 2026 22:20:39 +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">03b6d7480b35b5ddb936d2412cd08372</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8482</link>
				<pubDate>Tue, 21 Jan 2020 12:23:21 +0800</pubDate>

									<content:encoded><![CDATA[<p>包括当前k线，和前面十根k线。求它们所有的最高值，像通达信里面就是这样hhv(c,10),量化该怎么算出来</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d3b18355ea5aaa28a60d753227ffedfd</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8156</link>
				<pubDate>Mon, 30 Dec 2019 08:22:36 +0800</pubDate>

									<content:encoded><![CDATA[<p>我知道平台的数据和其它平台的数据为什么会有不同了，就是因为，其它平台单独做了一分钟和5分钟的数据。<br />
我做过多年大型数据库开发，这个实现起来不难。<br />
每分钟当秒到00时，读取所有主力合约的结算价，写入分钟数据库。<br />
每五分钟再读一次，再写入5分钟数据库<br />
然后，取数据时，加一个参数，<br />
klines = api.get_kline_serial(&#8220;CFFEX.IF2003&#8221;, 5*60，周期=s/m/5m)</p>
<p>帮帮忙了，不然大周期的均线不准，没办法实盘。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">393380983d8825067d5544eb07e9734c</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8129</link>
				<pubDate>Fri, 27 Dec 2019 16:58:04 +0800</pubDate>

									<content:encoded><![CDATA[<p>计算一天的20日平均线，用这个方法计算得对。</p>
<p>klines = api.get_kline_serial(“SHFE.ni2003”, 24*60*60)<br />
ma = sum(klines.close.iloc[-20:])/20</p>
<p>要计算2小时呢</p>
<p>ni2003一天开盘8小时。要计算2小时怎么写。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e22518c85475759ec9d913e783f29e90</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8128</link>
				<pubDate>Fri, 27 Dec 2019 16:30:44 +0800</pubDate>

									<content:encoded><![CDATA[<p>我要计算60分钟周期的20日平均收盘价</p>
<p>klines = api.get_kline_serial(&#8220;SHFE.ni2003&#8221;, 60*60)<br />
ma = sum(klines.close.iloc[-20:])/20<br />
print(&#8220;最新价&#8221;, klines.close.iloc[-1], &#8220;买价&#8221;, ma)<br />
用的这个代码，显示结果111676 但是其它所有平台，通达信，文华，金字塔，全是111741左右，因该是我算法不对， <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/6671d3bbed7069e64f656c84033352a4e04afa5e_1130.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">dbefcecbf1ad883f398a902978bfda80</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8127</link>
				<pubDate>Fri, 27 Dec 2019 12:05:48 +0800</pubDate>

									<content:encoded><![CDATA[<p>#!/usr/bin/env python<br />
# -*- coding: utf-8 -*-<br />
__author__ = &#8216;chengzhi&#8217;</p>
<p>from tqsdk import TqApi, TqAccount</p>
<p>&#8221;&#8217;<br />
如果当前价格大于5分钟K线的MA20则开多仓<br />
如果小于则平仓<br />
&#8221;&#8217;<br />
api = TqApi(TqAccount(&#8220;simnow&#8221;, &#8220;157605&#8221;, &#8220;pzqftvbs [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">edaf293dcbf09d39e36861248217ba01</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8126</link>
				<pubDate>Fri, 27 Dec 2019 11:29:18 +0800</pubDate>

									<content:encoded><![CDATA[<p>#!/usr/bin/env python<br />
# -*- coding: utf-8 -*-<br />
__author__ = &#8216;chengzhi&#8217;</p>
<p>from tqsdk import TqApi, TqAccount</p>
<p>&#8221;&#8217;<br />
如果当前价格大于5分钟K线的MA20则开多仓<br />
如果小于则平仓<br />
&#8221;&#8217;<br />
api = TqApi()<br />
# 获得 m1909 10秒K线的引用<br />
klines = api.get_kline_seri [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a29caf13df5d0ff3b751be285ffd6e7f</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8125</link>
				<pubDate>Fri, 27 Dec 2019 10:50:51 +0800</pubDate>

									<content:encoded><![CDATA[<p>from tqsdk import TqApi, TqSim, tafunc</p>
<p>api = TqApi(TqSim())<br />
klines = api.get_kline_serial(&#8220;SHFE.rb2005&#8221;, 2*60 * 60) #2小时线<br />
while<br />
crossup = tafunc.crossup(最新价,tafunc.ma(klines.close, 20))<br />
order = api.insert_ [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a72ff227a2e8df225700b87b47f58413</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8120</link>
				<pubDate>Fri, 27 Dec 2019 06:21:01 +0800</pubDate>

									<content:encoded><![CDATA[<p>如题所示，我申请改为cpt通道</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a0469f6e86a3f5e04128bfe3bce6accc</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8116</link>
				<pubDate>Fri, 27 Dec 2019 04:53:42 +0800</pubDate>

									<content:encoded><![CDATA[<p>from tqsdk import TqApi, TqSim, tafunc</p>
<p>api = TqApi(TqSim())<br />
klines = api.get_kline_serial(&#8220;SHFE.rb2005&#8221;, 24 * 60 * 60)<br />
crossup = tafunc.crossup(klines.close.iloc[-1], tafunc.ma(klines.close, [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">bda70bbcc932f8bfb8334ef90e785b87</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8114</link>
				<pubDate>Fri, 27 Dec 2019 03:37:37 +0800</pubDate>

									<content:encoded><![CDATA[<p>用金字塔的朋友说要报备，我也不会。问下大家</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b10acf98801dc9f85d43346f3edc332f</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8110</link>
				<pubDate>Thu, 26 Dec 2019 14:11:36 +0800</pubDate>

									<content:encoded><![CDATA[<p>螺纹2005合约，当前其它所有平台60分终周期的20日移动平均线值为3512.25<br />
我ma函数计算出来是3511.35<br />
是哪里写错了，谢谢 <img loading="lazy" src="https://www.shinnytech.com/wp-content/uploads/anspress-uploads/7c85e3492e7487563d9e1686b1ca8450e78732f0_1130.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">47e0e9ba5540957558427fda936e3832</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8106</link>
				<pubDate>Thu, 26 Dec 2019 10:21:14 +0800</pubDate>

									<content:encoded><![CDATA[<p>买 入成功后，读取持仓的价格，然后设置亏10个点就止损该怎么写。</p>
<p>然后止损是不是关了程序就无法运行。再从文华财经等工具上再设置止损一次吗</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e9f4976325b88a69347b4896da33dfda</guid>
				<title>赞群 彭 提了一个新问题 问题</title>
				<link>https://www.shinnytech.com/?p=8099</link>
				<pubDate>Thu, 26 Dec 2019 07:23:16 +0800</pubDate>

									<content:encoded><![CDATA[<p>比如SHFE.rb2005 螺纹，60分钟线，价格一突破20日均线就马上买入一手，并且设置5个点的止损，</p>
<p>该怎么写代码。谢谢</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>