<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	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>阿狼的MT4编程外汇博客 &#187; MarketInfo</title>
	<atom:link href="http://www.dqyau.net/tag/marketinfo/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dqyau.net</link>
	<description>专注于MT4编程技术的外汇博客</description>
	<lastBuildDate>Wed, 01 Sep 2010 02:05:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>瑞士军刀：MarketInfo函数</title>
		<link>http://www.dqyau.net/332.html</link>
		<comments>http://www.dqyau.net/332.html#comments</comments>
		<pubDate>Mon, 09 Feb 2009 03:31:40 +0000</pubDate>
		<dc:creator>阿狼</dc:creator>
				<category><![CDATA[EA]]></category>
		<category><![CDATA[MT4编程]]></category>
		<category><![CDATA[指标]]></category>
		<category><![CDATA[MarketInfo]]></category>
		<category><![CDATA[MT4]]></category>

		<guid isPermaLink="false">http://www.dqyau.net/?p=332</guid>
		<description><![CDATA[MT4编程中，有几个函数非常重要，而MarketInfo就是其中的一个。
大家都知道，瑞士军刀以其功能繁多而著称于世，同样，MarketInfo在MT4编程中也担当着类似的角色。通过使用MarketInfo函数，可以获得很多非常有用的信息。我们先来看看MarketInfo函数的原型定义：

double MarketInfo&#40;string symbol, int type&#41;;

我们可以看到，MarketInfo有两个参数，第一个顾名思义，就是货币对名称，指我们希望获得信息的货币对名称；第二个是一个叫做type的int类型参数，这个 参数就是关键了。举个例子，假如我们想获取GBPUSD的点差，可以这样获取：

MarketInfo&#40;“GBPUSD”, MODE_SPREAD&#41;;

又如我们想确定某个货币对在MT4中是否允许被交易，可以这样写：

MarketInfo&#40;“NZDJPY”, MODE_TRADEALLOWED&#41;;

假如返回值是1，表示允许，返回0则表示禁止交易此货币对。
]]></description>
		<wfw:commentRss>http://www.dqyau.net/332.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
