<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Disable entry or exit signal for single strategy EAs]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9747/" />
	<updated>2024-06-07T09:53:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9747/disable-entry-or-exit-signal-for-single-strategy-eas/</id>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80141/#p80141" />
			<content type="html"><![CDATA[<p>Good morning friends <br />Mr popov you came back even inspired lol<br />You know that in the past I thought about something like this, but I believe that the number of imputs in meta Trader has a limit <br />The number of external True is false has one. Maximum number of 120 if not me. Deception is the portfolio has a maximum strategy number of 300</p>]]></content>
			<author>
				<name><![CDATA[gabdecsters]]></name>
				<uri>https://forexsb.com/forum/user/14801/</uri>
			</author>
			<updated>2024-06-07T09:53:36Z</updated>
			<id>https://forexsb.com/forum/post/80141/#p80141</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80136/#p80136" />
			<content type="html"><![CDATA[<p>&gt;&nbsp; Popov is also going to implement this for each strategy in a portfolio EA.</p><p>That&#039;s right!</p><p>I&#039;m thinking of having options like;</p><p>--- Individual Strategies&nbsp; Control --<br />001 - enable entry - true<br />001 - enable exit&nbsp; &nbsp;- true<br />002 - enable entry - true<br />002 - enable exit&nbsp; &nbsp;- true<br />...<br />099 - enable entry - true<br />099 - enable exit&nbsp; &nbsp;- true</p><p>...</p><p>I&#039;m also thinking of showing the individual strategies&#039; performance information in the chart. We will discuss this in a separate topic.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2024-06-07T05:30:45Z</updated>
			<id>https://forexsb.com/forum/post/80136/#p80136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80134/#p80134" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>gabdecsters wrote:</cite><blockquote><p>&quot;Guys, from what I noticed, you came back strong. Very interesting this question. Let me see if I understood, especially because I am using a translator to talk to you. In this case, each portfolio strategy would have a true or false button so that each one can be deactivated or activated, or just a button for new open or closed trades to prevent it from continuing to open trades from a certain point, allowing us to switch to new strategies.&quot;</p></blockquote></div><p>Yes that is the idea. <br />My need was turning off the entry or exit logic for single strategy EAs, but from what I understand, Popov is also going to implement this for each strategy in a portfolio EA.</p>]]></content>
			<author>
				<name><![CDATA[KCGO]]></name>
				<uri>https://forexsb.com/forum/user/15009/</uri>
			</author>
			<updated>2024-06-07T04:23:05Z</updated>
			<id>https://forexsb.com/forum/post/80134/#p80134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80133/#p80133" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>geektrader wrote:</cite><blockquote><p>Open New Positions: True<br />Close Open Positions: True</p></blockquote></div><p>I think &quot;Close Open Positions: True&quot; is a bit ambiguous, because some may think that it means closing the positions immediately, like in the Bulk Operations features in MT5. </p><p>The initial wording proposed by Popov is perfect.</p><p>Allow opening of new positions: true<br />Allow closing of current positions: true</p>]]></content>
			<author>
				<name><![CDATA[KCGO]]></name>
				<uri>https://forexsb.com/forum/user/15009/</uri>
			</author>
			<updated>2024-06-07T04:17:33Z</updated>
			<id>https://forexsb.com/forum/post/80133/#p80133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80126/#p80126" />
			<content type="html"><![CDATA[<p>&quot;Guys, from what I noticed, you came back strong. Very interesting this question. Let me see if I understood, especially because I am using a translator to talk to you. In this case, each portfolio strategy would have a true or false button so that each one can be deactivated or activated, or just a button for new open or closed trades to prevent it from continuing to open trades from a certain point, allowing us to switch to new strategies.&quot;</p>]]></content>
			<author>
				<name><![CDATA[gabdecsters]]></name>
				<uri>https://forexsb.com/forum/user/14801/</uri>
			</author>
			<updated>2024-06-06T15:16:13Z</updated>
			<id>https://forexsb.com/forum/post/80126/#p80126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80110/#p80110" />
			<content type="html"><![CDATA[<p>Open New Positions: True<br />Close Open Positions: True</p>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2024-06-06T07:45:13Z</updated>
			<id>https://forexsb.com/forum/post/80110/#p80110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80108/#p80108" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>&gt; Disable entry or exit signal for single strategy EAs</p><p>It looks like ending new options will be useful:<br /></p><div class="quotebox"><blockquote><p>Allow opening of new positions: true<br />Allow closing of current positions: true</p></blockquote></div><p>Any ideas for better naming?</p><p>...</p><p>Besides that, I plan to add separate options for enabling the entires and exits of each strategy for the Portfolio Experts.</p></blockquote></div><p>Excellent idea Popov, that way we can do it directly from the inputs of the EA without touching the source code.<br />The naming sounds perfect in my opinion.</p>]]></content>
			<author>
				<name><![CDATA[KCGO]]></name>
				<uri>https://forexsb.com/forum/user/15009/</uri>
			</author>
			<updated>2024-06-06T05:26:29Z</updated>
			<id>https://forexsb.com/forum/post/80108/#p80108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80107/#p80107" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>geektrader wrote:</cite><blockquote><p>Or just</p><div class="codebox"><pre><code>void ManageClose(void)
  {

return;

...Existing Logic Stays As Is.

}</code></pre></div></blockquote></div><p>Thanks to you as well. Another working option!</p>]]></content>
			<author>
				<name><![CDATA[KCGO]]></name>
				<uri>https://forexsb.com/forum/user/15009/</uri>
			</author>
			<updated>2024-06-06T05:23:37Z</updated>
			<id>https://forexsb.com/forum/post/80107/#p80107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80106/#p80106" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>I would substitute ManageClose with this:</p><div class="codebox"><pre><code>void ManageClose(void)
  {
   // Do not Exit
   bool ind1long  = false;
   bool ind1short = false;

   if((posType == OP_BUY  &amp;&amp; ind1long) ||
        (posType == OP_SELL &amp;&amp; ind1short) )
      ClosePosition();
  }</code></pre></div><p>This way it&#039;s like using Do Not Exit indi, closing would work only with set TP/SL.</p></blockquote></div><p>Thank you for the suggestion. It&#039;s working!</p>]]></content>
			<author>
				<name><![CDATA[KCGO]]></name>
				<uri>https://forexsb.com/forum/user/15009/</uri>
			</author>
			<updated>2024-06-06T05:21:18Z</updated>
			<id>https://forexsb.com/forum/post/80106/#p80106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80104/#p80104" />
			<content type="html"><![CDATA[<p>&gt; Disable entry or exit signal for single strategy EAs</p><p>It looks like ending new options will be useful:<br /></p><div class="quotebox"><blockquote><p>Allow opening of new positions: true<br />Allow closing of current positions: true</p></blockquote></div><p>Any ideas for better naming?</p><p>...</p><p>Besides that, I plan to add separate options for enabling the entires and exits of each strategy for the Portfolio Experts.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2024-06-06T04:07:30Z</updated>
			<id>https://forexsb.com/forum/post/80104/#p80104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80100/#p80100" />
			<content type="html"><![CDATA[<p>Or just</p><div class="codebox"><pre><code>void ManageClose(void)
  {

return;

...Existing Logic Stays As Is.

}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[geektrader]]></name>
				<uri>https://forexsb.com/forum/user/1841/</uri>
			</author>
			<updated>2024-06-05T23:17:19Z</updated>
			<id>https://forexsb.com/forum/post/80100/#p80100</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80095/#p80095" />
			<content type="html"><![CDATA[<p>I would substitute ManageClose with this:</p><div class="codebox"><pre><code>void ManageClose(void)
  {
   // Do not Exit
   bool ind1long  = false;
   bool ind1short = false;

   if((posType == OP_BUY  &amp;&amp; ind1long) ||
        (posType == OP_SELL &amp;&amp; ind1short) )
      ClosePosition();
  }</code></pre></div><p>This way it&#039;s like using Do Not Exit indi, closing would work only with set TP/SL.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-06-05T16:20:42Z</updated>
			<id>https://forexsb.com/forum/post/80095/#p80095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80088/#p80088" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Interesting, it did work on portfolios very well. I&#039;ll look into it.</p></blockquote></div><p>Yes, that works for portfolio EAs, but not for single strategy EAs.</p><p>Just tested this idea to disable the entry logic from the source code.<br />I found the line of the code with the entry logic &quot;OpenPosition(entrySignal);&quot;, and just turned it into a comment with 2 forward slashes &gt; &quot;//OpenPosition(entrySignal);&quot; </p><p>It is working in the backtests and it worked for 2 forward tested trades.</p><p>Do you know how to replicate this for the exit logic? I saw ClosePosition in the code, but there are so many of them...</p>]]></content>
			<author>
				<name><![CDATA[KCGO]]></name>
				<uri>https://forexsb.com/forum/user/15009/</uri>
			</author>
			<updated>2024-06-05T10:00:14Z</updated>
			<id>https://forexsb.com/forum/post/80088/#p80088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80086/#p80086" />
			<content type="html"><![CDATA[<p>Seems to be a bug, it supposed to stop opening new positions, I&#039;ll report it to to the dev.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-06-05T08:48:28Z</updated>
			<id>https://forexsb.com/forum/post/80086/#p80086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80085/#p80085" />
			<content type="html"><![CDATA[<p>Interesting, it did work on portfolios very well. I&#039;ll look into it.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-06-05T08:39:49Z</updated>
			<id>https://forexsb.com/forum/post/80085/#p80085</id>
		</entry>
</feed>
