<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Locking on an expert]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9298/" />
	<updated>2022-12-07T09:51:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9298/locking-on-an-expert/</id>
		<entry>
			<title type="html"><![CDATA[Re: Locking on an expert]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/72625/#p72625" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>extern string Please_Enter_Password = &quot;&quot;;  // User must Type a password (Watermelon)
void OnTick()
  {
   if(__symbol!=_Symbol || __period!=_Period)
     {
      if(__period&gt;0)
        {
         actionTrade.OnDeinit(-1);
         actionTrade.OnInit();
        }
      __symbol = _Symbol;
      __period = _Period;
     }
//+------------------------------------------------------------------+
   {
      if (Please_Enter_Password != &quot;Watermelon&quot;) //&quot;Watermelon is a password
      {
         Alert (&quot;Wrong password&quot;); //Send allert if password is wrong
         ExpertRemove();
      }
   }
//+------------------------------------------------------------------+
   actionTrade.OnTick();
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   actionTrade.OnDeinit(reason);

   if(CheckPointer(actionTrade)==POINTER_DYNAMIC)
      delete actionTrade;
  }</code></pre></div><div class="quotebox"><cite>reza_akrami_azar wrote:</cite><blockquote><p>How to put a lock on a generated expert and limit it for its user?</p><p>Does anyone have experience in this matter?</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[ridwan]]></name>
				<uri>https://forexsb.com/forum/user/13718/</uri>
			</author>
			<updated>2022-12-07T09:51:43Z</updated>
			<id>https://forexsb.com/forum/post/72625/#p72625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Locking on an expert]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/72623/#p72623" />
			<content type="html"><![CDATA[<p>Make an &quot;input&quot; field asking for a password or activation token.<br />Then hard-code the correct one in the expert and check if they match.<br />Send only the compiled ex4 file to your user.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2022-12-07T09:44:34Z</updated>
			<id>https://forexsb.com/forum/post/72623/#p72623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Locking on an expert]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/72254/#p72254" />
			<content type="html"><![CDATA[<p>How to put a lock on a generated expert and limit it for its user?</p><p>Does anyone have experience in this matter?</p>]]></content>
			<author>
				<name><![CDATA[reza_akrami_azar]]></name>
				<uri>https://forexsb.com/forum/user/14228/</uri>
			</author>
			<updated>2022-11-16T06:46:55Z</updated>
			<id>https://forexsb.com/forum/post/72254/#p72254</id>
		</entry>
</feed>
