<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — [Solved] Trade Percent Equity Issue]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/4267/" />
	<updated>2013-06-21T17:30:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/4267/solved-trade-percent-equity-issue/</id>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20660/#p20660" />
			<content type="html"><![CDATA[<p>Great title change. I appreciate everyone&#039;s quick response!</p>]]></content>
			<author>
				<name><![CDATA[ultplyr]]></name>
				<uri>https://forexsb.com/forum/user/6604/</uri>
			</author>
			<updated>2013-06-21T17:30:33Z</updated>
			<id>https://forexsb.com/forum/post/20660/#p20660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20621/#p20621" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><div class="quotebox"><cite>ultplyr wrote:</cite><blockquote><p> Is there a way to close out this post on change the title.</p></blockquote></div><p>I changed the the title, are you happy with it? We can put whatever you want there <img src="https://forexsb.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Respect for insisting clearing out the &quot;bug&quot; word <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>I do not think we are finding a lot of &#039;bugs&#039; for many months.... my impression is that the code is pretty tight. Three years or so&nbsp; ago perhaps there were some errors, not many recently.</p>]]></content>
			<author>
				<name><![CDATA[Blaiserboy]]></name>
				<uri>https://forexsb.com/forum/user/2491/</uri>
			</author>
			<updated>2013-06-19T23:39:52Z</updated>
			<id>https://forexsb.com/forum/post/20621/#p20621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20618/#p20618" />
			<content type="html"><![CDATA[<p>You cannot set trade settings or symbol settings. They all comes from the broker. <br />FST even reads most important param at every tick.</p><p>Leverage is read at connection time. It can be reread when you press Market info or Account Info buttons.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2013-06-19T23:03:57Z</updated>
			<id>https://forexsb.com/forum/post/20618/#p20618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20617/#p20617" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ultplyr wrote:</cite><blockquote><p> Is there a way to close out this post on change the title.</p></blockquote></div><p>I changed the the title, are you happy with it? We can put whatever you want there <img src="https://forexsb.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Respect for insisting clearing out the &quot;bug&quot; word <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2013-06-19T22:14:05Z</updated>
			<id>https://forexsb.com/forum/post/20617/#p20617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20616/#p20616" />
			<content type="html"><![CDATA[<p>I rebooted MT4 and FST and the leverage was picked up correctly.&nbsp; I must have had the leverage changed on Oanda at some point while migrating strategies. Is there a way to close out this post on change the title.</p>]]></content>
			<author>
				<name><![CDATA[ultplyr]]></name>
				<uri>https://forexsb.com/forum/user/6604/</uri>
			</author>
			<updated>2013-06-19T21:56:54Z</updated>
			<id>https://forexsb.com/forum/post/20616/#p20616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20615/#p20615" />
			<content type="html"><![CDATA[<p>Thank You Popov! I should be more cautious of saying bug in my post as the code has been very stable for me. It is always me not understanding something.</p><p>The leverage was the key. See my account info below, FST -&gt; 1:50, Oanda -&gt;1:20. There is a disconnect. How can I change the leverage so FST knows it is at 1:20? I assumed it would just pick it up from Oanda/MT4. I will try to reset some things to see if I can get the to leverages matched up.</p><p>On another note: can I change the title of the original post because it isn&#039;t a bug?</p><p>FST<br /><a href="http://postimg.org/image/v0am8zfdh/"><span class="postimg"><img src="http://s18.postimg.org/v0am8zfdh/leverage.jpg" alt="http://s18.postimg.org/v0am8zfdh/leverage.jpg" /></span></a></p><br /><p>OANDA<br /><a href="http://postimg.org/image/4dit6rtp5/"><span class="postimg"><img src="http://s12.postimg.org/4dit6rtp5/leverage_Oanda.jpg" alt="http://s12.postimg.org/4dit6rtp5/leverage_Oanda.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[ultplyr]]></name>
				<uri>https://forexsb.com/forum/user/6604/</uri>
			</author>
			<updated>2013-06-19T21:48:25Z</updated>
			<id>https://forexsb.com/forum/post/20615/#p20615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20614/#p20614" />
			<content type="html"><![CDATA[<p>The formula is:</p><div class="codebox"><pre><code>        /// &lt;summary&gt;
        ///     Calculates the trading size in normalized lots
        /// &lt;/summary&gt;
        private double TradingSize(double size)
        {
            if (Data.Strategy.UseAccountPercentEntry)
                size = (size/100)*Data.AccountEquity/Data.InstrProperties.MarginRequired;

            size = NormalizeEntrySize(size);

            return size;
        }</code></pre></div><p>You can see MarginRequired in Market Info:</p><p><a href="http://postimg.org/image/cvlgdlnut/"><span class="postimg"><img src="http://s2.postimg.org/cvlgdlnut/screenshot_16.jpg" alt="http://s2.postimg.org/cvlgdlnut/screenshot_16.jpg" /></span></a></p><p> FST opens percent of maximum possible entry amount. In you case 40%.<br />MarginRequired shows how much is required for opening of 1 lot.</p><p>Are you sure the leverage is 1/20. Please post all Market info and Account info to check the calculations.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2013-06-19T21:02:13Z</updated>
			<id>https://forexsb.com/forum/post/20614/#p20614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Solved] Trade Percent Equity Issue]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/20610/#p20610" />
			<content type="html"><![CDATA[<p>I just started a new strategy and realized that the trade size was not correct for the strategy properties. The trade size was set to 40% account equity. <br />The beginning equity was $3500.<br />Leverage is set to 1/20.<br />EUR/USD price = 1.33536</p><p>Trade size in USD should have been:<br />equity*ratio(leverage)*Percent<br />3500*20*.4 = $28,000<br />Converted to EUR trade size: <br />USD trade size * (1/EURUSD Price)<br />28000*(1/1.3353) = 20,969 EUR (or 20,000 rounded down to lots)</p><br /><p>Actual trade size traded: 52000 EUR<br />which comes out to: 52000 * (EURUSD price) 1.3353 = $69,435 which is 100% equity traded at 1/20 leverage (3500*20=$70,000). </p><p>Any help on what might be wrong? (and yes I know the dangers of high stop/loss and low take profit, and high leverage :-). Everything you usually do not want in a strategy )</p><p>Here are screen shots from the trade and strategy.</p><p>FST Version:</p><p><a href="http://postimg.org/image/f5ikzfjy5/"><span class="postimg"><img src="http://s14.postimg.org/f5ikzfjy5/version.jpg" alt="http://s14.postimg.org/f5ikzfjy5/version.jpg" /></span></a></p><p>FST Transaction:</p><p><a href="http://postimg.org/image/mo7vnz4lt/"><span class="postimg"><img src="http://s24.postimg.org/mo7vnz4lt/transaction.jpg" alt="http://s24.postimg.org/mo7vnz4lt/transaction.jpg" /></span></a></p><p>FST Settings:</p><br /><p><a href="http://postimg.org/image/3p0jmehzv/"><span class="postimg"><img src="http://s17.postimg.org/3p0jmehzv/settings.jpg" alt="http://s17.postimg.org/3p0jmehzv/settings.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[ultplyr]]></name>
				<uri>https://forexsb.com/forum/user/6604/</uri>
			</author>
			<updated>2013-06-19T19:24:41Z</updated>
			<id>https://forexsb.com/forum/post/20610/#p20610</id>
		</entry>
</feed>
