<?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 add "Expire" in EA from FSB?]]></title>
		<link>https://forexsb.com/forum/topic/8999/how-can-i-add-expire-in-ea-from-fsb/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/8999/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How can I add "Expire" in EA from FSB?.]]></description>
		<lastBuildDate>Tue, 04 Jan 2022 13:31:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How can I add "Expire" in EA from FSB?]]></title>
			<link>https://forexsb.com/forum/post/67440/#p67440</link>
			<description><![CDATA[<p>thank u pov pov...&nbsp; i have suggestion for u.. maybe u can make a video tutorial &quot;add some future&quot; in code ea from EAS or FSB .. like how to add code filter spread, change comment name, filter time and anyting else... to support ur software</p>]]></description>
			<author><![CDATA[null@example.com (ridwan)]]></author>
			<pubDate>Tue, 04 Jan 2022 13:31:07 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67440/#p67440</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I add "Expire" in EA from FSB?]]></title>
			<link>https://forexsb.com/forum/post/67437/#p67437</link>
			<description><![CDATA[<p>Add the following code in the &quot;OnTick&quot; function.</p><div class="codebox"><pre><code>   if (TimeCurrent() &gt; D&#039;2022.01.01&#039;) {
      Print(&quot;Your expert has expired!&quot;);
      ExpertRemove();
   }</code></pre></div><p>The expert will check the time at every tick. If the time is greater than the set one, it will print a message and will exit.</p><p>You can use a variable in the expert:</p><div class="codebox"><pre><code>datetime EXPIRY_TIME = D&#039;2022.01.01&#039;;

...

void OnTick()
  {
   ...
   
   if (TimeCurrent() &gt; EXPIRY_TIME) {
      Print(&quot;Your expert has expired!&quot;);
      ExpertRemove();
   }
  }</code></pre></div><p>The &quot;OnTick&quot; function is at the end of the export.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Tue, 04 Jan 2022 10:02:58 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67437/#p67437</guid>
		</item>
		<item>
			<title><![CDATA[How can I add "Expire" in EA from FSB?]]></title>
			<link>https://forexsb.com/forum/post/67432/#p67432</link>
			<description><![CDATA[<p>How can I add &quot;Expire&quot; in ea from FSB?..</p>]]></description>
			<author><![CDATA[null@example.com (ridwan)]]></author>
			<pubDate>Tue, 04 Jan 2022 07:50:39 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67432/#p67432</guid>
		</item>
	</channel>
</rss>
