<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — How can I add "Expire" in EA from FSB?]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8999/" />
	<updated>2022-01-04T13:31:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8999/how-can-i-add-expire-in-ea-from-fsb/</id>
		<entry>
			<title type="html"><![CDATA[Re: How can I add "Expire" in EA from FSB?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/67440/#p67440" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ridwan]]></name>
				<uri>https://forexsb.com/forum/user/13718/</uri>
			</author>
			<updated>2022-01-04T13:31:07Z</updated>
			<id>https://forexsb.com/forum/post/67440/#p67440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How can I add "Expire" in EA from FSB?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/67437/#p67437" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2022-01-04T10:02:58Z</updated>
			<id>https://forexsb.com/forum/post/67437/#p67437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How can I add "Expire" in EA from FSB?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/67432/#p67432" />
			<content type="html"><![CDATA[<p>How can I add &quot;Expire&quot; in ea from FSB?..</p>]]></content>
			<author>
				<name><![CDATA[ridwan]]></name>
				<uri>https://forexsb.com/forum/user/13718/</uri>
			</author>
			<updated>2022-01-04T07:50:39Z</updated>
			<id>https://forexsb.com/forum/post/67432/#p67432</id>
		</entry>
</feed>
