<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Questions Swap and commission]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8212/" />
	<updated>2020-02-03T10:57:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8212/questions-swap-and-commission/</id>
		<entry>
			<title type="html"><![CDATA[Re: Questions Swap and commission]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/59098/#p59098" />
			<content type="html"><![CDATA[<p>Thank you for mentioning <strong>DEAL_COMMISSION</strong>, I&#039;ll take a look at it.</p><p>If you can propose an improvement, please post the code and I&#039;ll update the experts.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2020-02-03T10:57:12Z</updated>
			<id>https://forexsb.com/forum/post/59098/#p59098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Questions Swap and commission]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/59085/#p59085" />
			<content type="html"><![CDATA[<p>When I look at the code generated by the application for MT5, I think there are 2 problems in the calculation of position profit.<br />Profit = profit + commission + swap<br />1°) The swap has been forgotten in the calculation<br />2°) POSITION_COMMISSION is accepted by the compiler but the property will always return 0 at runtime.<br />The commission must be retrieved with the DEAL_COMMISSION property of the Deal class.<br />This point has been mentioned several times on the MQL5 website.</p><p>https://www.mql5.com/en/forum/331558</p>]]></content>
			<author>
				<name><![CDATA[crifalo]]></name>
				<uri>https://forexsb.com/forum/user/11809/</uri>
			</author>
			<updated>2020-02-02T18:03:00Z</updated>
			<id>https://forexsb.com/forum/post/59085/#p59085</id>
		</entry>
</feed>
