﻿<?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%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%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%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B"/>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E4%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;action=history"/>
		<updated>2026-04-04T11:41:06Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>http://wiki.hs633.com:8080/index.php?title=%E4%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2228&amp;oldid=prev</id>
		<title>2013年6月20日 (四) 02:22 Ly</title>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E4%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2228&amp;oldid=prev"/>
				<updated>2013-06-20T02:22:23Z</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:22的版本&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第13行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第13行：&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; //MA5上穿MA10&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; //MA5上穿MA10&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 :=CROSS(MA10,MA5);&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 :=CROSS(MA10,MA5);&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 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bExitShort &lt;/del&gt;then &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;BuyToCover&lt;/del&gt;;&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 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bExitLong &lt;/ins&gt;then &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sell&lt;/ins&gt;;&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 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bExitLong &lt;/del&gt;then &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sell&lt;/del&gt;;&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 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bExitShort &lt;/ins&gt;then &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BuyToCover&lt;/ins&gt;;&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%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2221&amp;oldid=prev</id>
		<title>Ly: 以“    //-------智能交易公式--------------     //该模型仅仅用来示范如何根据指标编写简单的模型     //用户需要根据自己交易经验，...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E4%BA%A4%E5%8F%89%E5%9E%8B_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2221&amp;oldid=prev"/>
				<updated>2013-06-20T02:05:11Z</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个周期收盘价的简单移动平均&lt;br /&gt;
    MA20:MA(C,20);//20个周期收盘价的简单移动平均&amp;lt;br&amp;gt;&lt;br /&gt;
    //MA10上穿MA20&lt;br /&gt;
    bEnterLong :=CROSS(MA10,MA20); {多头买入} &lt;br /&gt;
    //MA10上穿MA5&lt;br /&gt;
    bExitLong :=CROSS(MA5,MA10); {多头卖出}&amp;lt;br&amp;gt;&lt;br /&gt;
    //MA20上穿MA10	&lt;br /&gt;
    bEnterShort :=CROSS(MA20,MA10);&lt;br /&gt;
    //MA5上穿MA10&lt;br /&gt;
    bExitShort :=CROSS(MA10,MA5);&amp;lt;br&amp;gt;&lt;br /&gt;
    if bEnterLong then buy;&lt;br /&gt;
    if bExitShort then BuyToCover;&lt;br /&gt;
    if bEnterShort then SellShort;&lt;br /&gt;
    if bExitLong then sell;&lt;/div&gt;</summary>
		<author><name>Ly</name></author>	</entry>

	</feed>