<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Disable entry or exit signal for single strategy EAs]]></title>
		<link>https://forexsb.com/forum/topic/9747/disable-entry-or-exit-signal-for-single-strategy-eas/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/9747/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Disable entry or exit signal for single strategy EAs.]]></description>
		<lastBuildDate>Fri, 07 Jun 2024 09:53:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80141/#p80141</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (gabdecsters)]]></author>
			<pubDate>Fri, 07 Jun 2024 09:53:36 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80141/#p80141</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80136/#p80136</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 07 Jun 2024 05:30:45 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80136/#p80136</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80134/#p80134</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (KCGO)]]></author>
			<pubDate>Fri, 07 Jun 2024 04:23:05 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80134/#p80134</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80133/#p80133</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (KCGO)]]></author>
			<pubDate>Fri, 07 Jun 2024 04:17:33 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80133/#p80133</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80126/#p80126</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (gabdecsters)]]></author>
			<pubDate>Thu, 06 Jun 2024 15:16:13 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80126/#p80126</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80110/#p80110</link>
			<description><![CDATA[<p>Open New Positions: True<br />Close Open Positions: True</p>]]></description>
			<author><![CDATA[null@example.com (geektrader)]]></author>
			<pubDate>Thu, 06 Jun 2024 07:45:13 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80110/#p80110</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80108/#p80108</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (KCGO)]]></author>
			<pubDate>Thu, 06 Jun 2024 05:26:29 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80108/#p80108</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80107/#p80107</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (KCGO)]]></author>
			<pubDate>Thu, 06 Jun 2024 05:23:37 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80107/#p80107</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80106/#p80106</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (KCGO)]]></author>
			<pubDate>Thu, 06 Jun 2024 05:21:18 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80106/#p80106</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80104/#p80104</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Thu, 06 Jun 2024 04:07:30 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80104/#p80104</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80100/#p80100</link>
			<description><![CDATA[<p>Or just</p><div class="codebox"><pre><code>void ManageClose(void)
  {

return;

...Existing Logic Stays As Is.

}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (geektrader)]]></author>
			<pubDate>Wed, 05 Jun 2024 23:17:19 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80100/#p80100</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80095/#p80095</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Wed, 05 Jun 2024 16:20:42 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80095/#p80095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80088/#p80088</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (KCGO)]]></author>
			<pubDate>Wed, 05 Jun 2024 10:00:14 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80088/#p80088</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80086/#p80086</link>
			<description><![CDATA[<p>Seems to be a bug, it supposed to stop opening new positions, I&#039;ll report it to to the dev.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Wed, 05 Jun 2024 08:48:28 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80086/#p80086</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable entry or exit signal for single strategy EAs]]></title>
			<link>https://forexsb.com/forum/post/80085/#p80085</link>
			<description><![CDATA[<p>Interesting, it did work on portfolios very well. I&#039;ll look into it.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Wed, 05 Jun 2024 08:39:49 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/80085/#p80085</guid>
		</item>
	</channel>
</rss>
