| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
![]() |
| Bookmarks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting An Expiration Date On Indicator | emersond | Indicators - Metatrader 4 | 10 | 08-05-2007 10:33 AM |
| 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 |