Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 05-18-2006, 06:57 AM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Cool guys,

thanks for all your help.....

Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-20-2007, 02:00 PM
Junior Member
 
Join Date: Oct 2006
Posts: 4
lolo is on a distinguished road
How to LOCK/Encrypt EA

[quote=newdigital]If we are talking about ex4 file so you may insert in original mql4 code any account number, for example (in the beginning of the code just below the settings):

Code:
int Account = 111111;
And below
Code:
int start
may be the following:

Code:
if (Account != AccountNumber()){
      Comment("Trade on account :"+AccountNumber()+" FORBIDDEN!");
      return(0);
   }else {Comment("");}


Hi,
I am trying to compile the above code given by newdigital and I get the followinfg messege:

1 error(s)
'if' - comma or semicolon expected

3 warning(s)
'Account' - expression on global scope not allowed
'{' - expression on global scope not allowed
'{' - expression on global scope not allowed


Please advise
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 01-20-2007, 02:47 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,319
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
[quote=lolo]
Quote:
Originally Posted by newdigital
If we are talking about ex4 file so you may insert in original mql4 code any account number, for example (in the beginning of the code just below the settings):

Code:
int Account = 111111;
And below
Code:
int start
may be the following:

Code:
if (Account != AccountNumber()){
      Comment("Trade on account :"+AccountNumber()+" FORBIDDEN!");
      return(0);
   }else {Comment("");}


Hi,
I am trying to compile the above code given by newdigital and I get the followinfg messege:

1 error(s)
'if' - comma or semicolon expected

3 warning(s)
'Account' - expression on global scope not allowed
'{' - expression on global scope not allowed
'{' - expression on global scope not allowed


Please advise
Just compile this EA once again and did not get any error.
You may look inside the code as an example.
Attached Files
File Type: mq4 MA_ExpertProfit_all.mq4 (7.2 KB, 281 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 01-20-2007, 04:11 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
[quote=newdigital]
Quote:
Originally Posted by lolo

Just compile this EA once again and did not get any error.
You may look inside the code as an example.
So to get this straight, this file (code) is what you add to any EA to make it lockable, correct? Then once I run the full EA once in MT4 to generate the ex4 file then I can distribute the ex4 and will be safe? Where do I need to insert this code? anywhere?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 01-20-2007, 04:33 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,319
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
[quote=matrixebiz]
Quote:
Originally Posted by newdigital
So to get this straight, this file (code) is what you add to any EA to make it lockable, correct? Then once I run the full EA once in MT4 to generate the ex4 file then I can distribute the ex4 and will be safe? Where do I need to insert this code? anywhere?
Thanks
It is EA. I created 10 months using Gordago tool.
Just an explanation:
Quote:
EA will close the order on s/l or t/p, or on the other crossing signal.
This EA should work on particular account only.
Just change the line "int Account = 111111;"
to your account number inside the code.
For example your account is 1235463.
So this line should be like this:
int Account = 1235463;
I just replied about account. Means: how to lock EA to use in particular account only.

Use it as an example of the code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 02-01-2007, 03:13 AM
Member
 
Join Date: Jul 2006
Posts: 55
sentaco is on a distinguished road
How can i let a EA only use in demo accounts and a variable expiration date like 7 days from the time they load the EA in to a chart?

Last edited by sentaco; 02-01-2007 at 03:39 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 02-01-2007, 03:53 AM
auto's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Tokyo
Posts: 221
auto is on a distinguished road
Exclamation Unsafe

Folks,

If it is a good EA - DO NOT distribute it. Any .ex4 can be CRACKED/DECOMPILED for $30 !! Nothing is safe.

If it is really good - just run a managed fund.

If it is crap - sell on ebay!

regards.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 02-01-2007, 06:25 AM
davidke20's Avatar
Senior Member
 
Join Date: Sep 2006
Location: 38° 53′ 51.61″ N, 77° 2′ 11.58″ W
Posts: 1,398
davidke20 is on a distinguished road
Quote:
Originally Posted by auto
Folks,

If it is a good EA - DO NOT distribute it. Any .ex4 can be CRACKED/DECOMPILED for $30 !! Nothing is safe.

If it is really good - just run a managed fund.

If it is crap - sell on ebay!

regards.
AGREED Seeing some good EA around the ebay, after decompiled, everything is shit inside. Some exactly Terminator, only added fancy buffer, decorations of indicator around the charts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 04-12-2007, 02:16 AM
Junior Member
 
Join Date: Nov 2006
Posts: 8
troydavis1010 is on a distinguished road
EA Expiration Does not work

Hi all,

I place this code into my EA, but it does not seem to work. I change expire date to expire, but nothing show up in the chart and not trial expiration word appears.

Would anyone know what might be wrong.


int start()
{
string expire_date = "2006.31.06"; //<-- hard coded datetime
datetime e_d = StrToTime(expire_date);

if (CurTime() >= e_d)
{
Alert ("The trial version has been expired!");
return(0);
}
// your normal code!
return(0);
}


Thanks
troy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 05-04-2007, 02:38 AM
Junior Member
 
Join Date: Mar 2007
Posts: 7
mnhidayat_bfc is on a distinguished road
Question Req: Expiration On Custom Indicator

Hi, guys... I am a new comer on this forum and facing the difficult problem right now. I am unable to give the expiration code on my custom indicator so that it will be accessible or even delete by itself automatically.

All of your contribution will be much appreciated...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
metatrader encryption

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loss lock EA newdigital Expert Advisors - Metatrader 3 4 05-17-2006 07:40 PM
any way to LOCK an Indicator or Template? SPACECHIMP Metatrader 4 2 04-20-2006 01:39 AM


All times are GMT. The time now is 01:27 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.