Forex



Go Back   Forex Trading > Discussion Areas > General Discussion
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2007, 09:13 PM
Junior Member
 
Join Date: Nov 2006
Posts: 8
troydavis1010 is on a distinguished road
Place expiration on EA

Hi all,

I have an EA that I would like to place an expiration date on the EA. Does anyone know where this code is suppose to be place in the .mq4 files to work properly.


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

Last edited by troydavis1010; 04-10-2007 at 09:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2007, 10:05 PM
pooper scoopers's Avatar
Member
 
Join Date: Sep 2006
Posts: 53
pooper scoopers is on a distinguished road
This is worthless to do since I have the idea that you are going to try to sell it with a free trial etc. It can easily be decompiled and the expiration will be removed anyways. Don't bother since this is what is going to happen anyways.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Setting An Expiration Date On Indicator emersond Indicators - Metatrader 4 13 08-01-2009 05:46 PM
EA expiration date jyrik Expert Advisors - Metatrader 4 6 04-12-2007 05:32 PM
How to place pending orders before news. rlp512 Expert Advisors - Metatrader 4 4 08-01-2006 03:59 AM
How to place more than one order simultaneously? thiagomartini Questions 0 05-26-2006 05:08 PM
Place order with no takeprofit cardio Setup Questions 2 01-30-2006 06:32 PM


All times are GMT. The time now is 09:36 AM.



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