<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — MQL5 Last Deal Price]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/7191/" />
	<updated>2018-01-23T07:02:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/7191/mql5-last-deal-price/</id>
		<entry>
			<title type="html"><![CDATA[Re: MQL5 Last Deal Price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/48917/#p48917" />
			<content type="html"><![CDATA[<p>You can use the following code to print the current position:</p><div class="codebox"><pre><code>  if ( PositionSelect(_Symbol) ) {
      datetime time   = (datetime)PositionGetInteger(POSITION_TIME);
      double   price  = PositionGetDouble(POSITION_PRICE_OPEN);
      double   amount = PositionGetDouble(POSITION_VOLUME);
     
      Print(&quot;Time:&quot;, TimeToString(time), &quot;, Price: &quot;, DoubleToString(price),&quot;, Volume: &quot;, DoubleToString(amount));  
  }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-01-23T07:02:42Z</updated>
			<id>https://forexsb.com/forum/post/48917/#p48917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MQL5 Last Deal Price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/48913/#p48913" />
			<content type="html"><![CDATA[<p>Hello sir,</p><p>i wants to know that how can i get {last deal price} and {last deal volume} of&nbsp; particular symbol without using loop in MQL5</p><p>thanks in advance<br />Regards<br />Shailesh</p>]]></content>
			<author>
				<name><![CDATA[sbdavra]]></name>
				<uri>https://forexsb.com/forum/user/10316/</uri>
			</author>
			<updated>2018-01-23T05:01:17Z</updated>
			<id>https://forexsb.com/forum/post/48913/#p48913</id>
		</entry>
</feed>
