﻿<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.hs633.com:8080/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.hs633.com:8080/index.php?action=history&amp;feed=atom&amp;title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B</id>
		<title>价差型模型示例 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.hs633.com:8080/index.php?action=history&amp;feed=atom&amp;title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B"/>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B&amp;action=history"/>
		<updated>2026-04-04T06:52:14Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>http://wiki.hs633.com:8080/index.php?title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B&amp;diff=2226&amp;oldid=prev</id>
		<title>2013年6月20日 (四) 02:21 Ly</title>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B&amp;diff=2226&amp;oldid=prev"/>
				<updated>2013-06-20T02:21:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←上一版本&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2013年6月20日 (四) 02:21的版本&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第12行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第12行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; //收盘价与5周期均线的差值大于6&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; //收盘价与5周期均线的差值大于6&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; bExitShort :=(C-MA5)&amp;gt;6;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; bExitShort :=(C-MA5)&amp;gt;6;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bEnterLong then buy;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bEnterLong then buy;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//满足开多条件，开多仓&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bExitLong then sell;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bExitLong then sell;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//满足平多条件，平多仓&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bEnterShort then SellShort;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bEnterShort then SellShort;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//满足开空条件，开空仓&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bExitShort then BuyToCover;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; if bExitShort then BuyToCover;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//满足平空条件，平空仓&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ly</name></author>	</entry>

	<entry>
		<id>http://wiki.hs633.com:8080/index.php?title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B&amp;diff=2219&amp;oldid=prev</id>
		<title>Ly: 以“    //-------智能交易公式--------------     //该模型仅仅用来示范如何根据指标编写简单的模型     //用户需要根据自己交易经验，...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E4%BB%B7%E5%B7%AE%E5%9E%8B%E6%A8%A1%E5%9E%8B%E7%A4%BA%E4%BE%8B&amp;diff=2219&amp;oldid=prev"/>
				<updated>2013-06-20T02:02:55Z</updated>
		
		<summary type="html">&lt;p&gt;以“    //-------智能交易公式--------------     //该模型仅仅用来示范如何根据指标编写简单的模型     //用户需要根据自己交易经验，...”为内容创建页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;最新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;    //-------智能交易公式--------------&lt;br /&gt;
    //该模型仅仅用来示范如何根据指标编写简单的模型&lt;br /&gt;
    //用户需要根据自己交易经验，进行修改后再实际应用!!!&amp;lt;br&amp;gt;&lt;br /&gt;
    MA5:MA(C,5);//5个周期收盘价的简单移动平均&lt;br /&gt;
    MA10:MA(C,10);//10个周期收盘价的简单移动平均&amp;lt;br&amp;gt;&lt;br /&gt;
    //5周期均线上穿10周期均线或者收盘价与5周期均线的差值大于8&lt;br /&gt;
    bEnterLong :=CROSS(MA5,MA10) or (MA5-C)&amp;gt;8; {多头买入} &lt;br /&gt;
    //5周期均线与收盘价的差值大于6&lt;br /&gt;
    bExitLong :=(MA5-C)&amp;gt;6; {多头卖出}&amp;lt;br&amp;gt;&lt;br /&gt;
    //10周期均线上穿5周期均线或者收盘价与5周期均线的差值大于8&lt;br /&gt;
    bEnterShort :=CROSS(MA10,MA5) or (C-MA5)&amp;gt;8;&lt;br /&gt;
    //收盘价与5周期均线的差值大于6&lt;br /&gt;
    bExitShort :=(C-MA5)&amp;gt;6;&amp;lt;br&amp;gt;&lt;br /&gt;
    if bEnterLong then buy;&lt;br /&gt;
    if bExitLong then sell;&lt;br /&gt;
    if bEnterShort then SellShort;&lt;br /&gt;
    if bExitShort then BuyToCover;&lt;/div&gt;</summary>
		<author><name>Ly</name></author>	</entry>

	</feed>