| 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 |
|
|||
|
How do you set an expiration date for an indicator; so that when that date
is reached the indicator ceases to operate? I found this code; but all it does is create an alert. However, the indicator still works. if ((Day() >= 02) && (Month() >= 10) && (Year() >= 2006)) { Alert("Trial has ended. Please contact youremailaddress@whatever.com"); return(0); } Thanks in advance for any help on this matter. Last edited by emersond; 10-01-2006 at 09:09 PM. |
|
|||
|
Quote:
how about so it can only be used in one computer and the licensing key? not that it will be commercialized; just so it will be for limited users and controlled distribution only. thanks, solaris |
|
|||
|
Quote:
solaris |
|
|||
|
phoenix,
I used your codes as you have indicated in your previous posts here. However, I am still getting an error when I compiled it. Would you please help fix it. Here is what I have done: Code:
if (Curtime()<D'2006.10.02 00:00')
{
"XWZ works"
else
{
Alert("Current Use License Expired. Please contact XWZ@yahoo.com");
}
if(regno==G4258DLLK8)
{
"those code above"
}
else
{
Alert("Incorrect Register No.");
}
'\end_of_program' - more than 1 symbol I truly appreciate your help. solaris |
|
||||
|
if (Curtime()<D'2006.10.02 00:00')
{ "XWZ works" } else { Alert("Current Use License Expired. Please contact XWZ@yahoo.com"); } if(regno==G4258DLLK8) { "those code above" } else { Alert("Incorrect Register No."); } -------------------------------- you forgot the pink one |
|
|||
|
Quote:
Is this correct? if (Curtime()>D'2006.10.23 00:00') { "Auto Trader trial period" } else { alert("End of trial period"); } |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EA expiration date | jyrik | Expert Advisors - Metatrader 4 | 6 | 04-12-2007 04:32 PM |
| Place expiration on EA | troydavis1010 | General Discussion | 1 | 04-10-2007 09:05 PM |
| How to put the Expiry date in EA | MACD | Expert Advisors - Metatrader 4 | 1 | 01-26-2007 12:59 PM |
| Up-date problem... | ttt123 | General Discussion | 4 | 02-06-2006 09:41 AM |