<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — How can I apply compound interest to portfolios?]]></title>
		<link>https://forexsb.com/forum/topic/9378/how-can-i-apply-compound-interest-to-portfolios/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/9378/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How can I apply compound interest to portfolios?.]]></description>
		<lastBuildDate>Thu, 24 Oct 2024 11:08:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How can I apply compound interest to portfolios?]]></title>
			<link>https://forexsb.com/forum/post/81541/#p81541</link>
			<description><![CDATA[<p>I want to share a script I developed to modify the code of an automated trading strategies portfolio. The main goal of this script is to efficiently update certain aspects of multiple strategies without having to do it manually.</p><br /><p>Does exactly what this post says, just work in portfolio.</p>]]></description>
			<author><![CDATA[null@example.com (kitomc)]]></author>
			<pubDate>Thu, 24 Oct 2024 11:08:07 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/81541/#p81541</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I apply compound interest to portfolios?]]></title>
			<link>https://forexsb.com/forum/post/80906/#p80906</link>
			<description><![CDATA[<p>It is still a big question for me why there is no desire to add the % close to Lots as in Builder. I asked for this a long time ago. Maybe this is just a marketing strategy. Anyway, even with the Lots option only, the Experts Advisors Studio is fantastic. Thank you Mr Popov.</p>]]></description>
			<author><![CDATA[null@example.com (mentosan)]]></author>
			<pubDate>Sat, 17 Aug 2024 08:45:12 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80906/#p80906</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I apply compound interest to portfolios?]]></title>
			<link>https://forexsb.com/forum/post/80788/#p80788</link>
			<description><![CDATA[<p>For simplicity, I&#039;ll write you here the steps, so that you can apply them to MQL4 and MQL5 codes:</p><p><strong>For MQL5</strong></p><p>1) First step, put these 2 lines at the beginning, close to the global variables:</p><div class="codebox"><pre><code>double capitalToCompound = AccountInfoDouble(ACCOUNT_BALANCE);
         input bool      compounding            =      true; // Compounding</code></pre></div><p><span class="postimg"><img src="https://forexsb.com/forum/misc.php?action=pun_attachment&amp;item=5304" alt="Compounding effect - phase 1.png" /></span></p><br /><p>2) Second step, put these lines in OpenPosition function just before ManageOrderSend, and replace &quot;EntryAmount&quot; with &quot;amount&quot; variable in the ManageOrderSend function.</p><div class="codebox"><pre><code>double amount = Entry_Amount;
   if(compounding &amp;&amp; capitalToCompound &gt; 0) amount = Entry_Amount*(AccountInfoDouble(ACCOUNT_EQUITY)/capitalToCompound);
   amount = NormalizeDouble(amount,2);</code></pre></div><p><span class="postimg"><img src="https://forexsb.com/forum/misc.php?action=pun_attachment&amp;item=5307" alt="Compounding effect - phase 2.png" /></span></p><br /><p>--------------</p><p><strong>For MQL4</strong>, the procedure is similar; the first step is identical to the MQL5.<br />The second step is basically modifying the &quot;amount&quot; variable, here&#039;s the code:</p><div class="codebox"><pre><code>if(compounding &amp;&amp; capitalToCompound &gt; 0) amount = Entry_Amount*(AccountInfoDouble(ACCOUNT_EQUITY)/capitalToCompound);
   amount = NormalizeDouble(amount,2);</code></pre></div><p><span class="postimg"><img src="https://forexsb.com/forum/misc.php?action=pun_attachment&amp;item=5306" alt="Compounding effect - phase 2 MQL4.png" /></span></p><br /><p>-----------<br />It&#039;s not necessary to initialize the &quot;capitalToCompound&quot; variable in OnInit, because it&#039;s already initialized in the global variables when created.</p><p>....this is it! How to embed the &quot;Compounding Effect&quot;, fully explained!</p><p>...Enjoy!</p>]]></description>
			<author><![CDATA[null@example.com (bobstar)]]></author>
			<pubDate>Fri, 02 Aug 2024 19:29:49 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80788/#p80788</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I apply compound interest to portfolios?]]></title>
			<link>https://forexsb.com/forum/post/80787/#p80787</link>
			<description><![CDATA[<p>Hello everyone, I created a specific video (in Italian), a few months ago, on how to embed the Compounding Effect on Portfolios and EAs generated with EA Studio.</p><p><div class="fancy_video_tag_player"><iframe class="youtube-player" type="text/html" width="640" height="385" src="https://www.youtube.com/embed/Z7HBIuWdt_A" frameborder="0" allowfullscreen></iframe></div></p>]]></description>
			<author><![CDATA[null@example.com (bobstar)]]></author>
			<pubDate>Fri, 02 Aug 2024 19:11:34 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80787/#p80787</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I apply compound interest to portfolios?]]></title>
			<link>https://forexsb.com/forum/post/73740/#p73740</link>
			<description><![CDATA[<p>Please contribute more to what you need.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Tue, 28 Feb 2023 08:21:58 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/73740/#p73740</guid>
		</item>
		<item>
			<title><![CDATA[How can I apply compound interest to portfolios?]]></title>
			<link>https://forexsb.com/forum/post/73735/#p73735</link>
			<description><![CDATA[<p>Hi everyone, how can I apply compound interest to portfolios? any code for this?</p>]]></description>
			<author><![CDATA[null@example.com (kitomc)]]></author>
			<pubDate>Tue, 28 Feb 2023 03:51:09 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/73735/#p73735</guid>
		</item>
	</channel>
</rss>
