﻿<?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=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%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=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%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=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;action=history"/>
		<updated>2026-04-04T06:34:16Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>http://wiki.hs633.com:8080/index.php?title=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2225&amp;oldid=prev</id>
		<title>2013年6月20日 (四) 02:20 Ly</title>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2225&amp;oldid=prev"/>
				<updated>2013-06-20T02:20:25Z</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:20的版本&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; //时间到14点55分&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; //时间到14点55分&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 :=TIME&amp;gt;=145500;&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 :=TIME&amp;gt;=145500;&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=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2223&amp;oldid=prev</id>
		<title>Ly: 以“    //-------智能交易公式--------------     //该模型仅仅用来示范如何根据指标编写简单的模型     //用户需要根据自己交易经验，...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="http://wiki.hs633.com:8080/index.php?title=%E6%97%B6%E9%97%B4%E5%87%BD%E6%95%B0_%E7%A4%BA%E4%BE%8B%E6%A8%A1%E5%9E%8B&amp;diff=2223&amp;oldid=prev"/>
				<updated>2013-06-20T02:07:17Z</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;
    {9点05分之后14点55分之前的时间段内出现5周期线金叉10周期线} &lt;br /&gt;
    bEnterLong :=TIME&amp;gt;=090500 and TIME&amp;lt;145500 and CROSS(MA5,MA10); &lt;br /&gt;
    //时间到14点55分&lt;br /&gt;
    bExitLong :=TIME&amp;gt;=145500; &amp;lt;br&amp;gt;&lt;br /&gt;
    //9点05分之后14点55分之前的时间段内出现5周期线死叉10周期线	&lt;br /&gt;
    bEnterShort :=TIME&amp;gt;=090500 and TIME&amp;lt;145500 and CROSS(MA10,MA5);&lt;br /&gt;
    //时间到14点55分&lt;br /&gt;
    bExitShort :=TIME&amp;gt;=145500;&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>