<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Simple Password protection]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/7253/" />
	<updated>2018-03-16T16:55:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/7253/simple-password-protection/</id>
		<entry>
			<title type="html"><![CDATA[Re: Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49608/#p49608" />
			<content type="html"><![CDATA[<p>@popov did you have a code snippet for me to add demo function?</p>]]></content>
			<author>
				<name><![CDATA[deadlef]]></name>
				<uri>https://forexsb.com/forum/user/9894/</uri>
			</author>
			<updated>2018-03-16T16:55:42Z</updated>
			<id>https://forexsb.com/forum/post/49608/#p49608</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49519/#p49519" />
			<content type="html"><![CDATA[<p>Great. Thank you dear!</p>]]></content>
			<author>
				<name><![CDATA[alamehmazen123]]></name>
				<uri>https://forexsb.com/forum/user/9412/</uri>
			</author>
			<updated>2018-03-09T06:14:13Z</updated>
			<id>https://forexsb.com/forum/post/49519/#p49519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49516/#p49516" />
			<content type="html"><![CDATA[<p>You can predefine an expiry date and to request for a valid password after that time.</p><p>Another option is to give an EA that will stop after the expiry date. After the trial the user must buy the unlimited copy, which has password protection.</p><p>A better option (but it requires more wok) is to make an online licensing service. The expert may ask the service with POST request if this user is valid or not. all licensing logic can be on the server. You may provide a demo password automatically and a real password after purchasing.</p><p>The licensing process is hard to be make right. You may search for a ready third party solution.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-03-08T21:51:10Z</updated>
			<id>https://forexsb.com/forum/post/49516/#p49516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49509/#p49509" />
			<content type="html"><![CDATA[<p>the hard question is , how to make it as a DEMO EA (works only for a specific period of time, then it stops)<br />how to implement that period in it?</p>]]></content>
			<author>
				<name><![CDATA[alamehmazen123]]></name>
				<uri>https://forexsb.com/forum/user/9412/</uri>
			</author>
			<updated>2018-03-08T16:28:30Z</updated>
			<id>https://forexsb.com/forum/post/49509/#p49509</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49508/#p49508" />
			<content type="html"><![CDATA[<p>this is excellent dear POPOV,<br />i would also add ExpertRemove();....just to remove the EA if wrong password</p><p>&nbsp; &nbsp; if (Password != &quot;123456&quot;) <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp;Print(&quot;Wrong password!&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;Comment(&quot;Wrong password!&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp;ExpertRemove();<br />&nbsp; &nbsp; &nbsp; &nbsp;return (INIT_FAILED);<br />&nbsp; &nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[alamehmazen123]]></name>
				<uri>https://forexsb.com/forum/user/9412/</uri>
			</author>
			<updated>2018-03-08T16:05:57Z</updated>
			<id>https://forexsb.com/forum/post/49508/#p49508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49466/#p49466" />
			<content type="html"><![CDATA[<p>Actually it is very easy.</p><p>Add a text field that to be shown in the Input panel.</p><div class="codebox"><pre><code>static input string Password = &quot;-&quot;; // Password</code></pre></div><p>Add password check in the Expert&#039;s initialization function.</p><div class="codebox"><pre><code>int OnInit()
  {
    if (Password != &quot;123456&quot;) 
    {
       Print(&quot;Wrong password!&quot;);
       Comment(&quot;Wrong password!&quot;);
       return (INIT_FAILED);
    }

... </code></pre></div><br /><br /><p><span class="postimg"><img src="https://s9.postimg.org/o5xwksdbj/screenshot_171.png" alt="https://s9.postimg.org/o5xwksdbj/screenshot_171.png" /></span></p><br /><br /><p><span class="postimg"><img src="https://s9.postimg.org/5qdfnku3z/screenshot_172.png" alt="https://s9.postimg.org/5qdfnku3z/screenshot_172.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2018-03-05T09:41:03Z</updated>
			<id>https://forexsb.com/forum/post/49466/#p49466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Simple Password protection]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/49459/#p49459" />
			<content type="html"><![CDATA[<p>Hell,</p><p>can someone tell me how i can protect ea with password?</p><p>Ich mean: User enter password in ea settings. If it is equal to the password in mql code than the ea Do trades otherwise it will Display a text like password not correct.</p><p>I have tried different code snippets on internet i found but they dont work.</p>]]></content>
			<author>
				<name><![CDATA[deadlef]]></name>
				<uri>https://forexsb.com/forum/user/9894/</uri>
			</author>
			<updated>2018-03-04T15:52:24Z</updated>
			<id>https://forexsb.com/forum/post/49459/#p49459</id>
		</entry>
</feed>
