<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
		<link>https://forexsb.com/forum/topic/6572/modification-to-stop-opening-new-trades-when-equity-below-x-amount/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/6572/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Modification to Stop Opening New Trades When Equity Below X Amount.]]></description>
		<lastBuildDate>Sat, 23 Mar 2019 08:28:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/54820/#p54820</link>
			<description><![CDATA[<p>I say that the same idea can be used in the Portfolio Experts. Of course, the portfolio can have multiple positions open, and the modification can manage that. </p><p>&quot;postType&quot; variable can be replaced with a function that gives if there is an open position at the moment. <br />&quot;ManageClose&quot; must be a function that can close all open positions of the portfolio. Be careful to take into account the Base_Magic_Number to leave the strategies from the other Portfolios intact.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 23 Mar 2019 08:28:37 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/54820/#p54820</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/54818/#p54818</link>
			<description><![CDATA[<p>Hi Popov</p><p>The code is giving me the same errors;</p><p>posType -undeclared identifier<br />ManageClose - function not defined</p><p>Can you assist to take a look? And could you code it in % of equity?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (BK777)]]></author>
			<pubDate>Sat, 23 Mar 2019 04:28:19 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/54818/#p54818</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/49624/#p49624</link>
			<description><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>Yes, it must work.</p></blockquote></div><br /><p>hmm doesnt work When i add code and compile than i get following errors:</p><p>posType -undeclared identifier<br />ManageClose - function not defined</p>]]></description>
			<author><![CDATA[null@example.com (deadlef)]]></author>
			<pubDate>Sun, 18 Mar 2018 15:13:18 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/49624/#p49624</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/49623/#p49623</link>
			<description><![CDATA[<p>Yes, it must work.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sun, 18 Mar 2018 14:36:14 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/49623/#p49623</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/49607/#p49607</link>
			<description><![CDATA[<p>is this working with portfolio?</p>]]></description>
			<author><![CDATA[null@example.com (deadlef)]]></author>
			<pubDate>Fri, 16 Mar 2018 15:53:21 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/49607/#p49607</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/42432/#p42432</link>
			<description><![CDATA[<p>Great! thanks <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (yonkuro)]]></author>
			<pubDate>Thu, 23 Mar 2017 04:38:58 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42432/#p42432</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/42427/#p42427</link>
			<description><![CDATA[<p>Yes, your code may work.</p><p>Here is a little bit improved version that closes the current position and also closes the expert.</p><div class="codebox"><pre><code>static input double MinimumEquity = 600; // Minimum Equity


void OnTick()
  {
     ...
   
   double equity = AccountEquity();
   if (equity &lt; MinimumEquity) 
     {
       if (posType!=OP_FLAT)
         {
           ManageClose();
         }
       ExpertRemove();     
     }
  }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 22 Mar 2017 21:00:15 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42427/#p42427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/42407/#p42407</link>
			<description><![CDATA[<p>Oke I solved it, I just need to add something like this<br /></p><div class="codebox"><pre><code>   static input int Minimum_Balance=500;                                // Minimum Balance</code></pre></div><p>and this<br /></p><div class="codebox"><pre><code>      if (AccountFreeMargin()&lt;Minimum_Balance) 
      {
       Print(&quot;We have no money.&quot;,  &quot; Error code=&quot;,GetLastError());
       return;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yonkuro)]]></author>
			<pubDate>Wed, 22 Mar 2017 12:01:17 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42407/#p42407</guid>
		</item>
		<item>
			<title><![CDATA[Modification to Stop Opening New Trades When Equity Below X Amount]]></title>
			<link>https://forexsb.com/forum/post/42373/#p42373</link>
			<description><![CDATA[<p>Hi Popov</p><p>is there anyway to make the EA stop opening new trades when equity is below X amount? <br />I want the X amount appears on the EA parameters.</p><p>Regards.</p>]]></description>
			<author><![CDATA[null@example.com (yonkuro)]]></author>
			<pubDate>Tue, 21 Mar 2017 05:12:32 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/42373/#p42373</guid>
		</item>
	</channel>
</rss>
